Preventing strings within strings being highlighted

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by John Youren
Avatar
Hi,

In my xml file I have commands such as Sync etc.

However, these strings are highlighted even if the string appears in another string

e.g. 'SyncSpeed'; 'Sync' will be highlighted.

Can I prevent this?

Thanks,
John

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sure, all keyword lexical pattern groups in the XML language definitions should have this attribute:
LookAhead="{NonWordMacro}"
That tells it to make sure the word ends with a non-word character.


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.