eclipse_theme {knitr} | R Documentation |
This function uses the XML package to parse the theme as an XML file,
then converts to a CSS file using a brew template in the knitr package.
The CSS file can be further parsed with knit_theme$get()
, and the
result will be ready for knit_theme$set()
to set the highlighting
theme.
eclipse_theme(id)
id |
id of theme to save as CSS |
Path to the CSS file converted from the website.
Ramnath Vaidyanathan and Yihui Xie
http://www.eclipsecolorthemes.org/
# http://www.eclipsecolorthemes.org/?view=theme&id=1 library(knitr) ## Not run: # this relies on eclipsecolorthemes.org being accessible opts_knit$set(out.format = "latex") (css = eclipse_theme(1)) thm = knit_theme$get(css) knit_theme$set(thm) opts_knit$restore() ## End(Not run)