Posted 20 years ago
by Carl Schneider
- Boca Raton, Florida
I've looked all over for how to auto indent. I see the reference to the editor.smartindent event but it contains no code for doing the indent.
The comment in the event statement reads....
' By default, SyntaxEditor initializes the e.IndentAmount properly for Block formatting.
' You can change e.IndentAmount to provide "smart" indenting based on language context.
I'm not sure what this means since the editor isn't autoindenting.
I see that the event arg accepts an indentAmount value and that setting it works. I also found the OutliningNode class and see that is exposes a nesting depth. So I'm guessing that it's just a matter of finding the object that exposes my current outline and setting indentcount to the vaule of the current outline's nestingdepth.
For the life of me I can't find out how to obtain the current outline object.
Can anybody enlighten me on this one?
Thanks
Carl
The comment in the event statement reads....
' By default, SyntaxEditor initializes the e.IndentAmount properly for Block formatting.
' You can change e.IndentAmount to provide "smart" indenting based on language context.
I'm not sure what this means since the editor isn't autoindenting.
I see that the event arg accepts an indentAmount value and that setting it works. I also found the OutliningNode class and see that is exposes a nesting depth. So I'm guessing that it's just a matter of finding the object that exposes my current outline and setting indentcount to the vaule of the current outline's nestingdepth.
For the life of me I can't find out how to obtain the current outline object.
Can anybody enlighten me on this one?
Thanks
Carl