Skip to content

DevExpress-Examples/winforms-richedit-syntax-highlighting-with-devexpress-codeparser-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

Syntax highlighting HTML markup using DevExpress CodeParser library and Syntax Highlight tokens

This example demonstrates how to highlight HTML markup content using ISyntaxHighlightService.

A similar approach for highlighting C# and VB code snippets was demonstrated in the following example: Syntax highlighting for C# and VB code using DevExpress CodeParser and Syntax Highlight tokens

In this example, the following modifications of the mentioned approach were made:

- the ITokenCategoryHelper instance was created using the ParserLanguageID.Html parameter

- the "TokenCategory.Html....." and "TokenCategory.Css......" categories were analyzed in the HighlightCategorizedToken method.