Skip to content

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 Trackback/Pingback

  1. [...] This post was mentioned on Twitter by Planet Lang, Planet Scheme. Planet Scheme said: Grant Rettke: Highlighting code in Scribble http://bit.ly/bHgfRh [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*