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.
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.