Henning Hraban Ramm wrote:
Am 10.08.2004 um 19:30 schrieb Brooks Moses:
In the document I'm working on, I'd like to put some typed code bits in frames, to get an appearance sort of like the code excerpts on the ConTeXtWiki. However, I've found myself needing to do a couple of rather ugly hacks to get that to work right, and I'm hoping for some suggestions on how to avoid that.
Did you try something like:
\setupbackground[background=screen, frame=on, color=blue] \setuptyping[before=\startbackground, after=\stopbackground]
\starttyping bla bla \stoptyping
or: \starttext \defineframedtext [myframed] [background=color, backgroundcolor=gray, frame=on, strut=yes, offset=2mm, width=broad, framecolor=black, align=right] \definetyping[mytyping] \setuptyping [before=\startmyframed, after=\stopmyframed] \startmytyping This is an example. \stopmytyping \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------