RAM 6.0 BUX II Series Guia do Utilizador Página 173

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 189
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 172
B Documentation Guidelines
B.5 Format and Style
165
B
Example input:
\ts
Key | Name | Meaning
----|------------+--------
\& | ampersand | bitwise AND
\| | pipe / bar | bitwise OR
# | pound sign | bitwise NAND
\te
Resulting output:
Code Examples, Syntax Displays, and Diagrams
Code Examples
Display code or terminal input/output with the \cs and \ce tags.
Text between these tags is interpreted as preformatted text; therefore, markup such
as angle brackets (< and >) and backslashes (\) is not interpreted, but passed
through as typed. Thus markup characters must not be escaped with a backslash.
The one exception is that /@ and @/ are converted to /* and */. In C files, all example
comments should be bracketed with /@ and @/. C compilers are generally
unfriendly toward nested comments.
Code displays should be indented by four spaces from column 1. The following
example shows how a code example would appear in a C routine section:
*\cs
* /@ Get file status information @/
*
* struct stat statStruct;
* fd = open ("file", READ);
* status = ioctl (fd, FIOFSTATGET, &statStruct);
*\ce
*
Resulting output:
/* Get file status information */
struct stat statStruct;
fd = open ("file", READ);
status = ioctl (fd, FIOFSTATGET, &statStruct);
Key Name Meaning
& ampersand bitwise AND
|pipe / barbitwise OR
# pound sign bitwise NAND
Vista de página 172
1 2 ... 168 169 170 171 172 173 174 175 176 177 178 ... 188 189

Comentários a estes Manuais

Sem comentários