SciTE是Scintilla组件的示例程序,功能强大,可定制性强,支持使用lua脚本进行二次开发。

1.下载地址:
http://www.scintilla.org/SciTEDownload.html

2.中文界面:
下载 http://scintilla.sourceforge.net/locale.zh_gb.properties,重命名为 locale.properties 并
保存到<SciTE.exe所在目录>。

3.配置文件:
<SciTE.exe所在目录>\SciTEGlobal.properties 全局设置

<%HOMEPATH%>\SciTEUser.properties 用户设置,会覆盖全局设置,建议只修改这一个文件

<SciTE.exe所在目录>\SciTE.properties 当前目录的配置文件,会覆盖全局和用户配置文件

<SciTE.exe所在目录>\ruby.properties 特定文件类型的配置文件

4.常用配置项(写入到<%HOMEPATH%>\SciTEUser.properties中)

# 工具栏
toolbar.visible=1

# 状态栏:
statusbar.visible=1

# TAB键的宽度:
tabsize=4
indent.size=4

# 滚动条的长度:
end.at.last.line=0

# 显示行号:
line.margin.visible=1

# 默认窗口大小与位置:
if PLAT_WIN
 position.left=200
 position.top=100
position.width=800
position.height=600

# 折叠符号为方形:
fold.symbols=3

# 显示缩进辅助线:
view.whitespace=1

# 空格和TAB键的颜色:
whitespace.fore=#E1E1F0

# 光标所在行的背景:
caret.line.back=#FFFED8

# 新建文件的默认编码:
code.page=936

# 字体设置:
# 对于Windows下特有的配置,需要写在if PLAT_WIN下面。
if PLAT_WIN
    font.base=font:Consolas,size:11
    font.small=font:Consolas,size:11
    font.comment=font:Consolas,size:11
    font.code.comment.box=$(font.comment)
    font.code.comment.line=$(font.comment)
    font.code.comment.doc=$(font.comment)
    font.code.comment.nested=$(font.comment)
    font.text=font:Consolas,size:11
    font.text.comment=font:Consolas,size:11
    font.embedded.base=font:Consolas,size:11
    font.embedded.comment=font:Consolas,size:11
    font.monospace=font:Consolas,size:11
    font.vbs=font:Consolas,size:11

5.SciTE的深度定制
可参考:SciTE for AutoIt3,SciTE for lua,SciTE for CH(chide)等

6.关于Scintilla组件的使用方法
《语法高亮编辑控件Scintilla在MFC中的简单使用之完整示例》
http://www.qingfengju.com/article.asp?id=15

《语法高亮编辑控件Scintilla在MFC中的简单使用》
http://www.qingfengju.com/article.asp?id=14
 


本文链接地址: SciTE的使用
https://blog.qingfengju.com/index.asp?id=364

上一篇: Windows脚本宿主(JavaScript)动态创建表单
下一篇: 在MySQL中使用lib_mysqludf_sys调用外部命令

分类:脚本编程 查看次数:8703 发布时间:2014/2/18 17:41:19