You are here: Home Blog SciTE - how I configure my python editor of choice

SciTE - how I configure my python editor of choice

Posted by Nicholas Spagnoletti at Aug 25, 2011 11:30 AM |
SciTE is what I want from an editor - fast, highly configurable and not Eclipse.

It took me a long time to find the right editor. After trying out many IDEs and editors and always running back to NEdit for - seriously - a decade I finally switched to SciTE. SciTE is what I want from an editor - fast, highly configurable and not Eclipse.

The first thing is to generate a python text file for calltips and autocompletion using this script. (I had to add some exception catching in places but unfortunately have lost my modified version of that file, sorry.)

Then although it's very old you can also grab the PHP one from here. (This doesn't bother me as my PHP is also very old)

Then from the SciTE Options menu choose 'Open User Options File'  - here is the config that I put there with all the options I've decided are best for me:

#python autocomplete and tooltips settings - python.api is in my home dir
api.*.py=$(SciteUserHome)/python.api
autocomplete.python.ignorecase=1
autocomplete.python.start.characters=.
autocomplete.python.fillups=(
calltip.python.ignorecase=1
calltip.python.word.characters=._$(chars.alpha)$(chars.numeric)

#php autocomplete and tooltip settings - php.api is in my home dir
api.$(file.patterns.php)=$(SciteUserHome)/php.api
autocomplete.php.ignorecase=1
autocomplete.php.start.characters=.
autocomplete.php.fillups=(
calltip.php.ignorecase=1
calltip.php.word.characters=._$(chars.alpha)$(chars.numeric)

#also use words in current buffer as choices for autocomplete
autocompleteword.automatic=1
#even if only one option then must still explicitly choose
autocomplete.choose.single=0

#utf8, of course, silly
code.page=65001
#check whether file modified by another process
load.on.activate=1
#ask me whether to save unsaved files when closing
are.you.sure=1
#use same instance of scite if already running
check.if.already.open=1
#allow open this number of files at same time
buffers=25
#keep list of recent files
save.recent=1
#when starting scite reopen previous buffers
save.session=1
#show full path in title bar to current file
title.full.path=1
#show line numbers
line.margin.visible=1
#width of line numbers
line.margin.width=4

#indentation
tabsize=4
indent.size=4
#ooh, tabs please
use.tabs=1
#wrap long lines
wrap=1

#let's always use monospace
font.base=$(font.monospace)
font.comment=$(font.monospace)
font.text=$(font.monospace)

For more options and documentation on these look here:
http://www.scintilla.org/SciTEDoc.html

Comments (1)

Edward van Kuik Aug 25, 2011 05:37 PM
I also have:

are.you.sure.on.reload=1
reload.preserves.undo=1
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;*.properties;*.html;*.xml;*.iface;*.bat;*.e;*.py;*.php