Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>