Token wrapping and lexical states

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Marianne
Avatar
If WordWrapping is set to 'Token' and you have a long string or a long comment, then the wrapping reverts to character wrapping. I assume this is because in the language definition, the string or comment is considered a single token.

Would it be possible to forcibly wrap at literal spaces if you were in a state other than the default state (typically comments and strings) and if the wrapping type was set to token?

------------------------------- Marianne

Comments (2)

Posted 14 years ago by Boyd - Automated Software Testing Consultant / Developer, Patterson Consulting, LLC
Avatar
You could always adjust your language definition so that individual words within a comment/string are seen as separate tokens (instead of one token). I think the XMLCommentState child state in the C# sample shows an example of this.
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes what Boyd suggested is what is recommended.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) 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.