运行SciTE,选择菜单“选项–>打开Global Options文件”,打开的就是SciTE的全局配置文件,建议不要改动这个文件,以后再改动配置的时候以这个文件作为参考和对照。然后同样打开“User Options文件”,空文件对不对,把Global Options文件中所有内容复制过来,意思是所有的全局配置都在User Options文件中改,User文件的配置会覆盖Global的配置。
在User Options中增加如下内容
# Japanese input code page 932 and ShiftJIS character set 128
#code.page=932
#character.set=128
# Unicode
#~ code.page=65001
code.page=936
#character.set=204
#command.discover.properties=python /home/user/FileDetect.py "$(FilePath)"
# Required for Unicode to work on GTK+:
#LC_CTYPE=en_US.UTF-8
if PLAT_WIN
output.code.page=936
if PLAT_GTK
output.code.page=936
if PLAT_MAC
output.code.page=936
#缩进字符数
indent.size=4
#缩进使用tab键
use.tabs=1
#缩进,就是自动保持前一行的缩进
#indent.auto=1
#智能缩进,和上面的区别就是有反缩进
indent.automatic=1
#代码缩进,比如大括号回车自动缩进
indent.opening=1
#代码反缩进,同上
indent.closing=1
#tab键缩进
#tab.indents=0
#自动换行开关,写代码一般不要打开自动换行
#wrap=1
#换行的风格,没用过
#wrap.style=2
#输出窗口自动换行
#output.wrap=1
#自动换行处的标记符
wrap.visual.flags=3
#代码折叠开关,建议打开
fold=1
#折叠指示,建议打开
fold.compact=1
#折叠代码样式1\2\3,2比较好看
fold.symbols=2
#代码折叠区的宽度
fold.margin.width=16
#代码注释折叠
fold.comment=1
#折叠预处理
fold.preprocessor=1
#鼠标到达文件末尾行后滚动条可继续下移
end.at.last.line=0
#显示行号
line.margin.visible=1
#行号显示的位数,3+表示默认3位数,不够再加
line.margin.width=3+
#行号缩进的宽度,最好不缩进
margin.width=0
#长行指示
edge.column=200
edge.mode=0
edge.colour=#F9F9F9