yihui/knitr — Issue #36: Allow users to specify theme for syntax highlighting
Author: ramnathv
Created: 2011-12-04 20:21:12+00:00
State: open

First off, excellent work on the package. Sweave is a part of my daily workflow, and this package provides most of the features that I wished Sweave would. I have a couple of suggestions, which I will try to post from time to time. My first suggestion is to add a feature that allows users to specify the theme for syntax highlighting.

I see that you are using the `highlight` package, which uses a `css` file located in the `stylesheet` folder to control the highlighting. It would be nice to allow users to specify the highlighting theme using a css file. In the long run, it would be possible to convert standard themes available in `highlight` or `textmate` to `css` files, allowing the user to choose the `style` in `SweaveOpts`.

Let me know if you are open to this suggestion. I have browsed through your code and see that currently, the style definitions are in the variable `.header.hi.tex`. I can work with you in creating the mechanism that would allow user specified styles, if you would like me to.