You might also be able to use make-element-id-transformer 
<https://docs.racket-lang.org/scribble/scheme.html?#%28def._%28%28lib._scribble%2Fracket..rkt%29._make-element-id-transformer%29%29>
 
like this

#lang scribble/manual

@(begin
   (require scribble/racket
            scribble/eval
            (for-syntax racket/base))

   (define-syntax FOO (make-element-id-transformer
                       (lambda arglist #'(racket (code:hilite foo)))))
   (interaction
    (let ([FOO 41])
      (add1 FOO))))


On Saturday, August 22, 2020 at 5:15:17 PM UTC-5, Éric Tanter wrote:
>
> Hi, 
>
> From the doc: `(code:hilite datum)` typesets like `datum`, but with a 
> background highlight. 
> However, it does not work to highlight a binder, eg: `(letrec 
> ([(code:hilite self) …]) …)` 
> Is there another way to highlight a binder? 
>
> Thanks, 
>
> — Éric 
>
>
>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/a4bb9d79-5f2a-4317-82f9-0d4de630af10o%40googlegroups.com.

Reply via email to