Zilog Z8F0130 Bedienungsanleitung Seite 185

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 214
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 184
UM013037-1212 Line and Block Comments
Zilog Developer Studio II – Z8 Encore!
User Manual
161
Line and Block Comments
In a C file, line comments are framed using two diagonal characters (//), a format which is
derived from C++. Block comments are framed by the character sets "/*" and "*/" , which
are inherent in C. In an assembly file, line comments are framed using semicolons (;) and
there are no character sets for block comments.
The ZDS II editor provides two hotkeys to comment or un-comment a line or a block of
code; each is described below.
Line Comment in C file
To comment or un-comment a single line of text, place the text caret anywhere on the
appropriate line, then press Ctrl+Q.
To comment or un-comment multiple lines of text, select all of the appropriate lines and
press Ctrl+Q.
Ctrl+Q does not un-comment lines that don't start with line comment characters at the first
column.
Block Comments in a C File
To comment a block of code, select the block and press Ctrl+M.
You cannot un-comment a commented block of text using this hotkey. Instead, undo the
change by pressing Ctrl+Z.
Line Comments in an Assembly File
To comment or un-comment a single line of text, place the text caret anywhere on the
appropriate line, then press either Ctrl+Q or Ctrl+M.
To comment or un-comment multiple lines of text, select all of the appropriate lines and
then press either Ctrl+Q or Ctrl+M.
Abbreviations and Expansions
An abbreviation is a shortened word assigned to an expansion. An expansion is a text
string that can be a single line of code, a code block or a comment section such as a func-
tion/file header; an expansion can even be a combination of code and comments.
ZDS II allows you to define an Abbreviation and Expansion pair (See the Adding an
Abbreviation section on page 164) and to expand an abbreviation to its expansion by sim-
Note:
Note:
Seitenansicht 184
1 2 ... 180 181 182 183 184 185 186 187 188 189 190 ... 213 214

Kommentare zu diesen Handbüchern

Keine Kommentare