[racket] [scribble] pipe in code

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Tue Nov 22 14:40:44 EST 2011

Have you tried the BNF grammars in scribble section: 

 http://doc.racket-lang.org/scribble/bnf.html?q=grammar



On Nov 22, 2011, at 2:14 PM, Eric Tanter wrote:

> Hi,
> 
> I want to typeset a BNF with Scheme-like syntax highlighting.
> 
> eg:
> 
> @racketblock[
> <list> ::= '()
>         | (cons <val> <list>)
> ]
> 
> except that the pipe `|' causes problem. I figured out that I can do the above with @verbatim|{...}| but then I lose the syntax highlighting ('() as a value, brown parentheses). 
> 
> Is there a way to have the pipe printed?
> (or to bring back the syntax highlighting within verbatim block)
> 
> Thanks,
> 
> -- Éric
> 
> 
> 
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users




Posted on the users mailing list.