Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 2.7 KB

File metadata and controls

19 lines (15 loc) · 2.7 KB

How to implement T-SQL language syntax highlighting by creating Syntax Highlight Tokens

This example illustrates how to implement simplified syntax highlighting for the T-SQL language by registering the ISyntaxHighlightService. Note that we do not use the DevExpress.CodeParser library in this example. Text is parsed into tokens (a list of SyntaxHighlightToken Class instances) manually in the CustomSyntaxHighlightService.ParseTokens() method. The resulting list is sorted and passed to the SubDocument.ApplySyntaxHighlight Method.

See Also:
Syntax highlighting for C# and VB code using DevExpress CodeParser and Syntax Highlight tokens - Syntax highlighting for C# and VB code using DevExpress CodeParser and Syntax Highlight tokens


## Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)