Range Commenting

SyntaxEditor for WPF Forum

Posted 15 years ago by Samuel Amoser
Version: 9.1.0505

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*/

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA

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 15 years ago by Samuel Amoser
We are still in evaluation. But as it should be possible, it's great. Thanks.

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

Add Comment

Please log in to a validated account to post comments.