[plt-scheme] Scribble "SCHEMEBLOCK" that doesn't interpret Scribble markup
At Tue, 24 Feb 2009 19:18:48 -0500, Neil Van Dyke wrote:
> Matthew Flatt wrote at 02/24/2009 06:57 PM:
> > At Tue, 24 Feb 2009 18:23:30 -0500, Neil Van Dyke wrote:
> >
> >> I could use a variation on Scribble "SCHEMEBLOCK" that takes the
> >> contents verbatim -- no interpretation of "@", "{", etc.
> >>
> >> What's the best way to do this?
> >>
> >
> > @verbatim|{
> > This is }}@really{{{{ verbatim.
> > }|
> >
>
> I want the content to be formatted as Scheme code, with all the coloring
> and such. So, the following doesn't work:
>
> @SCHEMEBLOCK[@verbatim|||{
> (foo (@ that-was-not-scribble-markup))
> }|||]
Ah. The enclosed module exports `code-block' and `code-elem', which is
a rough version of what you want (I think). Use it like this:
@code-block|{
(foo (@ that-was-not-scribble-markup))
}|
A better version of this form would be very welcome.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: block.ss
URL: <http://lists.racket-lang.org/users/archive/attachments/20090224/8f85abf0/attachment.ksh>