Question on Indenting
Submitted by Monday, 5 March, 2012 - 06:25
on
Hi,
I'm trying to create an edit mode to do syntax highlighting and auto indenting for an obscure language, but I'm having trouble defining the correct XML to achieve what I want.
I would like all lines following the word Begin to be indented until the next occurrence of the word Begin. Each word Begin should be at the same indent level.
i.e.
Begin
Indent this line
Indent this line
Begin
Indent this line
Indent this line
I'm trying to create an edit mode to do syntax highlighting and auto indenting for an obscure language, but I'm having trouble defining the correct XML to achieve what I want.
I would like all lines following the word Begin to be indented until the next occurrence of the word Begin. Each word Begin should be at the same indent level.
i.e.
Begin
Indent this line
Indent this line
Begin
Indent this line
Indent this line