![](https://secure.gravatar.com/avatar/a3d357a7907ea0d23eceafc1eefb64f4.jpg?s=120&d=mm&r=g)
2 Oct
2008
2 Oct
'08
11: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/