Computer example
Shows computer text without changing the spacing or line breaks.
Syntax.
<ex [nonumber | number] [smaller | smallest]>
example text here ...
<\ex>
|
Where:
- nonumber
(Default.) Omits the adding of line numbers to the
beginning of each line.
- number
Puts a line number at the beginning of each line.
- smaller or smallest
Displays the example using smaller
fonts. This makes long lines fit within a narrower width.
Examples are printed in computer font, and they are indented from
the left text margin.
If you include the number attribute, the line numbers of the
example will be numbered. This is useful for referring to specific lines.
The following character pairs, which have special meanings in other
contexts, are treated as ordinary text within an example:
The <\ex> end tag is required.
Example.
The following markup:
<ex>
Examples are printed
in computer font.
<\ex>
|
produces:
Examples are printed
in computer font.
|
See Also.