Syntax highlighter for R code based on the results of the R parser. Rendering in HTML and latex markup. Custom Sweave driver performing syntax highlighting of R code chunks.
Syntax highlighter for R based on highlight
o Abandon highlight.httpd.handler
o Dealing with spaces that were inserted where they should not have. reported by Yihui Xie.
o Removing the last line from highligted code chunks in the sweave driver Requested by Dirk Eddelbuettel.
o Supporting VignetteBuilder: highlight
o Using sprintf instead of snprintf (for solaris)
o Eliminated dependency on Rcpp and parser
o Depends on R 3.0.0 (needed for getParseData)
o highlight gains the show_line_numbers. suggestion by Yihui Xie
o The Sweave driver gains a <<file=>> option to highlight the content of a file
o The latex renderer created a global variable "txt", reported by Yihui Xie
o Bug fix in the html renderer. Thanks to @tonybreyal for pointing out the bug on twitter.
o Using sprintf instead of snprintf to make Solaris happy
o New R function external_highlight that uses the C++ code from Andre Simon highlight library. The code is called directly, no more using a system dependency as before.
o small bug fixed in the latex renderer. Reported by Collin Gillepsie.
o superfluous lines were added at the end of code chunks in the sweave driver
o multiple lines character strings were not rendered properly by the latex renderer
o sweave blocks now respond to the size option, as in : <<size=footnotesize>>= and adapts the generated latex code accordingly
o sweave code chunks can set prompt=FALSE to remove the prompt and continue prompt. <<eval=FALSE,prompt=FALSE>>=
o The sweave driver accepts argument boxes, bg and border to control the appearance of the R code chunks
o The sweave driver interprets code chunks like <<lang=foo>>= as source code in language foo and uses highlight (http://www.andre-simon.de/) to render the code if available
o the latex renderer header added useless information
o The latex renderer gains a "minipage" argument that is passed down to header and footer to include the resulting highlighted code in a minipage environment
o custom http handler to handle http request of the prefix /custom/highlight/fun or /custom/highlight/package/fun
o Fixed latex rendering (initial line of input and output) was indented
o Fixed handling of prompts
o Added an example of how to debug a renderer. Suggestion by Gabor Grothendieck
o 'highlight' now tests that parser.output is of class 'parser' to prevent uses of the 'parse' function in place of 'parser'. Suggestion by Hadley Wickham
0.1-3 2009-11-22 o all headers and footers now include line feeds
o headers and footers can now be NULL (no content)
0.1-2 2009-11-20 o initial release