beautypg.com

Figure 102. auto indentation in c program, Figure 103. auto indentation with assembly program – Zilog Z8F0130 User Manual

Page 182

background image

Using the Editor

UM013037-1212

158

Zilog Developer Studio II – Z8 Encore!
User Manual

In C program code, auto indentation is supported with brace characters { } and keywords
if, else, while, for, do, case, default.

In assembly program code, the auto indentation is supported with macros and conditional
directives such as

ifdef

,

ifndef

,

if

,

else

,

elif

,

elseif

,

ifsame

,

ifma

,

macro

,

$while

,

$repeat

,

with

,

endif

,

endmac

,

endm

,

endmacro

,

macend

,

$wend

,

$until

and

endwith

.

Figure 103 shows an example of autoindentation with an assembly program. Note that all
of the lines between

ifdef

and

endif

are automatically indented.

Figure 102. Auto Indentation in C Program

Figure 103. Auto Indentation With Assembly Program