apps:scite
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionLast revision | |||
— | apps:scite [2016-02-16 14:32] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SciTE ====== | ||
+ | {{ wiki: | ||
+ | [[http:// | ||
+ | |||
+ | You can use Scite for scripting, programming, | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | However, the default settings are not as nice as they could be. Use the settings below to paste them in the '' | ||
+ | |||
+ | Of course you can modify these settings according to your own needs and preferences; | ||
+ | |||
+ | <file lua .SciTEUser.properties> | ||
+ | position.width=1024 | ||
+ | position.height=768 | ||
+ | position.left=0 | ||
+ | position.top=0 | ||
+ | |||
+ | toolbar.visible=1 | ||
+ | toolbar.usestockicons=1 | ||
+ | tabbar.visible=1 | ||
+ | tabbar.multiline=1 | ||
+ | statusbar.visible=1 | ||
+ | |||
+ | split.vertical=0 | ||
+ | edge.mode=1 | ||
+ | save.recent=1 | ||
+ | save.session=0 | ||
+ | open.dialog.in.file.directory=1 | ||
+ | wrap=1 | ||
+ | buffers=32 | ||
+ | autocompleteword.automatic=1 | ||
+ | check.if.already.open=1 | ||
+ | strip.trailing.spaces=1 | ||
+ | xml.auto.close.tags=1 | ||
+ | |||
+ | eol.auto=1 | ||
+ | ensure.final.line.end=1 | ||
+ | ensure.consistent.line.ends=1 | ||
+ | |||
+ | line.margin.visible=1 | ||
+ | line.margin.width=4+ | ||
+ | |||
+ | fold=1 | ||
+ | fold.on.open=0 | ||
+ | fold.symbols=3 | ||
+ | |||
+ | caret.fore=# | ||
+ | caret.width=3 | ||
+ | |||
+ | source.files=*.asm; | ||
+ | *.idl; | ||
+ | *.java; | ||
+ | *.properties; | ||
+ | |||
+ | font.base=$(font.monospace) | ||
+ | font.small=font: | ||
+ | font.comment=$(font.monospace) | ||
+ | font.code.comment.box=$(font.comment) | ||
+ | font.code.comment.line=$(font.comment) | ||
+ | font.code.comment.doc=$(font.comment) | ||
+ | font.text=$(font.base) | ||
+ | font.text.comment=$(font.comment) | ||
+ | font.embedded.base=$(font.monospace) | ||
+ | font.embedded.comment=$(font.comment) | ||
+ | font.monospace=font: | ||
+ | font.vbs=$(font.embedded.base) | ||
+ | font.js=$(font.embedded.base) | ||
+ | |||
+ | command.build.$(file.patterns.latex)=pdflatex $(FileNameExt) | ||
+ | command.go.$(file.patterns.latex)=acroread $(FileName).pdf | ||
+ | command.go.$(file.patterns.web)=firefox " | ||
+ | command.print.*=a2ps " | ||
+ | </ | ||
+ | |||
+ | ===== Sorting ===== | ||
+ | SciTE doesn' | ||
+ | |||
+ | Just add these lines to your user configuration: | ||
+ | <code lua> | ||
+ | ext.lua.startup.script=$(SciteUserHome)/ | ||
+ | |||
+ | command.name.11.*=Sort Selection | ||
+ | command.11.*=sort_text | ||
+ | command.subsystem.11.*=3 | ||
+ | command.mode.11.*=savebefore: | ||
+ | command.shortcut.11.*=Shift+Ctrl+S | ||
+ | </ | ||
+ | |||
+ | And save the following script as '' | ||
+ | |||
+ | Actually, this is not from me but taken from the [[http:// | ||
+ | Thanks a million for this script, Lua Users! | ||
+ | <file lua scitesort.lua> | ||
+ | function lines(str) | ||
+ | local t = {} | ||
+ | local i, lstr = 1, #str | ||
+ | while i <= lstr do | ||
+ | local x, y = string.find(str, | ||
+ | if x then t[#t + 1] = string.sub(str, | ||
+ | else break | ||
+ | end | ||
+ | i = y + 1 | ||
+ | end | ||
+ | if i <= lstr then t[#t + 1] = string.sub(str, | ||
+ | return t | ||
+ | end | ||
+ | |||
+ | function sort_text() | ||
+ | local sel = editor: | ||
+ | if #sel == 0 then return end | ||
+ | local eol = string.match(sel, | ||
+ | local buf = lines(sel) | ||
+ | table.sort(buf) | ||
+ | local out = table.concat(buf, | ||
+ | if eol then out = out.." | ||
+ | editor: | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | Done! From now on you will find the sorting function (for all selected lines) in the " |
apps/scite.txt · Last modified: 2024-04-12 15:01 by jens