This project is read-only.

How to use the brace matching engine?

Topics: User Forum
Mar 29, 2008 at 5: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 11:59 PM
Edited May 29, 2008 at 12:00 AM
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;