On 11-2-2010 10:55, Peter Münster wrote:
\setupinterlinespace[line=1cm] % just to make the example more obvious \definetextbackground[myBG][background=color, backgroundcolor=green, % backgroundheight=1ex, % does not work % height=1ex, % does not work frame=off] \starttext bla bla \startmyBG \dorecurse{30}{bla }\stopmyBG bla bla \stoptext
\starttext \startbuffer \definebar [backbar] [offset=1.5,rulethickness=2.4,color=blue, continue=yes,order=background] \definebar [forebar] [offset=1.5,rulethickness=2.4,color=blue, continue=yes,order=foreground] \stopbuffer \typebuffer \getbuffer The following example code looks messy but this has to do with the fact that we want properly spaced sample injection. \startbuffer from here \startcolor[white]% \startbar[backbar]% \input zapf \removeunwantedspaces \stopbar \stopcolor \space till here \blank from here \startbar[forebar]% \input zapf \removeunwantedspaces \stopbar \space till here \stopbuffer \typebuffer \getbuffer \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 -----------------------------------------------------------------