eclipse_theme

0th

Percentile

Download and convert a theme from eclipsecolorthemes.org to CSS

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.

Usage
eclipse_theme(id)
Arguments
id
id of theme to save as CSS
Value

  • Path to the CSS file converted from the website.

References

http://www.eclipsecolorthemes.org/

See Also

knit_theme

Aliases
  • eclipse_theme
Examples
# http://www.eclipsecolorthemes.org/?view=theme&id=1
opts_knit$set(out.format = "latex")
(css = eclipse_theme(1))
thm = knit_theme$get(css)
knit_theme$set(thm)
Documentation reproduced from package knitr, version 1.7, License: GPL

Community examples

Looks like there are no examples yet.