You can use the escape identifier:

#lang scribble/manual

@(require scribble/eval
          (for-label racket))

@interaction[
 (define a (list 1))
 (define b (list 1))
 (code:comment @#,para{a and b are not @racket[eq?], but they are
@racket[equal?]:})
 (eq? a b)
 (equal? a b)]

On Tue, Nov 29, 2016 at 2:56 PM, Jos Koot <jos.k...@gmail.com> wrote:
> A simplified fragment of scribble code:
>
> #lang scribble/manual
>
> @(require scribble/eval)
>
> @interaction[
>  (define a (list 1))
>  (define b (list 1))
>  (code:comment "a and b are not eq, but they are equal:")
>  (eq? a b)
>  (equal? a b)]
>
> Within the comment I would like to hyperlink 'eq' to the doc of [eq?]
> and 'equal' to the doc of [equal?]
>
> Is this possible?
> If so how?
> I have tried it without success.
>
> Thanks, Jos
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to