Range Commenting

SyntaxEditor for WPF Forum

Posted 10 years ago by Samuel Amoser
Version: 9.1.0505
Avatar
Hi

Within SyntaxEditor, the range commenting can't be nested. This behaviour is well known from different programming languages.
/*comment /*comment*/ no comment*/
Would it be possible to allow nested range comments, as shown below?
/*comment /*comment*/ still a comment*/
samivel.

Comments (2)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Samivel,

Are you using a dynamic lexer? If so, you should be able to achieve that if you have your comment state transition to itself as a child state. You'd have to make sure your tokens in the comment state break on / chars (they already should be breaking on * chars) so that the child state start scope can be recognized.

Also set the scope's AncestorEndScopeCheckEnabled property to false. Doing those things should get it working.


Actipro Software Support

Posted 10 years ago by Samuel Amoser
Avatar
We are still in evaluation. But as it should be possible, it's great. Thanks.

samivel.
The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.