Question about word wrap

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Jonathan Reis
Version: 4.0.0284
Hi Team,
I have a medical application that displays HL7 messages. The messages start with a 3 character segment name, followed by some pipe and hat delimited fields. What I would like to do is to turn on word wrapping, and have the wrapped line indent as shown below. Additionally, it would be nice to display a glyph at the beginning of the line (as opposed to the end of the line that was wrapped)

Instead of:

Something like (the ... are the continuation characters):

Is this possible?

Thanks in advance,

[Modified at 03/24/2010 01:31 PM]

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Jonathan,

I believe if you are using WordWrapType.Word mode then it will use the document.Language.WordBreakFinder to determine the word starts. So you could customize the FindNextWordStart method on the WordBreakFinder to possibly help.

However indenting on wrapped lines is not supported. As for adding glyphs you could do that in a user margin or could override our default VisualStudio2005SyntaxEditorRenderer's methods to draw glyphs in the indicator margin for wrapped lines.

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.