Articles in this section
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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied