Scite Indent

lua-users home
wiki

Indent HTML, PHP, C, CPP, Javascript, embedded Javascript, XML files. Uses the syntax highlight information, so it works properly only when the appropiate lexer is used.

Files:wiki_insecure/editors/SciTE/indent.lua

Attn: C Programmers

The above indent is nice, but I wanted some more choice over the style of indenting.

I installed GNU indent and added something like this to .SciTEUser.Properties

command.name.13.*=Indent Code

command.13.*=indent --line-length 90 -brf -linux "$(FilePath)" ;  \

echo "DONE! Press CTRL-R to reload document."

command.shortcut.13.*=Alt+Ctrl+Shift+I

Description: "Indent is a GNU program for beautifying C code, so that it is easier to read. Indent can also convert from one C writing style to a different one. Indent understands correct C syntax and tries to handle incorrect C syntax."

Indent supports several styles of indentation besides -brf -linux (a personal favorite)


RecentChanges · preferences
edit · history
Last edited October 30, 2009 8:27 am GMT (diff)