Comment -> Exclude Pattern

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by Christian Söllig
Version: 1.0.68

i work with the demo from SyntaxEditor.
It's a very nice Control.

I have only one Problem.
The Custom Language from my Company has as Comment-Sign "!".

But wo also use for instance " i != 100".

So the Color from != 100 are green, this shouldn't be.

How i can realize this?

The Comments Section in my Language XML looks so:

<State Key="CommentState" TokenKey="CommentDefaultToken" Style="CommentDefaultStyle">

<RegexPatternGroup Type="StartScope" TokenKey="CommentStartToken" Style="CommentDelimiterStyle" PatternValue="!" />
<RegexPatternGroup Type="EndScope" TokenKey="CommentStartToken" Style="CommentDelimiterStyle" PatternValue="['\n]" />

<RegexPatternGroup TokenKey="CommentDefaultToken" PatternValue="!" />

Christian Soellig

P.S. Sorry about by bad english.

Comments (2)

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

I don't recall if v1.0 supported look-aheads yet but if it does, you can add something like this to your start scope:

Actipro Software Support

Posted 15 years ago by Christian Söllig
Avatar works very nice.
The latest build of this product (v21.1.0) was released 24 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.