Skip to content

Register the ISyntaxHighlightService to implement simplified syntax highlighting for the T-SQL language

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/how-to-implement-t-sql-language-syntax-highlighting-by-creating-syntax-highlight-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rich Text Editor for WPF -- How to Use Syntax Highlight Tokens to implement T-SQL language Syntax Highlight

This example illustrates how to register the ISyntaxHighlightService to implement simplified syntax highlighting for the T-SQL language.

Implementation Details

Text is parsed into tokens (a list of SyntaxHighlightToken class instances) manually by the CustomSyntaxHighlightService.ParseTokens() method call. The resulting list is sorted and passed to the SubDocument.ApplySyntaxHighlight method.

More Examples

Documentation

Does this example address your development requirements/objectives?

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

About

Register the ISyntaxHighlightService to implement simplified syntax highlighting for the T-SQL language

Topics

Resources

License

Stars

Watchers

Forks