Category / Section
How to have only the bracket highlighting feature without the indentation guidelines in WinForms SyntaxEditor (EditControl)?
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: