2009年2月27日 星期五

推薦好用、免費的文字檔/原始碼編輯工具




還在用記事本嗎? Microsoft記事本唯一的好處大概只剩下它是內建文字檔編輯程式、以及他夠陽春,初學者需要的功能大體都有了~




不過若想做一些進階動作,比方說希望開啟一個含有他國語言的文字檔,或是想看一個網頁的原始檔,記事本可能會氣煞不少人!它甚至連最基本而常用的排序、標註功能都沒有呀~




當然對於要寫程式的人更不用說了,想要追蹤程式碼(即使是最簡單的想要直接跳到某個函數)、跳行號,都完全不支援。難怪有人感慨記事本連Linux下的內建經典文字編輯程式-vim都不如了!





如果用過Utral Edit等工具,就知道這些進階工具好用之處,可惜要用這些工具,要嘛要付錢,要嘛要偷偷摸摸地上網不斷找破解(還有可能中毒)。




因此在此推薦各式各樣免費、且好用的文字檔/程式碼編輯工具,提供給大家做參考:

一. Source Code Editor








01. SciTE





SciTE is a SCIntilla based Text Editor. Originally built to demonstrate Scintilla, it has grown to be a generally useful editor with facilities for building and running programs. SciTE is currently available for Intel Win32 and Linux compatible operating systems with GTK+. Scintilla is a free source code editing component. It comes with complete source code and a license that permits use in any free project or commercial product.





SciTE 使用的 Scintilla 有 autocompletion 的功能,也有 API 的 call tip 功能,在寫 HTML/C/Java/PHP ... 等等程式語言時,還可以把一個區塊整個縮小 (如下圖)。如果你的程式需要內建一個 editor,可以直接把這個元件拿來使用。







SciTE 支援 Windows/Linux/UNIX 等作業系統環境!在 Windows 下面,SciTEGlobal
properties 內的 code page 設為 950 (Big5) 之後,打中文就正常了,存成 Unicode、UTF-8
好像也沒問題。至於 Linux/UNIX 下面,應該也是一樣吧!





http://www.scintilla.org/


http://www.scintilla.org/SciTE.html


http://sourceforge.net/projects/scintilla/








02. MadEdit





這個由國人撰寫的跨平台 Open Source 編輯器支援分頁、十六進位編輯與多種語法亮度的功能,另外最大的特色就是像目前的瀏覽器一樣,可以直接顯示不同內碼的文字檔,還能繁簡字互換 (不過內碼不變 Orz),這樣就不用每次都要經過轉檔才可以看。




MadEdit is an Open-Source & Cross-Platform Text/Hex Editor
written in C++ and wxWidgets. MadEdit can edit files in Text/Column/Hex
modes, and supports many useful functions, e.g. SyntaxHighlightings,
WordWrap, Encodings.





http://madedit.sourceforge.net/


http://sourceforge.net/projects/madedit/





圖片請至 http://sourceforge.net/dbimage.php?id=4242 觀賞。








03. Notepad++





Notepad++ 是在 Microsoft Windows 環境之下的一個免費的原始碼編輯器。





為了產生小巧且有效率的原始碼編輯器,這個在 GPL 許可證下的自由軟體開發專案採用 Win32 API 和 STL 以 C++ 程式語言撰寫成,並且選用功能強大的編輯模組 Scintilla。





PS. 這個軟體是居住在法國的台灣人所撰寫的,所以對中文的支援度自然不在話下,希望大家可以多多支持這個優秀的軟體喔 ^_^





http://notepad-plus.sourceforge.net/tw/about.php?lang=tw


http://notepad-plus.sourceforge.net/uk/site.htm


http://sourceforge.net/projects/notepad-plus/























04. PSPad





PSPad - freeware HTML/PHP/XHTML/JavaScript/ASP/Perl/C/Hex editor.





有中文語系


有專案管理


有 HTML 及程式開發的語法輔助工具


有 16 進位文字工具


有巨集管理


有英文文法檢查


有二個文件比對功能


有多種我的最愛功能


有類似 UltraEdit 的多文字同時編輯 (MultiTab)


.........


最重要的是


有版權但是免費 (Freeware)





http://www.pspad.com/





中文語系檔http://www.csie.nctu.edu.tw/~chtai/software.php?id=Mine























05. Editra




Editra is a multi-platform text editor with an implementation that
focuses on creating an easy to use interface and features that aid in
code development. Currently it supports syntax highlighting and variety
of other useful features for over 60 programming languages.





