Articles in this section
Category / Section

How to have only the bracket highlighting feature without the indentation guidelines in WinForms SyntaxEditor (EditControl)?

2 mins read

Bracket highlighting

The bracket highlighting feature can be turned on by using the ShowIndentationGuidelines and OnlyHighlightMatchingBraces properties in conjunction as shown in code below.

C#

this.editControl1.ShowIndentationGuidelines = true;
this.editControl1.OnlyHighlightMatchingBraces = true;

 

VB

Me.editControl1.ShowIndentationGuidelines = True
Me.editControl1.OnlyHighlightMatchingBraces = True

 

When the OnlyHighlightMatchingBraces property is set to true, only the bracket highlighting occurs, and the indentation guidelines are not displayed.

 

Reference links:

  1. https://help.syncfusion.com/windowsforms/syntaxeditor/editing#default-indentation
  2. https://help.syncfusion.com/windowsforms/syntaxeditor/text-visualization#bracket-highlighting
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