
Hi,
i have implemented a custom indentprovider for Syntaxeditor for WPF 2011.1. When the user presses enter, the current line gets an indent depending on certain rules.
The Syntaxeditor has WordWrapMode set to "Word". As soon as a word wraps to a new line the same rules should be applied as well. The new line should get an indention too.
How can this be achieved? Is the best way to do this using an IndentProvider or TextFormatter?
Thx for any help.
i have implemented a custom indentprovider for Syntaxeditor for WPF 2011.1. When the user presses enter, the current line gets an indent depending on certain rules.
The Syntaxeditor has WordWrapMode set to "Word". As soon as a word wraps to a new line the same rules should be applied as well. The new line should get an indention too.
How can this be achieved? Is the best way to do this using an IndentProvider or TextFormatter?
Thx for any help.