SciTE设置

 特别提醒:

便携版配置:

EnvSet,SciTE_HOME,%A_ScriptDir%
run, %SciTE_HOME%scite.exe "%1%"
;~ 要传递参数,将他们立即添加在程序或文档名字后面。如果一参数包含空格,将其用双引号括起是最安全的(虽然它也能在某些情况下不需要他们而运作)

return

或用cmd命令:set SciTE_HOME=%CD%&start scite.exe

SciteDefaultHome不能写成SciTEDefaultHome

Shift+Ctrl+v  PASTEANDDOWN

 

1.OptionsOpen Local Options File  复制以下内容

# command

command.name.10.*=Open containing folder...
command.10.*=explorer.exe /n, /select,"$(FilePath)"
command.subsystem.10.*=2

command.name.1.*=Open test.txt
command.1.*=SciTE -open $(SciteDefaultHome) est.txt

#----------------


# Checking
save.session=1
title.full.path=1 #标题栏显示信息,0为文件名,1为全路径,2为显示文件名和目录名。
load.on.activate=1 ## 当前文件被外部修改时自动重新载入
are.you.sure.on.reload=1 # 当load.on.activate=1时,启用这个选项,重新载入时会先询问你
#save.on.deactivate=1 # scite失去焦点时自动保存文档。在某些时候这个选项很有用,比如切换到另外的程序去查看文档编辑效果。


# Encoding settings
code.page=936
output.code.page=936

# Window sizes and visibility
line.margin.visible=1 #显示行号
statusbar.visible=1 #工具栏,状态栏可见
position.left=0 #软件启动时左边距,上边距,宽,高. 宽高设成-1时表示窗口最大化
position.top=0
position.width=-1
position.height=-1

# Indentation
tabsize=4
indent.size=4
use.tabs=1

# Behaviour
autocompleteword.automatic=0 # 如果设置成1,当输入一个词,如果文档只有这个词以该字符开始,就会显示一个自动完成选择框,按Tab键就能完成自动输入。


# Define the Lexer menu
keyVBS=Ctrl+F12
menu.language=
#FreeBasic|bas||
Text|txt|$(keyText)|
#Ada|ads||
#Apache Confi&g|conf||
#Assembler|asm||
#ASN.1|asn1||
#Avenue|ave||
#Baan|bc||
&Batch|bat||
#Bullant|ant||
&C / C++|c||
#CMake|cmake||
#C&#|cs||
#COBOL|cob||
#Csound|orc||
CSS|css||
#D|d||
#&Difference|diff||
#&Eiffel|e||
#Erlang|erl||
#&Errorlist|err||
#FlagShip|prg||
#Forth|forth||
#&Fortran|f90||
#Gap|g||
#Haskell|hs||
#H&ypertext|html|$(keyHTML)|
#&InnoSetup|iss||
#&Java|java||
#Java&Script|js||
#&Kix|kix||
#Lisp|lisp||
#Lot|lot||
#Lout|lt||
#Lu&a|lua||
#Matlab|m.matlab||
#&Makefile|mak|$(keyMake)|
#MetaPost|mp||
#MMIXAL|mms||
#Modula-3|m3||
#&nnCron crontab|tab||
#NSIS|nsis||
#Objective Caml|ml||
#Octave|m.octave||
#Opal|impl||
#Pascal|pas||
#Pe&rl|pl||
#P&HP|php||
#P&LSQL|spec||
#P&ostScript|ps||
#P&OV-Ray SDL|pov||
#PowerShell|ps1||
#PowerPro|powerpro||
&Properties|properties||
Pytho&n|py||
#R|R||
#Reso&urce|rc||
#Ruby|rb||
#Shell|sh||
#S&QL|sql||
#Specman|e||
#&TCL|tcl||
#TeX|tex||
#&txt2tags|t2t||
#&VB|vb||
VBScr&ipt|vbs|$(keyVBS)|
#Verilog|v||
#VHDL|vhd||
#&XML|xml|$(keyXML)|
#YAML|yaml||

2.配置VBScript的自动补齐

How to install a .properties file

A .properties file allows you to set up highlighting of keywords, and commands for the Tools menu, for a file type. To install such a file, for example "ahk.properties", place the ahk.properties file in the SciTE directory. Then, edit the Global Options file or User Options file and add the line "import ahk".

How to install a .api file

A .api file can be used to add tooltips that describe a function's signature. As an example, use cpp.api, for c++ tooltips. Make a directory in the SciTE folder called "api" and move the cpp.api file there. Then, edit cpp.properties to add the lineapi.$(file.patterns.cpp)=$(SciteDefaultHome)apicpp.api. Now, if you edit a .cpp file, and type fclose(, a tooltip should come up with the syntax.

Other relevant settings are calltip.cpp.ignorecase and calltip.cpp.end.definition.

下载:http://files.cnblogs.com/cnsealine/vbscript.7z

 3.Command

command.name.10.*=Open containing folder...
command.10.*=explorer.exe /n, /select,"$(FilePath)"
command.subsystem.10.*=2

command.name.1.*=Open test.txt
command.1.*=SciTE -open $(SciteDefaultHome) est.txt

设置F1执行的命令,把当前光标所在的词传过去,从而打开特定主题的帮助。例编辑vbscript.properties加入

exe格式帮助文件,subsystem值2;chm帮助文件,subsystem取4; hlp文件subsystem取5

command.help.$(file.patterns.vbs)=$(CurrentWord)!$(SciteDefaultHome)helpvbscripting.chm
command.help.subsystem.$(file.patterns.vbs)=4

原文地址:https://www.cnblogs.com/cnsealine/p/3341764.html