[racket] code to HTML

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Fri Mar 18 18:33:58 EDT 2011

Oh, if you're going to do the simple syntax colorer, you can also do it 
in JavaScript, in the browser.  There are existing JS scripts for doing 
this for various languages.  I would prefer the result of using Scribble.

Neil Van Dyke wrote at 03/18/2011 05:21 PM:
> If you want to see the code in a Web browser window (not even use 
> DrRacket as a helper program launched from the browser for a Racket 
> MIME type), then I like Robby's suggestion of how to use Scribble.
> You might have to see whether the parts of Scribble you need are fast 
> enough to format on-the-fly for a responsive Web interface, or whether 
> you need to precompute that.
> If all else fails, writing a simple syntax colorer from scratch is a 
> small task, so long as you don't need symbol/ident information other 
> than a small fixed set of what are "the keywords".  You could make 
> this task an extra-credit homework problem for students. :)


Posted on the users mailing list.