Changes

Jump to navigation Jump to search
474 bytes added ,  00:52, 4 August 2005
Clarified wording, added examples.
=Interesting features=
Using The <tt>option=commands</tt> setting allows the usage of ConTeXt-commands inside verbatim text, as in this example:
<texcode>
\definetyping[C][option=commands]
</texcode>
Adjusting size of tabulator <context>\definetyping[C][option=commands]\startC#include <stdio.h>int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX}\stopC</context> The tab character normally corresponds to one character, as can be seen above. That value can be adjusted, using the following code (since available in the 2005.06.01version and later):
<texcode>
\definetyping[C][tab=43]
% for older ConTeXt versions: \chardef\spacespertab=3
\startC
\stopC
</texcode>
 
<context>
\definetyping[C][tab=3]
\startC
int func(int a){
if(a > 4)
return 0;
else
return 10;
}
\stopC
</context>
Anonymous user

Navigation menu