SciTE setup for Pylons (reminder)

November 5, 2010
Tags: , , ,

Another ‘quickie’.
Rather than update the central /usr/share/scite/SciTEGlobal.properties, just pull in the user’s properties from SciTE’s Options-OpenUserOptionsFile.
There, add the following :

find.files=*.p*|*.js|*.[ch]*
if PLAT_GTK
 find.command=grep -R  –include ‘$(find.files)’ –exclude ‘*.svn*’ -i –line-number ‘$(find.what)’ .
tabsize=1
indent.size=1
use.tabs=0
indent.size.*.py=4
# NB : tabsize becomes tab.size for filepatterns…
tab.size.*.py=4
lexer.html.mako=1
source.files=$(source.files);*.css;*.scss
filter.css=CSS (css scss)|*.css;*.scss|
lexer.*.css=css
lexer.*.scss=css
# Depending on how much you like monospace…
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)
# Turn word-wrap on (definitely a matter [...]

Comments Off

Scite filter changes for SCSS files

September 15, 2010
Tags: , ,

Just a quickie…
To make SciTE work with scss files (which are enhanced css files), just add the following information:
In /usr/share/scite/SciTEGlobal.properties (on a Fedora machine at least, YMMV) :

;*.scss to the end of source.files=

and in /usr/share/scite/css.properties the top of the file should read :

filter.css=CSS (css scss)|*.css;*.scss|
lexer.*.css=css
lexer.*.scss=css

Comments Off

Scite filter changes for mako files

September 5, 2010
Tags: , , ,

Just a quickie…
To make SciTE work with mako files (which are template files used by the mako templating system included with Pylons), just add the following :
In /usr/share/scite/SciTEGlobal.properties (on a Fedora machine at least, YMMV) :

lexer.html.mako=1

Comments Off

Scite user Properties

July 11, 2009
Tags:

Just my preferences for ~/.SciTEUser.properties … And (of course) I use ScitePM where possible :

find.files=*.p?|*.js|*.[ch]*
if PLAT_GTK
find.command=grep -R  –include ‘$(find.files)’ –exclude ‘*.svn*’ -i –line-number ‘$(find.what)’ .
tabsize=1
indent.size=1
use.tabs=0
save.session=0
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)
position.tile=1
split.vertical=0
buffers=20
# Remap some keys -
# Ctrl-e = to end of line
#NO Ctrl-a = to startof line
# Ctrl-` = Next bookmark
# Alt-`  = Toggle bookmark
# See : http://scintilla.sourceforge.net/CommandValues.html
user.shortcuts=\
Ctrl+e|2314|\
Ctrl+`|IDM_BOOKMARK_NEXT|\
Alt+`|IDM_BOOKMARK_TOGGLE|

Comments Off

Rebinding Keys in SCiTE

May 26, 2008

On XCFE, some of the default (windowing system) bindings override those of SciTE (notably the Bookmarking commands).
Consult [http://scintilla.sourceforge.net/CommandValues.html] and add the following to
.SciTEUser.properties
:
# Remap some keys – # Ctrl-e = to end of line#NOT-YET Ctrl-a = to start of line
# Ctrl-2 = Next bookmark# Alt-2 = Toggle bookmark
user.shortcuts=\Ctrl+e|2314|\Ctrl+2|IDM_BOOKMARK_NEXT|\Alt+2|IDM_BOOKMARK_TOGGLE|
# Ctrl+a|2312|# Ctrl+a|Home|

Comments Off