Articles in this section
Category / Section

How to syntax highlight the following code such that every open bracket has an equivalent closing bracket in WinForms SyntaxEditor (EditControl)?

1 min read

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 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:


IsComplex="true" IsCollapsable="true" AutoNameExpression="\(defun\s+(?.*?\s*\(.*\))" AutoNameTemplate="${text} "
IsCollapseAutoNamed="true" CollapseName="DEFUN">

Reference link:

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