首页 > 技术文章 > SciTE 文本编辑器

tang88seng 2015-05-23 15:44 原文

  • 个人一直使用,强大,轻型基于 Scintilla。
    • http://www.scintilla.org/SciTEDownload.html 

  • 解压缩后,能右键文件打开
  • 修改注册表, 使能资源管理器 右键
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\SciTE]

[HKEY_CLASSES_ROOT\*\shell\SciTE\command]
@="\"C:\\Program Files\\SciTE\\SciTE.exe\"  \"%1\""
  • 个人配置
    • 安装 cygwin,和 WinMerge。
      • CTRL + 1;CTRL + 2; CTRL + 3 能调用 cygwin grep 命令
      • Find in Files 使用 cygwin find + sargs + grep 命令
    • 复制下面内容到 SciTEUser.properties,通过 Options > Open User Options File 打开
#character and code settings

#Unicode
#code.page=65001
#output.code.page=65001

#Traditional Chinese
#character.set=136
#code.page=950
#output.code.page=950

#Simplifiled
character.set=134
code.page=936
#output.code.page=936

#Korea
#character.set=129
#code.page=949
#output.code.page=949

#Japanese
#character.set=128

#Misc settings
find.files=*
load.on.activate=1
toolbar.visible=0
statusbar.visible=1
position.width=1536
position.height=1024
minimize.to.tray=1
check.if.already.open=1
save.session=1
save.recent=1
session.bookmarks=1
autocompleteword.automatic=1
#menukey.file.exit=<control>Q
line.margin.visible=1
line.margin.width=3+
margin.width=0
buffers=50
default.file.ext=.txt
title.full.path=1
title.show.buffers=1
split.vertical=0
tabbar.multiline=1
tabsize=4
indent.size=4
find.replace.advanced=1
highlight.current.word=1
#highlight.current.word.colour=#FFFF00
#highlight.current.word.colour=#0000FF
highlight.current.word.colour=#0000ff
#cache.layout=3
#output.cache.layout=3
#output.scroll=2
end.at.last.line=1
find.use.strip=0
replace.use.strip=0
#find.strip.incremental=2
#replace.strip.incremental=2

#fonts
#font.monospace=font:Consolas,size:10
font.monospace=font:Courier New,size:10
#font.monospace=font:Arial Unicode MS,size:10
font.base=$(font.monospace)
font.small=$(font.monospace)
font.comment=$(font.monospace)
font.text=$(font.monospace)
font.text.comment=$(font.monospace)
font.embedded.base=$(font.monospace)
font.embedded.comment=$(font.monospace)
font.vbs=$(font.monospace)

source.files=*.*;*.asm;*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hxx;*.hpp;\
*.idl;*.odl;*.rc;*.rc2;*.dlg;*.def;\
*.vb;*.vbs;*.bas;*.frm;*.cls;*.ctl;\
*.java;*.js;*.py;*.pl;*.rb;*.cgi;*.lua;*.conf;\
make*;*.mak;\

#find.command=perl.exe "C:\Program Files\SciTE\SciteFind.pl" '$(find.what)' '$(find.files)'
find.mark=1
#find.command=find "$(find.directory)" -exec "grep -r -E -H -i -a -n $(find.what) {}"
#find.command=cmd /c c:\cygwin\bin\find "$(find.directory)" -type f -name "$(find.files)" -print0 | c:\cygwin\bin\xargs -0 grep -E -H -i -a -n "$(find.what)"
#find.command=cmd /c c:\cygwin\bin\find "$(find.directory)" -type f -name "$(find.files)" -print0 | c:\cygwin\bin\xargs -0 fgrep -G -n "$(find.what)"

command.name.1.*=Grep
command.1.*=*grep -a -n -i -H "$(1)" "$(FilePath)"
command.save.before.1.*=2
command.is.filter.1.*=1

command.name.2.*=eGrep
command.2.*=*grep -a -n -i -H -E "$(1)" "$(FilePath)"
command.save.before.2.*=2
command.is.filter.2.*=1

command.name.3.*=eGrep-r
command.3.*=*grep -a -n -i -r -E "$(1)" "$(FileDir)"
#command.3.*=*grep -a -n -i -B1 -E -H "$(1)" "$(FilePath)"
command.save.before.3.*=2
command.is.filter.3.*=1

command.name.4.*=Grep-v
command.4.*=*grep -a -n -i -v -E -H "$(1)" "$(FilePath)"
command.save.before.3.*=2
command.is.filter.4.*=1

command.name.5.*=WinMerge
command.5.*="C:\Program Files\WinMerge\WinMergeU.exe" $(FilePath)
command.save.before.5.*=2
command.is.filter.5.*=1
command.subsystem.5.*=1

command.name.6.*=Formatter
command.6.*=perl "E:\applications\perl\sqlformatter.pl" "$(CurrentSelection)" "$(1)"
command.save.before.5.*=2
command.is.filter.6.*=1
command.subsystem.6.*=1

command.name.7.*=Formatter1
command.7.*=perl "E:\applications\perl\sqlformatter1.pl" "$(CurrentSelection)"
command.save.before.7.*=2
command.is.filter.7.*=1
command.subsystem.7.*=1

command.name.8.*=grepWin
command.8.*="C:\Program Files\grepWin\grepWin.exe" /searchpath:$(FilePath)
command.save.before.8.*=2
command.is.filter.8.*=1
command.subsystem.8.*=1


command.mode.30.*=subsystem:lua,savebefore:no,groupundo
command.shortcut.30.*=Alt+Shift+I
command.30.*=fixIndentation

command.name.31.*=Strip Trailing Spaces
command.mode.31.*=subsystem:3,savebefore:no
command.31.*=stripTrailingSpaces


command.name.33.*=Sort lines
command.33.*=sort
command.is.filter.33.*=1
command.subsystem.33.*=0
command.input.33.*=$(CurrentSelection)
command.replace.selection.33.*=1
command.quiet.33.*=1



 

推荐阅读