Editra 支援 Linux、Mac OS X 與 Windows,擁有分頁、語法亮度、語法補齊 ... 等的功能,還有外掛程式可下載使用喔!





http://editra.org/index.php




















06. Crimson Editor





Crimson Editor - Free Text Editor, Html Editor, Programmers Editor for Windows.





http://www.crimsoneditor.com/














07. Anyedit





AnyEdit is a highly customizable Development Environment for multiple programming languages.





http://www.anyedit.org/


http://sourceforge.net/projects/anyedit








08. ConTEXT





ConTEXT 是一個小巧、快速且功能完備的文字編輯程式,具有強大且可擴充的 syntax highlighting 設計,非常適合程設編輯使用。而且在同類型軟體中最常見的中文相容性問題 (切到半個中文字或出現亂碼),ConTEXT 的表現也非常的不錯,程式更有多國語系檔的設計,支援包括簡繁體中文等二十國以上語言介面,讓使用者輕鬆轉換為熟悉的操作環境。





http://www.context.cx/








09. jEdit




jEdit is a mature and well-designed programmer's text editor with 7
years of development behind it. Written in Java, so it runs on Mac OS
X, OS/2, Unix, VMS and Windows. Auto indent, and syntax highlighting
for more than 130 languages. Supports a large number of character
encodings including UTF8 and Unicode.





http://www.jedit.org/


http://sourceforge.net/projects/jedit/




















10. Programmers Notepad





Programmers Notepad is the free, open source, text editor with special features for coders.





http://www.pnotepad.org/


http://sourceforge.net/projects/pnotepad/

















11. Syn Text Editor




Syn is an Open Source Text and Programming Editor with
Syntaxhighlight for many Languages, and some IDE Features, like
starting a program and capture the output, support for Projects etc.
Syn is written in Delphi for maximum performance, stability and
filesize, hence it doesn't require any bulky VC++/VB Runtime or MFC
libraries!





http://syn.sourceforge.net/


http://sourceforge.net/projects/syn/

















12. FTE Text Editor





FTE is a free (licensed under the GNU GPL)
text editor for developers. It is really powerful, yet very easy and
intuitive to use. Ports that can be compiled from the current source
tree include OS/2, Win32 console, DOS, Linux console and an X port for
many UNIX'es, including Linux, AIX, Solaris, HP, and Cygwin.





http://fte.sourceforge.net/


http://sourceforge.net/projects/fte/














13. UniRed




UniRed is a Open Source unicode plain text editor. It can emphasize
syntax elements by colors and/or text styles. UniRed supports many
program languages, including HTML, C/C++, Delphi, Java and others.
UniRed 是 GPL 授權,基本上 Unicode 支援還不錯,可惜只能支援顯示到 Unicode Ext-A 而已,需要用到
Unicode Ext-B 的話請參考上面介紹的 MadEdit 和下面 PS 1. 介紹 BabelPad。





http://www.esperanto.mv.ru/UniRed/ENG/


http://sourceforge.net/projects/unired




















14. Notepad2




The original Notepad shipped with Windows is probably the handiest
program of all times, small, fast, without frills! Notepad2 tries to
follow this principle, it's a small, fast and free text editor with
syntax highlighting for HTML and other common languages. You can
download Source Code on follow website.





http://www.flos-freeware.ch/notepad2.html





中文語系檔http://www.csie.nctu.edu.tw/~chtai/software.php?id=Mine








15. EmEditor free 6.00.4





這是最後一版免費的 EmEditor 了,官方網站已經沒有提供下載,免費版跟其他版本的差異可參考這裡





EmEditor is a text editor offering full Unicode support, plug-ins, syntax highlighting, and many other features.





http://www.emeditor.com/























PS 1. BabelPad





既然前面有介紹到 MadEdit,那就順便介紹一下 BabelPad 這個個人免費的 Unicode 純文字編輯器吧!基本上功能跟 MadEdit 大同小異,有興趣的可以試試看,在 BabelStone Home Page 還有一些不錯的資料可以看看。





http://www.babelstone.co.uk/Software/BabelPad.html














PS 2. WinMerge





最後要介紹的這個編輯器不太屬於 Source Code Editor,雖然有支援語法亮度,但它的功能其實是著重在文件的比較,透過它可以輕易的檢查並顯示出不同之處,可惜目前還沒有中文語系的版本。




