Difference between revisions of "Verbatim text"
Jump to navigation
Jump to search
(new page) |
m |
||
Line 20: | Line 20: | ||
</texcode> | </texcode> | ||
− | Adjusting size of tabulator ( | + | Adjusting size of tabulator (since 2005.06.01): |
<texcode> | <texcode> | ||
\definetyping[C][tab=4] | \definetyping[C][tab=4] |
Revision as of 08:33, 2 June 2005
< Visuals
Displayed text
In-line text
Interesting features
Using ConTeXt-commands inside verbatim text:
\definetyping[C][option=commands] \startC #includeint main(){ return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC
Adjusting size of tabulator (since 2005.06.01):
\definetyping[C][tab=4] % for older ConTeXt versions: \chardef\spacespertab=3 \startC int func(int a){ if(a > 4) return 0; else return 10; } \stopC