Please review the E2993: Syntax highlighting for C# and VB code using DevExpress CodeParser and Syntax Highlight tokens example instead, if you use v2010 vol.2.6 and later.
This example illustrates the use of the service based on the ISyntaxHighlightService interface. This service is called every time the document content is changed. Then you can analyze the content and highlight required words in a document.
The Execute method of the service uses hash table instead of the straightforward search.
Question Comments
Added By: Anders Wang at: 6/25/2015 1:59:07 AM
Hi,
This sample cannot work now, Could you please update it? Thanks.
Hello,
Would you please describe the issue in greater detail and specify the version you are using?
Take special note of the Syntax highlighting for C# and VB code using DevExpress CodeParser and Syntax Highlight tokens example that was mentioned above if you are using v2010 vol.2.6 and later.