|
Prev | Next | codei |
$cmd%text1%text2%...%textN%$$
cmd
specifies which font starts first.
$cmd
This command is one of the following:
$codei
| start with code, then italic, then code ... |
$icode
| start with italic, then code, then italic ... |
%text1%text2%...%textN%
is a delimiter sequence
and % can be any character that is not a letter.
The characters in
text1
, ...,
textN
are using in a
pre-formatted font
.
The characters in
text1
are in the first color,
the characters in
text2
are in the second color,
and so on.
$codei
command.
The input
$codei%extern void f(int %i% , const char *%s%);%$$
produces the following output:
extern void f(int i , const char *s);
The input
$codei|
extern void f(
int |i| ,
const char *|s|
);|$$
produces the following output
extern void f(
int i ,
const char *s
);
\).
For example, the input
$codei%
%x% = 1 + %a% + %b%
%y% = 2 + \ \ %b%
%$$
produces the following output
x = 1 + a + b
y = 2 + b
$codei and $icode commands
provide similar functionality to the syntax
command.
The differences are
$icode i$$
can be used to reference
i
in the prototypes above
(remember that when the delimiter is a space, there is only one entry in
the delimiter sequence and the other spaces are not delimiters).