免費開源的編輯器 - SciTE

SciTE,早有耳聞的一個開源編輯器,Windows/Linux兩個平臺都有很好的支持,今天偶然的機會把它下了下來,用VC編譯後,使使,感覺還不錯!
SciTE是一個基於SCIntilla的文本編輯器,支持C/C++/VB/Parscal/Smalltalk/Ada/Python/Java等許多語法的高亮顯示,支持類似.net ide裏的分段顯示代碼的功能(Great!),非常適合編寫C/Script一類,不需要可視化設計的語言.

介紹:
http://scintilla.sourceforge.net
Development of Scintilla started as an effort to improve the text editor in PythonWin. After being frustrated by problems in the Richedit control used by PythonWin, it looked like the best way forward was to write a new edit control. The biggest problem with Richedit and other similar controls is that they treat styling changes as important persistent changes to the document so they are saved into the undo stack and set the document's dirty flag. For source code, styling should not be persisted as it can be mechanically recreated.

下載地址:http://scintilla.sourceforge.net/ScintillaDownload.html

開始安裝:
1.) 我機器上安裝了VC 6.0
2.) 解開包:
scite164
├─scintilla
│ ├─bin
│ ├─doc
│ ├─gtk
│ ├─include
│ ├─src
│ ├─vcbuild
│ └─win32
└─scite
├─bin
├─boundscheck
├─doc
├─gtk
├─lua
│ ├─include
│ └─src
│ └─lib
├─scripts
├─src
├─vcbuild
│ ├─Debug
│ └─Release
└─win32
3.) 首先編譯scintilla
打開"命令提示符",CD到scite164/scintilla/win32這個目錄
輸入編譯命令:
> nmake -f scintilla_vc6.mak
首次編譯時非常慢,一大堆東西需要產生Obj文件,連接的時候就快了,命令執行成功後,在目錄:scite164/scintilla/bin
Dir一下,將看到如下文件:
2005-06-23 17:03 <DIR> .
2005-06-23 17:03 <DIR> ..
2000-03-08 11:33 55 empty.txt
2005-06-23 17:01 317,952 SciLexer.dll
2005-06-23 17:01 639 SciLexer.exp
2005-06-23 17:01 2,038 SciLexer.lib
2005-06-23 17:01 172,544 Scintilla.dll
2005-06-23 17:01 644 Scintilla.exp
2005-06-23 17:01 2,050 Scintilla.lib
上面的兩個dll文件是關鍵.

4.) 再編譯scite:
打開VC 6.0,在VC 6.0的菜單: File -> Open Project,打開scite164/scite/vcbuild/SciTE.dsp
VC加載的時候非常慢(按ReadMe上所說作者沒有爲VC 6.0編寫SciTE)所以VC加載的時候把文件轉換爲VC 6.0的格式.
加載完之後,菜單Build->Set Active Configuration...,選Release版本的,確定.
之後,按F7或者菜單Build->Build SciTE.exe,還是很慢,之後將在scite164/scite/vcbuild/Release下找到SciTE.exe.

5.) 將編譯好的那兩個dll和SciTE.exe複製到同一個目錄下,如在mkdir scite164/Editor/
再把scite164/scite/src下的*.properties複製到同一個目錄下,有一些properties可以不要,具體就看你自己的工作需求了.
由於是開源的,你可以參考GPL的License製作自己的SciTE啦!

6.) 漢化
打開SciTE.exe
將如下網頁上的字符複製下來:
http://scintilla.sourceforge.net/locale.zh_gb.properties
再將複製的字符粘貼到SciTEH,保存到與SciTE.exe相同目錄下,命名爲:locale.properties
# 語言文件使用方法:
# 請將此文件命名爲locale.properties,拷貝到SciTE安裝目錄下即可。

關於SciTE配置的文章過幾天整理整理發出來,供大家參考!

出處:http://spaces.msn.com/members/unsee/

上傳一個可用的給大家:
漢化文件:locale.properties
代碼提示:APIs這個目錄下
將IE默認HTML查看器更改爲:SciTE使用SciTE.reg文件(但需要修改該文件中的SciTE的路徑)
其它文件還是參考http://scintilla.sourceforge.net 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章