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

From: Jack Firth (jackhfirth at gmail.com)
Date: Thu Jul 31 03:52:20 EDT 2014

That explains it, thank you.


On Thu, Jul 31, 2014 at 12:50 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140731/175195ff/attachment.html>

Posted on the users mailing list.