Edit Modes: Specify Indent Next Line When Last Char is Colon
Submitted by Tuesday, 14 February, 2006 - 18:28
on
I am using jEdit to write AutoHotKey scripts. Subroutines have the following format...
[code]
SubRoutineName:
__Commands
Return
[/code]
("Commands" should have been indented, but it didn't preview that way, so I inserted a couple of underscores to fake it.)
How can I make jEdit indent after I type a subroutine name and then the colon, rather than having to indent myself?
It does it with braces {}, so I figure I can make it do it after a colon, too.
Can anyone help?
[code]
SubRoutineName:
__Commands
Return
[/code]
("Commands" should have been indented, but it didn't preview that way, so I inserted a couple of underscores to fake it.)
How can I make jEdit indent after I type a subroutine name and then the colon, rather than having to indent myself?
It does it with braces {}, so I figure I can make it do it after a colon, too.
Can anyone help?