Zilog ZUSBOPTS Manual de usuario Pagina 149

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 520
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 148
UM017105-0511 Using the Editor
Zilog Developer Studio II – ZNEO™
User Manual
121
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 hot keys 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.
Note:
Note:
Vista de pagina 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 519 520

Comentarios a estos manuales

Sin comentarios