Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SyntaxHighlightToken Class

A range of text with format settings.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[ComVisible(true)]
public class SyntaxHighlightToken

#Remarks

A SyntaxHighlightToken object specifying a token (lexeme) with highlight settings. It defines a text range with formatting. You can create tokens, using a parser, to parse a document text and specify text formatting for a token. You can pass a collection of tokens to the SubDocument.ApplySyntaxHighlight to highlight the corresponding document ranges.

View Example: Syntax Highlighting

#Inheritance

Object
SyntaxHighlightToken
See Also