Property HighlightMatchingBlocks
HighlightMatchingBlocks
Specifies that SyntaxEdit control should highlight begin/end blocks.
public virtual bool HighlightMatchingBlocks { get; set; }
Property Value
Examples
Here is how to use a HighlightMatchingBlocks in the C# code:
public partial class Form1 : Form
{
private void Form1_Load(object sender, EventArgs e)
{
var syntaxEdit1 = new Alternet.Editor.SyntaxEdit(this.components);
syntaxEdit1.HighlightMatchingBlocks = true;
}
}
Here is how to use a HighlightMatchingBlocks in the Visual Basic code:
Partial Public Class Form1
Inherits Form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim syntaxEdit1 = New Alternet.Editor.SyntaxEdit(Me.components)
syntaxEdit1.HighlightMatchingBlocks = True
End Sub
End Class
Remarks
Setting the HighlightMatchingBlocks property to true enables the SyntaxEdit control to highlight matching parts of the syntax block, like the start and end of the class or method declaration in the Visual Basic code.