Preventing strings within strings being highlighted

SyntaxEditor for Windows Forms Forum

Posted 15 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 15 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 (v21.1.0) was released 19 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.