beautypg.com

Matching preprocessor conditional macros, Figure 124. highlighting matching parentheses – Zilog Z8F0130 User Manual

Page 204

background image

Using the Editor

UM013037-1212

180

Zilog Developer Studio II – Z8 Encore!
User Manual

When braces or parentheses are nested, the innermost pair containing the text caret is
highlighted.

You can also locate the matching brace by pressing Ctrl+E; this keyboard shortcut is espe-
cially useful when the braces are extended over multiple pages. Place your text caret any-
where in between the braces or parentheses and then press Ctrl+E to move to the closing
or opening brace or parenthesis, respectively. Use this hotkey to quickly jump between
opening and closing braces or parentheses.

To select content within matching braces or parentheses, place the text caret anywhere in
between the braces or parentheses, respectively, then press Ctrl+Shift+E.

Matching Preprocessor Conditional Macros

Source code is often grouped between compiler preprocessor statements. The ZDS II edi-
tor will allow you to move from inside a conditional statement to the enclosing preproces-
sor statements.

Move the text cursor to the line of a preprocessor conditional statement or to a line that is
enclosed by preprocessor conditional statements, then perform either of the following
actions:

Press Ctrl+K to find the matching preprocessor conditional statements that exist for-
ward or backward

Figure 124. Highlighting Matching Parentheses