# Re: [NTG-context] Some problems with framing typed text.

At 11:48 AM 8/10/2004, Hans Hagen wrote:
`or:`

`\starttext`

```\defineframedtext
[myframed]
[background=color,
backgroundcolor=gray,
frame=on,
strut=yes,
offset=2mm,
framecolor=black,
align=right]```

`\definetyping[mytyping]`

```\setuptyping
[before=\startmyframed,
after=\stopmyframed]```

```\startmytyping
This is an example.
\stopmytyping```

\stoptext

That works perfectly; thanks! (I'm a bit confused, though; I tried something nearly like this as my first attempt, and it gave me very confusing errors that led me to believe that using \startframedtext in a before= command wouldn't work. Strange; I don't remember what I did then, and it works now.)

`- Brooks`

```_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
```