Skip to content
Prev 173879 / 398503 Next

R-code in html help pages: syntax highlighting

Duncan Murdoch wrote:
Hi Duncan,

It would be pretty easy to use the output from the R parser (which is 
never wrong, is it?), and dump some markup out of it. For example the 
showTree function in codetools dumps an R expression as Lisp, this is 
not too far from generating html, or any other markup.

As this sounds like fun, I'll volunteer to do something about this. 
Another advantage is that we can imagine to plug hyperlinks in  R code 
that lives in html help pages.

Romain