[NTG-context] multiple line comments

Hans Hagen pragma at wxs.nl
Tue Mar 28 18:37:04 CEST 2006


Hans Hagen wrote:
> This one is pretty safe: 
>
> \startbuffer[comment]
>     bla
>     \startbuffer
>     bla \iftrue \startbuffer bla bla
>     bla \stopbuffer bla bla
>     \stopbuffer
>     bla
>     bla
> \stopbuffer
\starthiding
\stophiding

does not support nesting in the way buffers do (simply because it was 
not enabled); i added a few lines to the buffer handler, so that now we 
can say:

\definebuffer[mycomment][local=yes]

and have 

\startmycomment 
.... 
\stopmycomment

(this extension will be available in the next release) 

(btw, in a similar fashion verbatim supports some nesting, which was needed in order to be able to write manuals) 

Hans  


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list