Re: [NTG-context] Verbatim Text with Embedded Formatting Commands (MkIV)
Hans Hagen wrote:
On 9-1-2010 0:52, Tad Ashlock wrote:
...
you can try the beta with
\enabletrackers[buffers.visualize]
\starttext
\definetyping[C] % [option=C] \setuptyping[C][escape=yes]
\startC #include
int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC \setuptyping[escape=yes]
\startTEX /BTEX\em sometex/ETEX /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \before /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after \before \after \stopTEX
\setuptyping[TEX][escape=no]
\startTEX /BTEX\em sometex/ETEX /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \before /BTEX\em sometex/ETEX \after \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after \before \after \stopTEX
\stoptext
I did try the beta with that example and it worked, of course. But if
I add a second \startC ... \stopC section, then it breaks. For
example, this code (also attached as tadtest0.tex):
============================================================
\enabletrackers[buffers.visualize]
\starttext
\definetyping[C] % [option=C]
\setuptyping[C][escape=yes]
\startC
#include
participants (1)
-
Tad Ashlock