先说明一下,本人主要是用来查看汇编代码,并不需要过多的编辑(编辑在vim下),所以其中的编辑代码功能并没有完善,例如:代码自动提示和完成(有一点点,不是很全面),编译运行调试功能等都没有,相对的是显示效果会比较好。
闲话少说,进入主题。
环境:Debian Unstable 64位系统,需要有WenQuanYi Micro Hei 字体。
先贴两张图来看看效果。
代码贴出,是因为不知道为啥,代码中的中文乱码。所以看到乱码地方就是中文了。
# Global initialisation file for SciTE # For Linux, place in $prefix/share/scite # For Windows, place in same directory as SciTE.EXE (or Sc1.EXE) # Documentation at http://www.scintilla.org/SciTEDoc.html # Globals # Window sizes and visibility if PLAT_WIN position.left=0 position.top=0 #çªå£ä½ç½®åå¤§å° if PLAT_GTK position.left=5 position.top=22 position.width=876 position.height=540 #position.maximize=1 position.tile=1 #full.screen.hides.menu=1 #minimize.to.tray=1 split.vertical=1 #output.horizontal.size=200 #output.vertical.size=60 #output.initial.hide=1 #horizontal.scrollbar=0 #horizontal.scroll.width=10000 #horizontal.scroll.width.tracking=0 #output.horizontal.scrollbar=0 #output.horizontal.scroll.width=10000 #output.horizontal.scroll.width.tracking=0 #output.scroll=0 error.select.line=1 #end.at.last.line=0 tabbar.visible=1 #tabbar.hide.one=1 #tabbar.multiline=1 toolbar.visible=1 toolbar.usestockicons=1 toolbar.large=1 menubar.detachable=1 undo.redo.lazy=1 statusbar.visible=1 #fileselector.width=800 #fileselector.height=600 #fileselector.show.hidden=1 #magnification=-1 #output.magnification=-1 # Sizes and visibility in edit pane line.margin.visible=1 line.margin.width=1+ margin.width=16 #fold.margin.width=16 #fold.margin.colour=#FF0000 #fold.margin.highlight.colour=#0000FF #blank.margin.left=4 #blank.margin.right=4 buffered.draw=1 #two.phase.draw=0 if PLAT_WIN technology=1 #font.quality=3 if PLAT_MAC font.quality=3 # Element styles #view.eol=1 #control.char.symbol=. caret.period=500 view.whitespace=0 view.indentation.whitespace=1 view.indentation.guides=1 view.indentation.examine=3 highlight.indentation.guides=1 #å æ 设置 caret.fore=#6800DB #caret.additional.blinks=0 #å æ ç宽度 caret.width=5 caret.line.back=#E6E4E8 #caret.line.back.alpha=63 edge.column=200 edge.mode=0 edge.colour=#C0DCC0 braces.check=1 braces.sloppy=1 selection.fore=#FF0000 selection.back=#5CB4CF # DADADA used as background because it yields standard silver C0C0C0 # on low colour displays and a reasonable light grey on higher bit depths if PLAT_WINNT selection.alpha=32 selection.back=#000000 if PLAT_GTK #éæ度 selection.alpha=70 selection.back=#5CB4CF if PLAT_MAC selection.alpha=32 selection.back=#000000 #selection.additional.fore=#0000A0 #selection.additional.back=#000080 #selection.additional.alpha=20 #selection.rectangular.switch.mouse=1 #selection.multiple=0 #selection.additional.typing=0 virtual.space=3 #rectangular.selection.modifier=4 #whitespace.fore=#FF0000 #whitespace.back=#FFF0F0 error.marker.fore=#F7FF00 error.marker.back=#FF0000 error.inline=1 #书ç¾é¢è² bookmark.fore=#FF003E #bookmark.back=#FFFFA0 #bookmark.alpha= #æ¥æ¾æ å¿è² find.mark=#007100 find.mark.indicator=style:compositionthick,colour:#FFB700,under highlight.current.word=1 highlight.current.word.by.style=1 highlight.current.word.colour= #F5C54D highlight.current.word.indicator=style:roundbox,colour:#0080FF,under,outlinealpha:140,fillalpha:80 #indicators.alpha=63 indicators.under=1 # Scripting ext.lua.startup.script=$(SciteUserHome)/SciTEStartup.lua ext.lua.auto.reload=1 #ext.lua.reset=1 # Checking are.you.sure=1 are.you.sure.for.build=1 save.all.for.build=1 quit.on.close.last=1 load.on.activate=1 #save.on.deactivate=1 #éè½½ are.you.sure.on.reload=1 #save.on.timer=20 reload.preserves.undo=1 check.if.already.open=1 #temp.files.sync.load=1 default.file.ext=.cxx #source.default.extensions=.h|.cxx|.bat #æ é¢æ¾ç¤ºå®æ´è·¯å¾ title.full.path=1 title.show.buffers=1 #pathbar.visible=1 #save.recent=1 #save.session=1 #session.bookmarks=1 #session.folds=1 #save.position=1 #save.find=1 #open.dialog.in.file.directory=1 #strip.trailing.spaces=1 #ensure.final.line.end=1 #ensure.consistent.line.ends=1 #save.deletes.first=1 #save.check.modified.time=1 buffers=40 #buffers.zorder.switching=1 api.*.cxx=d:\api\w.api #locale.properties=locale.de.properties #translation.missing=*** #read.only=1 #background.open.size=20000 #background.save.size=20000 if PLAT_GTK background.save.size=10000000 #max.file.size=1 # Indentation tabsize=8 indent.size=8 use.tabs=1 indent.auto=1 indent.automatic=1 indent.opening=0 indent.closing=0 #tab.indents=0 #backspace.unindents=0 # Wrapping of long lines wrap=1 #wrap.style=2 #cache.layout=3 #output.wrap=1 #output.cache.layout=3 wrap.visual.flags=3 #wrap.visual.flags.location=3 #wrap.indent.mode=1 #wrap.visual.startindent=4 # Folding # enable folding, and show lines below when collapsed. fold=1 fold.compact=1 fold.flags=16 fold.symbols=1 fold.highlight=1 #fold.highlight.colour=#00C0C0 fold.on.open=1 fold.comment=1 fold.preprocessor=1 # Find and Replace # Internal search always available with recursive capability so use in preference to external tool find.command= # findstr is available on recent versions of Windows including 2000 #if PLAT_WIN # find.command=findstr /n /s $(find.what) $(find.files) #find.input=$(find.what) #if PLAT_GTK # find.command=grep --line-number "$(find.what)" $(find.files) find.files=*.c *.cxx *.h #find.in.files.close.on.find=0 #find.in.dot=1 #find.in.binary=1 #find.in.directory= #find.close.on.find=0 #find.replace.matchcase=1 #find.replace.escapes=1 #find.replace.regexp=1 #find.replace.regexp.posix=1 #find.replace.wrap=0 #find.replacewith.focus=0 #find.replace.advanced=1 find.use.strip=1 #find.strip.incremental=1 #find.indicator.incremental=style:compositionthick,colour:#FFB700,under replace.use.strip=1 #replace.strip.incremental=1 #strip.button.height=24 # Behaviour #eol.mode=LF eol.auto=1 clear.before.execute=0 #vc.home.key=1 #wrap.aware.home.end.keys=1 #èªå¨å®æ autocompleteword.automatic=1 autocomplete.choose.single=1 autocomplete.*.fillups=([ autocomplete.*.start.characters=.: caret.policy.xslop=1 caret.policy.width=20 caret.policy.xstrict=0 caret.policy.xeven=0 caret.policy.xjumps=0 caret.policy.yslop=1 caret.policy.lines=1 caret.policy.ystrict=1 caret.policy.yeven=1 caret.policy.yjumps=0 #visible.policy.strict=1 #visible.policy.slop=1 #visible.policy.lines=4 #time.commands=1 #caret.sticky=1 #properties.directory.enable=1 # Status Bar statusbar.number=4 statusbar.text.1=\ li=$(LineNumber) co=$(ColumnNumber) $(OverType) ($(EOLMode)) $(FileAttr) statusbar.text.2=\ $(BufferLength) chars in $(NbOfLines) lines. Sel: $(SelLength) chars. statusbar.text.3=\ Now is: Date=$(CurrentDate) Time=$(CurrentTime) statusbar.text.4=\ $(FileNameExt) : $(FileDate) - $(FileTime) | $(FileAttr) if PLAT_WIN command.scite.help="file://$(SciteDefaultHome)\SciTEDoc.html" command.scite.help.subsystem=2 if PLAT_GTK command.print.*=a2ps "$(FileNameExt)" command.scite.help=xdg-open "file://$(SciteDefaultHome)/SciTEDoc.html" # Internationalisation # Japanese input code page 932 and ShiftJIS character set 128 code.page=936 character.set=134 #Unicode code.page=65001 #code.page=0 #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_GTK output.code.page=65001 if PLAT_MAC output.code.page=65001 # Export export.keep.ext=1 export.html.wysiwyg=1 export.html.tabs=1 export.html.folding=1 export.html.styleused=1 export.html.title.fullpath=1 #export.rtf.tabs=1 export.rtf.font.face=WenQuanYi Micro Hei #export.rtf.font.size=9 #export.rtf.tabsize=8 #export.rtf.wysiwyg=0 #export.tex.title.fullpath=1 # Magnification (added to default screen font size) export.pdf.magnification=0 # Font: Courier, Helvetica or Times (Courier line-wraps) export.pdf.font=Helvetica # Page size (in points): width, height # E.g. Letter 612,792; A4 595,842; maximum 14400,14400 export.pdf.pagesize=595,842 # Margins (in points): left, right, top, bottom export.pdf.margins=72,72,72,72 export.xml.collapse.spaces=1 export.xml.collapse.lines=1 # Define values for use in the imported properties files chars.alpha=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ chars.numeric=0123456789 chars.accented=ÿÀàÁáÂâÃãÄäÅåÆæÇçÈèÉéÊêËëÌìÍíÎîÏïÐðÑñÒòÓóÔôÕõÖØøÙùÚúÛûÜüÝýÞþßö # This is a better set for Russian: #chars.accented=ÀàÁáÂâÃãÄäÅ娸ÆæÇçÈèÉéÊêËëÌìÍíÎîÏïÐðÑñÒòÓóÔôÕõÖö×÷ØøÙùÚúÛûÜüÝýÞþßÿ # The open.filter setting is used in the file selector which has a menu of filters to apply # to the types of files seen when opening. # There is a limit (possibly 256 characters) to the length of a filter on Windows, # so not all source extensions can be in this setting. source.files=*.S;*.asm;*.c;*.cc;*.C;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hxx;*.hpp;\ *.idl;*.odl;*.rc;*.rc2;*.dlg;*.def;\ *.vb;*.vbs;*.bas;*.frm;*.cls;*.ctl;\ *.java;*.js;*.py;*.pyw;*.pl;*.rb;*.cgi;*.lua;*.conf;\ make*;*.mak;\ *.properties;*.html;*.xml;*.iface;*.bat;*.e;*.m;*.mm;\ *.sh;*.patch # Each platform has a different idea of the most important filters if PLAT_WIN all.files=All Files (*.*)|*.*| top.filters=All Source|$(source.files)|$(all.files) if PLAT_GTK all.files=All Files (*)|*|Hidden Files (.*)|.*| top.filters=All Source|$(source.files)|$(all.files) # As OS X only greys out filtered files, show all as default if PLAT_MAC all.files=All Files (*.*)|*.*| top.filters=$(all.files)All Source|$(source.files)| open.filter=\ $(top.filters)\ $(filter.ada)\ $(filter.conf)\ $(filter.asm)\ $(filter.asn1)\ $(filter.ave)\ $(filter.baan)\ $(filter.bash)\ $(filter.caml)\ $(filter.cmake)\ $(filter.cpp)\ #$(filter.ch)\ $(filter.css)\ $(filter.d)\ $(filter.eiffel)\ $(filter.erlang)\ $(filter.fortran)\ $(filter.gap)\ #$(filter.hs)\ $(filter.idl)\ $(filter.inno)\ $(filter.java)\ $(filter.js)\ $(filter.kix)\ $(filter.lout)\ $(filter.lua)\ $(filter.matlab)\ $(filter.metapost)\ $(filter.mmixal)\ #$(filter.modula3)\ $(filter.nncrontab)\ $(filter.nsis)\ $(filter.opal)\ $(filter.pascal)\ $(filter.perl)\ $(filter.php)\ $(filter.pov)\ $(filter.powershell)\ $(filter.prg)\ $(filter.properties)\ $(filter.ps)\ $(filter.python)\ $(filter.r)\ $(filter.ruby)\ #$(filter.rust)\ $(filter.sql)\ $(filter.specman)\ $(filter.tcl)\ $(filter.tex)\ $(filter.text)\ $(filter.txt2tags)\ $(filter.vb)\ $(filter.web)\ $(filter.yaml)\ $(filter.verilog)\ $(filter.vhdl) #save.filter=$(open.filter) # Give symbolic names to the set of fonts used in the standard styles. if PLAT_WIN font.base=font:Verdana,size:9.4 font.small=font:Verdana,size:8 font.comment=font:Georgia,size:10.1 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:Times New Roman,size:11 font.text.comment=font:Verdana,size:9 font.embedded.base=font:Verdana,size:9 font.embedded.comment=font:Comic Sans MS,size:8 font.monospace=font:Consolas,size:8.9 font.vbs=font:Lucida Sans Unicode,size:10 if PLAT_GTK font.base=font:WenQuanYi Micro Hei ,size:11 font.small=font:WenQuanYi Micro Hei ,size:11 font.comment=font:WenQuanYi Micro Hei ,size:12 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:WenQuanYi Micro Hei ,size:11 font.text.comment=font:WenQuanYi Micro Hei ,size:11 font.embedded.base=font:WenQuanYi Micro Hei ,size:11 font.embedded.comment=font:WenQuanYi Micro Hei ,size:11 font.monospace=font:WenQuanYi Micro Hei Mono,size:11 font.vbs=font:Bitstream Vera Sans Mono,size:11 if PLAT_MAC font.base=font:Verdana,size:12 font.small=font:Verdana,size:10 font.comment=font:Georgia,size:13 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:Times New Roman,size:13 font.text.comment=font:Verdana,size:11 font.embedded.base=font:Verdana,size:11 font.embedded.comment=font:Comic Sans MS,size:10 font.monospace=font:Courier New,size:12 font.vbs=font:Lucida Sans Unicode,size:12 font.js=$(font.comment) # Give symbolic names to the set of colours used in the standard styles. #注éè¡é«äº® colour.code.comment.box=fore:#2C3E44 colour.code.comment.line=fore:#2C3E44 colour.code.comment.doc=fore:#2C3E44 colour.code.comment.nested=fore:#A0C0A0 colour.text.comment=fore:#0000FF,back:#D0F0D0 colour.other.comment=fore:#007F00 colour.embedded.comment=back:#E0EEFF colour.embedded.js=back:#F0F0FF colour.notused=back:#FF0000 #æ°åé«äº® colour.number=fore:#6700D3 #å ³é®åé«äº® colour.keyword=fore:#6700D3 #å符串é«äº® colour.string=fore:#EF904D #å符é«äº® colour.char=fore:#0081FF #æä½ç¬¦é«äº® colour.operator=fore:#F64997 #头æ件é¨åé«äº® colour.preproc=fore:#F91E4E #é误é«äº® colour.error=fore:#E3E31F,back:#FF0000 #å½æ°é«äº® colour.error=fore:#90D700 # Global default styles for all languages # Default style.*.32=$(font.base),bold # Line number style.*.33=back:#444444,fore:#C300C3,$(font.base),bold # Brace highlight style.*.34=fore:#0000FF,back:#FF0000,bold # Brace incomplete highlight style.*.35=fore:#FF0000,bold # Control characters style.*.36= # Indentation guides style.*.37=fore:#C0C0C0,back:#FFFFFF # Printing print.colour.mode=1 print.magnification=-1 # Windows-only setup: left, right, top, bottom margins, in local units: # hundredths of millimeters or thousandths of inches print.margins=1500,1000,1000,1500 Header/footer: print.header.format=$(FileNameExt) -- Printed on $(CurrentDate), $(CurrentTime) -- Page $(CurrentPage) print.footer.format=$(FilePath) -- File date: $(FileDate) -- File time: $(FileTime) Header/footer style print.header.style=font:Arial,size:12,bold print.footer.style=font:Arial Narrow,size:10,italics # Warnings - only works on Windows and needs to be pointed at files on machine #if PLAT_WIN # warning.findwrapped=100,E:\Windows\Media\SFX\Boing.wav # warning.notfound=0,Effect.wav # warning.wrongfile=0,Glass.wav # warning.executeok=0,Fanfare.wav # warning.executeko=100,GlassBreak.wav # warning.nootherbookmark=100,Boing2.wav # Define the Lexer menu, # Each item contains three parts: menu string | file extension | key # The only keys allowed currently are based on F-keys and alphabetic keys and look like # [Ctrl+][Shift+][Fn|a] such as F12 or Ctrl+Shift+D. # A '&' may be placed before a letter to be used as an accelerator. This does not work on GTK+. keyText=Shift+F11 keyMake=Ctrl+Shift+F11 keyHTML=F12 keyXML=Shift+F12 # On OS X, F11 is used by Expose, F12 by Dashbard if PLAT_MAC os.x.home.end.keys=1 keyText=Shift+F13 keyMake=Ctrl+Shift+F13 keyHTML=Ctrl+Shift+F14 keyXML=Shift+F14 default.languages=\ #FreeBasic|bas||\ Text|txt|$(keyText)|\ Ada|ads||\ #Apache Confi&g|conf||\ Assembler|asm||\ #ASN.1|mib||\ #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||\ #Rust|rs||\ Shell|sh||\ S&QL|sql||\ #Specman|e||\ &TCL|tcl||\ TeX|tex||\ #&txt2tags|t2t||\ &VB|vb||\ VBScr&ipt|vbs||\ #Verilog|v||\ #VHDL|vhd||\ &XML|xml|$(keyXML)|\ YAML|yaml|| menu.language=$(default.languages) # User defined key commands user.shortcuts=\ Ctrl+Shift+V|IDM_PASTEANDDOWN|\ Ctrl+PageUp|IDM_PREVFILE|\ Ctrl+PageDown|IDM_NEXTFILE| #KeypadPlus|IDM_EXPAND|\ #KeypadMinus|IDM_BLOCK_COMMENT| #user.context.menu=\ #||\ #Next File|IDM_NEXTFILE|\ #Prev File|IDM_PREVFILE| # To keep menus short, these .properties files are not loaded by default. imports.exclude=abaqus asl asn1 au3 avenue avs baan blitzbasic bullant \ cobol cmake csound ecl escript flagship forth freebasic gap haskell inno \ kix latex lot lout metapost mmixal modula3 nimrod nncrontab nsis \ opal oscript powerpro powershell purebasic r rebol rust \ scriptol smalltalk sorcins spice specman \ tacl tal txt2tags verilog vhdl # Newly removed: ave baan escript lot metapost mmixal # The set of imports allowed can be set with #imports.include=ave # Import all the language specific properties files in this directory import *
由于本人也是跟着手册第一次配置的,如有不妥之处,请见谅,如有更好意见,请留言!