Print

How to set syntax highlighter for the SyntaxEdit control?

Text parsing is performed by one of the Parser non-visual components. This parser should be linked to SyntaxEdit's Lexer property.
The easiest way to configure SyntaxEdit control to highlight the text is to use one of dedicated SyntaxParsers, such as CsParser, JsParser, VbParser, CParser, XmlParser and SQLParser that are designed to highlight syntax for specific languages (like C#, J#, VB.NET, Ansic-C, XML and SQL).
Alternatively, you can use Parser component and edit its Scheme property which specifies syntax highlighting rules, or use LanguageParser. LanguageParser contains all these languages in form of embedded resources allowing choosing syntax scheme via Language property.


Comment

No Very




Captcha Image