Token wrapping and lexical states

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by Marianne
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 19 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
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 19 years ago by Actipro Software Support - Cleveland, OH, USA
Yes what Boyd suggested is what is recommended.

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.