Skip to content

Use the DevExpress parsers for C# and VB, available in the DevExpress.CodeParser library to implement language highlight.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/syntax-highlighting-for-c-and-vb-code-using-devexpress-codeparser-and-syntax-highlight-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Use the DevExpress parsers for C# and VB, available in the DevExpress.CodeParser library to implement language highlight.

Topics

Resources

License

Stars

Watchers

Forks