525 bytes added
, 08:30, 1 June 2005
< [[Visuals]]
=Displayed text=
<cmd>starttyping</cmd>,
<cmd>typebuffer</cmd>
=In-line text=
=Interesting features=
Using ConTeXt-commands inside verbatim text:
<texcode>
\definetyping[C][option=commands]
\startC
#include <stdio.h>
int main(){
return 0;
/BTEX{\em unreachedCode;}/ETEX
}
\stopC
</texcode>
Adjusting size of tabulator (quite new):
<texcode>
\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
</texcode>