2 Oct
2008
2 Oct
'08
9:27 p.m.
Wolfgang Schuster wrote:
\setupcolors[state=start]
\definetyping[JAVA][option=JV]
\setuptyping [JAVA] [numbering=line]
\starttext
\startJAVA .... \stopJAVA
\stoptext
or
same preamble as above plus
\definefloat[listing][listings]
\starttext
\placelisting [split] [lst:freeformlogfile] {Log File} {\startJAVA ... \stopJAVA}
\stoptext
Wolfgang
Maybe someone should ask the authors of listings.sty if they're are willing to port it to ConTeXt. Here's the relevant link; http://www.ctan.org/tex-archive/macros/latex/contrib/listings/