I am currently using AvalonEdit to develop a Movie Script editor in .NET 4.
Each element type in a script (i.e.: Character, dialog line, etc.) should have a right margin. In other words, after a certain number of characters per line, the following ones should go on another line.
Is it possible to assign a right margin per DocumentLine, or are we forced to handle each input individually, and determine when we have to skip to the next line ?
I tried using this approach, but having to calculate when to move, replace text and reposition the caret is not trivial and would require quite a bit of work. Unless I absolutely need to, I'd like to avoid this approach.
What alternatives are there to having right margins per DocumentLine ?