How to syntax highlight in WinForms SyntaxEditor (EditControl)?
Content divider
(defun run_fn() (setq res (pk_body_boolean_2(b0 tag)(b1 ltag)(list(cons ‘tolerance 1.0e-5)))))
This can be done in WinForms Edit Control by setting the IsCollapsable property of the lexem to true in the configuration file. The configuration settings that needs to be used here is given below:
XML
IsComplex="true" IsCollapsable="true" AutoNameExpression="\(defun\s+(?.*?\s*\(.*\))" AutoNameTemplate="${text} " IsCollapseAutoNamed="true" CollapseName="DEFUN">
Reference link: https://help.syncfusion.com/windowsforms/syntax-editor/text-visualization#content-dividers
Conclusion
I hope you enjoyed learning on how to Syntax highlight in WinForms SyntaxEditor.
You can refer to our WinForms SyntaxEditor featuretour page to know about its other groundbreaking feature representations. You can also explore our documentation,on how to quickly get started for configuration specifications.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!