Posted 19 years ago
by tobias weltner
As far as I understand, SmartIndent determines the number of indentations for the NEXT line that gets inserted after someone presses ENTER.
In most cases, you want the closing part to indent immediately.
So I wonder if the only way to accomplish this really is calling "Outdent" for a selection.
I am asking this because it is a hassle to change the selection (after all, it is a UI component that the end user *sees* so it also needs to get set back after the operation).
I'd like to see either of this:
- a new property to smartIndent-Event that if set as true outdents the current line as well (the one ENTER was pressed on)
- a new method for documentline-Objects called "Outdent" that allows the document line to be outdented
In general, I wished all the methods accessible via selection were also accesible via something like a range object that is invisible to the user (it acts like a selection but really is invisible and independent from the UI). Or did I overlook something?
In most cases, you want the closing part to indent immediately.
So I wonder if the only way to accomplish this really is calling "Outdent" for a selection.
I am asking this because it is a hassle to change the selection (after all, it is a UI component that the end user *sees* so it also needs to get set back after the operation).
I'd like to see either of this:
- a new property to smartIndent-Event that if set as true outdents the current line as well (the one ENTER was pressed on)
- a new method for documentline-Objects called "Outdent" that allows the document line to be outdented
In general, I wished all the methods accessible via selection were also accesible via something like a range object that is invisible to the user (it acts like a selection but really is invisible and independent from the UI). Or did I overlook something?