Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 2.81 KB

File metadata and controls

24 lines (17 loc) · 2.81 KB

Syntax highlighting for C# and VB code using DevExpress CodeParser and Syntax Highlight tokens

This example demonstrates the use of the ISyntaxHighlightService to display the source code of this example in different colors and fonts according to the category of terms. The project uses DevExpress parsers for C# and VB, available in the DevExpress.CodeParser library. Resulting tokens are converted into SyntaxHighlightToken objects and format settings for different token types are specified. The SubDocument.ApplySyntaxHighlight method applies formatting to document ranges corresponding to the tokens.

More Examples

Documentation

Does this example address your development requirements/objectives?

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