[NTG-context] feature request: \setuptyping[ignorefirstspace=yes]

Peter Münster pmlists at free.fr
Mon Aug 25 17:02:29 CEST 2008


Hello,

Something like \setuptyping[ignorefirstspace=yes] would be nice, to be able
to format the source text with indentation but let the typing environment
ignore this indentation.
Example:

\setupcolors[state=start]
\setuptyping[margin=3em, ignorefirstspace=yes]
\starttext
This:
\starttyping
  some typing
\stoptyping
should be same as this:
\starttyping
some typing
\stoptyping
This:
\startcolor[blue]
  \starttyping
    some typing
  \stoptyping
\stopcolor
should be same as this:
\startcolor[blue]
  \starttyping
some typing
  \stoptyping
\stopcolor
some text
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/



More information about the ntg-context mailing list