WinMerge is an Open Source visual text file differencing and
merging tool for Win32 platforms. It is highly useful for determing
what has changed between project versions, and then merging changes
between versions.





http://winmerge.sourceforge.net/

























二. C/C++ programming language IDE









01. Dev-C++


http://www.bloodshed.net/dev/devcpp.html


http://sourceforge.net/projects/dev-cpp/

Dev-C++ is an full-featured Integrated Development Environment
(IDE) for Win32. It uses GCC, Mingw or Cygwin as compiler and libraries
set.


簡易的視窗程式寫作教學 http://140.120.11.21/rival/Home%20Page/inside/Win32/


在 Dev-C++ 下使用 GTK+ ( http://www.cs.ccu.edu.tw/~chm91u/site/gtk_for_devcpp.php )








02. Code::Blocks


http://www.codeblocks.org/


http://free.tnc.edu.tw/modules/newbb/viewtopic.php?viewmode=flat&topic_id=1901&forum=13

GPL 授權,兼且跨平台,不單支援 GCC,還支援 Microsoft Visual C++、Borland
C++Builder、MinGW-C++、Microsoft VC free edition、Open Watcom or Borland
free Edition,大概和 Borland C++BuilderX 有得拼呢!





(1) MinGW-C++

A collection of freely available and freely distributable Windows
specific header files and import libraries combined with GNU toolsets
that allow one to produce native Windows programs that do not rely on
any 3rd-party C runtime DLLs.


http://www.mingw.org/


http://sourceforge.net/projects/mingw/





(2) Microsoft Visual C++ Toolkit 2003


http://msdn.microsoft.com/visualc/vctoolkit2003/


http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-49FD-9CB0-4BFA122FA91B&displaylang=en


http://www.dev.idv.tw/wp/index.php?p=67


http://www.cnblogs.com/ccboy/archive/2004/04/20/6724.aspx





(3) Borland C++Builder Compiler

The Free Borland C++Builder Compiler is the foundation for the
fully integrated C++ development environment: Borland C++Builder 5.


http://www.borland.com/cbuilder/cppcomp/index.html


http://community.borland.com/article/0,1410,20633,00.html





(4) Open Watcom

Open Watcom is a project of the open source community to maintain
and enhance the Watcom C, C++, and Fortran cross compilers and tools.
An Open Source license from Sybase allows free commercial and
non-commercial use of Open Watcom. More about Open Watcom's features.


http://www.openwatcom.org/








03. Anjuta C/C++ IDE


http://anjuta.sourceforge.net/


http://sourceforge.net/projects/anjuta/

Anjuta is a versatile IDE for C and C++, written for GTK/GNOME.
Features include project management, application wizards, an onboard
interactive debugger, and a powerful source editor with browsing and
syntax highlighting.








04. KDevelop


http://www.kdevelop.org/

The KDevelop-Project was founded in 1998 to build up an easy to use
IDE (Integrated Development Environment) for KDE. Since then, the
KDevelop IDE is publicly available under the GPL and supports many
programming languages.








05. gbuilder


http://gbuilder.sourceforge.net/


http://sourceforge.net/projects/gbuilder

gbuilder is an light-weight IDE for C and C++. It is written in C++
for GNOME and uses Gtk and GNOME-libs (in fact it uses the C++-wrappers
Gtkmm and Gnomemm), but it can also be used in KDE or in plain X.(See
Requirements for details).








06. Source-Navigator


http://sourcenav.sourceforge.net/

Source-Navigator is a source code analysis tool. With it, you can
edit your source code, display relationships between classes and
functions and members, and display call trees. Source-Navigator
supports C, C++, Java, Tcl, [incr Tcl], FORTRAN and COBOL, and provides
and SDK so that you can write your own parsers.








07. Kylix 3 Open Edition


http://www.borland.com/kylix/open/index.html


It is an integrated ANSI/ISO C++ and Delphi (Object Pascal)
language solution for building powerful open-source applications for
Linux, licensed under the GNU General Public License. Use visual design
tools and the power of component-based development with FreeCLX
component framework to rapidly build high-performance applications.

從 Kylix 3 的簡介中可以發現,在這個版本中 Borland 已經將 C/C++ 的支援放入 Kylix 3
了,也就是說,BCB/Delphi for Linux/Unix 的版本就是 Kylix 3,它可以讓開發者同時或混合使用
BCB/Delphi 的開發方式來開發軟體。Kylix 3 有幾個版本,其中的一個是 Open Edition,就像其他在
Linux/UNIX 下的 C/C++ compiler 一樣,可以免費的使用 (主要是給使用者開發 Open Source 的專案時使用)。雖然是免費使用,但仍需到 Borland 的網站上申請一個合法的使用序號。


http://free.tnc.edu.tw/modules/news/article.php?storyid=452








08. Visual-MinGW


http://visual-mingw.sourceforge.net/


http://sourceforge.net/projects/visual-mingw/


Visual-MinGW is an Integrated Development Environment devoted to MinGW
compiler system. It provides an easy to use Open Source front end to
create your own C/C++ Windows applications.








09. Relo


http://www.fifsoft.com/relo/


http://sourceforge.net/projects/fidel/

Relo is an open source C/C++ Integrated Development Environment for
Windows, for MingW32 and Borland C++ compilers, designed to be highly
customizable and user friendly.








10. Synthesis


http://sourceforge.net/projects/synthesis/

Synthesis is a RAD tool and C++ IDE (like VB or BCB). It eases the
creation of Win32 programing though visual programming and class
wizards.








11. C++Builder 6 Personal


http://www.borland.com/cbuilder/personal/index.html


http://www.borland.com/products/downloads/download_cbuilder.html (這個網頁的最下面有一處顯示 Keys Only (If you have a CD),這是有安裝光碟時取得序號的地方)

C++Builder 6 Personal contains the tools you need to begin
developing for the Windows platform in C++, including true
drag-and-drop visual development, enhanced wizards, sample
applications, and a C++ tutorial. C++Builder also provides support for
industry standards including ANSI/ISO C++, Microsoft Windows 98, 2000,
XP, and more.

Borland C++Builder 是個 Windows 上悠久且知名的 C/C++ IDE,包含像 Visual Basic
般拖曳的方式開發 Windows GUI 程式,這個是 Personal 版,雖然沒辦法在官方網站下載,但市面上有一些書籍的書附光碟中包含
Personal 試用版的安裝檔 (我目前知道金禾資訊公司有出版一本 "C 語言教學範本",吳勁樺 著,此書的附錄 D 有教如何安裝與上網申請安裝序號)








12. Microsoft Visual Studio 2005 Express Edition


http://www.microsoft.com/taiwan/msdn/express/


http://www.microsoft.com/taiwan/msdn/vs2005/welcome/#express


http://www.microsoft.com/taiwan/msdn/express/maninstall/default.mspx


http://www.iiiedu.org.tw/knowledge/knowledge20040731_1.htm


Express 產品包含:


* Visual Web Developer 2005 Express Edition:建立動態網站及 Web 服務的輕量級工具


* Visual Basic 2005 Express Edition:適合剛入門的程式設計者,學習如何建立 Windows 應用程式的順暢程式設計工具


* Visual C# 2005 Express EditionVisual C++ 2005 Express EditionVisual J# 2005 Express Edition:適合希望學習電腦科學基礎知識的學生及狂熱者的目標式程式設計工具。


* Microsoft 也推出了 SQL Server 2005 Express Edition,它是適合愛好者、狂熱者及學生的開發人員的入門級資料庫。





註. 目前微軟已經免費提供 Microsoft Visual Studio 2008 Express Edition 下載囉!











其他不錯的 GUI 程式設計相關資料:


Cross-Platform GUI Library 介紹 ( http://www.linuxhall.org/modules.php?name=News&file=article&sid=112 )


在 Win32 下使用 GTK+ ( http://www.cs.ccu.edu.tw/~chm91u/site/gtk_for_win32.php )









三、原始碼美化工具

不多說必推SourceFormatX原始碼美化工具,大家可以點此連結


查詢它是什麼、為什麼要使用以及如何使用。



簡單來說他不但能幫你美化你所寫程式碼,讓所有人都更能看懂
你的程式。更重要的是它提供整合
工具,內嵌在上面介紹的文字
編輯器裡面!


----------------------------

期盼大家都能善用這些工具,寫出一手好程式或是更能得心應手
地編輯文字資料唷!

1 則留言:

Jeffrey Chang 提到...

請問那些editor 支援下列三個功能:
1)Column block and stream selectiond modes.
2)C/C++ #if #else #endif preprocessor match.
3)Up to 10 bookmarks.

我目前使用 GWD Text editor
http://www.gwdsoft.com/about/#features