[OT] SciTE tips (was Re: what editor do you use?)

Jon Perez jbperez808 at yahoo.com
Mon Jul 5 13:30:14 CEST 2004

Franz Steinhaeusler wrote:

 > astyle (from sourceforge(?)) handles python code?
 > if so, how can you integrate it into the scite editor?

richie at entrian.com wrote:

 > "One click"?  You mean can run the current buffer through an external
 > program and replace the buffer with the output?  How do you do that?

Learned the stuff below from the SciTE docs... you should
also post future questions in the scite-interest list at
lyra.org so we won't be OT here in comp.lang.python.

My Astyle and HTMLTidy settings are as follows:

In cpp.properties...

command.name.0.$(file.patterns.cpp)=Astyle File
command.0.$(file.patterns.cpp)=astyle --style=kr -s2 -o $(FileNameExt)

In html.properties...

command.name.0.$(file.patterns.tidy)=Tidy Entire File
command.0.$(file.patterns.tidy)=tidy -q -m "$(FileNameExt)"

command.name.1.$(file.patterns.tidy)=Tidy Selection
command.1.$(file.patterns.tidy)=tidy -q --show-body-only yes

command.name.2.$(file.patterns.tidy)=Tidy Lint
command.2.$(file.patterns.tidy)=tidy -q -o nul "$(FileNameExt)"

(Tidy integration for Selection and Lint is not as clean as I would want...)

Pierre-Frédéric wrote:

 > I like it, it's very fast ! However it insists on saving the current
 > buffer when I switch to another buffer, and deletes the Undo history.
 > This  is very annoying. Any idea how to fix that ?

Set reload.preserves.undo=1 in SciTEGlobal.properties might fix this.

More information about the Python-list mailing list