Re: [racket-users] Re: local variables are hyperlinkedinscribble/manual
That was actually Ryan Culpepper. Sorry for the noise, but I can't implicitly take credit for something that I didn't do. By the way, thank you Ryan C for both of those techniques. I've already happily used `make-element-id-transformer` On Saturday, June 13, 2020 at 4:07:06 PM UTC-5, jos.koot wrote: > > defaul...@gmail.com gave me a clear and usable answer. > > His email follows below. > > Best wishes, Jos > > > > > > > > From Ryan Kramer > > You can also use make-element-id-transformer, like this: > > > > (define-syntax SET > (make-element-id-transformer >(lambda _ #'(racketvarfont "set" > > > > Then Scribble will automatically replace SET within rendered code with the > element expression above. > > > > Another trick is to break the for-label binding by introducing a local > binding that shadows it. For example, if you write > > > (let ([set #f]) > (racket set)) > > > > then the occurrence of `set` within the `racket` form isn't linked to > `set` from racket/set. This trick relies on being able to put a let around > the occurrences you don't want linked but not the ones that you do want > linked, so it might not work in all cases. > > > > Ryan > > > > > > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/f7162464-1d7b-4113-8883-03f022f0cf5fo%40googlegroups.com.
RE: [racket-users] Re: local variables are hyperlinkedinscribble/manual
default.kra...@gmail.com gave me a clear and usable answer. His email follows below. Best wishes, Jos >From Ryan Kramer You can also use make-element-id-transformer, like this: (define-syntax SET (make-element-id-transformer (lambda _ #'(racketvarfont "set" Then Scribble will automatically replace SET within rendered code with the element expression above. Another trick is to break the for-label binding by introducing a local binding that shadows it. For example, if you write (let ([set #f]) (racket set)) then the occurrence of `set` within the `racket` form isn't linked to `set` from racket/set. This trick relies on being able to put a let around the occurrences you don't want linked but not the ones that you do want linked, so it might not work in all cases. Ryan -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/5ee53ff5.1c69fb81.6e0e8.3f90%40mx.google.com.
Re: [racket-users] Re: local variables are hyperlinked inscribble/manual
I struggled with a similar case, in my case the easiest/simplest solution was to use: @var[identifier] instead of @racket[identifier] (this works well for function arguments, but might not work for your case) https://docs.racket-lang.org/scribble/scribble_manual_code.html?q=var#%28form._%28%28lib._scribble%2Fmanual..rkt%29._var%29%29 Writing this mainly for others who have overlooked var like I did. Simon -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/dd6a15cc-684c-4998-b9bf-93e943a476ado%40googlegroups.com.
[racket-users] #lang support for menu bar?
Some #lang like scribble cause buttons to be added to DrRacket toolbar. Can they also add menus or menu items? There is a quickscript example that does this so it doesn't seem unreasonable. But I don't know. Jon -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/7a1629d6-11c9-6896-2466-01b891cb0c2d%40comcast.net.