Question about word wrap

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by Jonathan Reis
Version: 4.0.0284
Avatar
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:
MSH|^~\&|RAD|BCS|SIO|CSA|200810131042||MDM^T02^|20080000000290|P|2.3.1||||||||

Something like (the ... are the continuation characters):
MSH|^~\&|RAD|BCS|SIO|CSA|200810131042||MDM^T02^|20080000000290
...|P|2.3.1||||||||

Is this possible?

Thanks in advance,
Jonathan

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

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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.1) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.