Page 1 of 1

Tip: Determining Matching Parentheses

Posted: 02 January 2006, 10:59 AM
by dkinzer
The IDE can assist you in determining if your expressions are correctly parenthesized. If you place the typing cursor (techincally, the caret) immediately to the right of a left or right parenthesis, both it and the matching parenthesis will be displayed in blue. The display style for matching parentheses is controlled by an entry in the Global Options file like this one:

Code: Select all

style.*.34=fore:#0000FF,bold
If you want to customize this style, you can add a line to your User Options by selecting 'Open User Options File' on the Options menu to specify the attributes for style 34. For example, the line

Code: Select all

style.*.34=fore:#ff0000,back:#ffff00,bold
This entry will cause the matching parentheses to be displayed in red on a yellow background

The asterisk means that the style designation applies to all languages. If you wanted the style to only apply to a specific language you would replace the asterisk with the language designator. Since ZBasic uses the Visual Basic "lexer", you can have matching parentheses in yellow on a blue background only for Basic using

Code: Select all

style.vb.34=fore:#ffff00,back:#0000ff,bold