This example demonstrates the use of the ISyntaxHighlightService to display source code of this example in different colors and fonts according to the category of terms. To accomplish this, the text is parsed into tokens according to language syntax elements. 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 DevExpress.XtraRichEdit.API.Native.SubDocument.ApplySyntaxHighlight method applies formatting to document ranges corresponding to the tokens.