Highlighting code in Scribble

You can use ‘code:hilite’ to highlight expressions in Scribble generated documentation like this:

@schemeblock[
  (+ 1 (code:hilite +inf.0))
 ]

It doesn’t work for multi-line expressions yet, however.
(via plt)

One thought on “Highlighting code in Scribble”

Leave a Reply

Your email address will not be published. Required fields are marked *