[plt-scheme] Scribble "SCHEMEBLOCK" that doesn't interpret Scribble markup

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Feb 24 19:42:17 EST 2009

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 [email protected]{{{{ 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>

Posted on the users mailing list.