Category / Section
How to use regular expressions to specify syntax highlighting in WinForms SyntaxEditor (EditControl)?
1 min read
Regular expression
The syntax highlighting feature in our SyntaxEditor (EditControl) can be enabled by assigning the appropriate configuration file to the EditControl’s SettingFile property. The configuration file supports the use of regular expressions to specify the various syntactic groups to be highlighted. For example, if you wish to highlight Registers of the type Rx, Rx.y etc. where x is any numerical and y is any alphanumerical, you could specify it as follows.
Register=REGEX[\bR\d*\b] Register=REGEX[\bR\d*.\d*\b] Register=REGEX[\bR\d*.*\b]
Reference link: https://help.syncfusion.com/windowsforms/syntaxeditor/syntax-highlighting#regex