On 3-8-2010 2:50, Stefan Müller wrote:
Example:
\starttext
\defineframedtext[framedcode][strut=yes, offset=2mm, width=7cm, align=right] \definetyping[code][numbering=line, before={\startframedcode}, after={\stopframedcode}]
\setuplinenumbering[location=text] \startcode This is the first line % line 1 This is a rather long line that is wrapped, so look how the line numbering is done % line 2 Another line % line 3 % line 4 Last line after an empty line % line 5 \stopcode
\stoptext
you can test the beta (i just uploaded a zip); it's somewhat tricky as we need to determine which lines are broken and i didn't test the new hackery too well Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------