Thanks a lot. I'll have a go at it. Op maandag 22 mei 2017 07:10:03 UTC+2 schreef Matthew Butterick: > > > On May 21, 2017, at 10:11 AM, Vincent Nys <[email protected] > <javascript:>> wrote: > > I'd like to display some Racket code in a Pollen book. In Beautiful > Racket, it looks like Racket code is produced by the Scribble HTML > renderer, because it links to the Racket docs all over the place. > > > No, I don't use the Scribble HTML renderer for anything. I use Pygments to > apply the syntax coloring. (One advantage is that Pygments can color most > languages; Scribble can only color Racket). Then with `decode`, I find the > defined terms in each code block (using the tags Pygments leaves behind) > and wrap each one in a link into the Scribble docs. This last step relies > on some not-well-documented functions, but here's an example of how it all > works (links to the source at the bottom): > > http://unitscale.com/mb/technique/dual-typed-untyped-library.html > >
-- You received this message because you are subscribed to the Google Groups "Pollen" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
