How to use the brace matching engine?

Topics: User Forum
Mar 29, 2008 at 4:33 PM
Hi everyone!
Does anyone know if there's a way to match braces programmatically? That is, supposing I know the position of a close parenthesis, is there a way using .NET code to find the open parenthesis which matches it, given the current lexer?
May 28, 2008 at 10:59 PM
Edited May 28, 2008 at 11:00 PM
Do you mean you just want to highlight matching brace?

If so, just check "true" for "IsBraceMatching".

or add the following line to the Control.Designer.cs


this.sciDocument.IsBraceMatching = true;