[racket] @racket vs @code in scribble/manual

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Jul 31 03:50:28 EDT 2014

Unlike `coed`, the `racket` form is meant to be used with [] instead of
{}:

 @racket[text]


When you write

 @foo{text}

it's equivalent to 

 @foo["text"]

for any `foo`.


At Thu, 31 Jul 2014 00:30:50 -0700, Jack Firth wrote:
> When I use #lang scribble/manual I have the issue of @racket{text}
> rendering as a string, e.g. @racket{text} becomes @code{"text"} regardless
> of what is substituted for text. I'm using Racket 6.01 64 bit on a Windows
> 7 machine with DrRacket, and the exact program that demonstrates the
> problem on my machine is:
> 
> #lang scribble/manual
> 
> @(require (for-label racket/base))
> 
> @racket{list}
> @code{list}
> @code{"list"}
> 
> Could someone give me some insight as to why this is happening? Am I
> missing something simple, is it a bug, or is this intended?
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.