I want to change the font color of the code output of knitr to black for the whole output. The standard output has a grey background and different colors are used in the output for different types of expressions like functions, objects, etc.
My goal is to have a white background and the code should be all black. I already solved the background color problem with the chunk option background='#FFFFFF'
, but I couldn't find a solution for the font color of the code...
Who can help me?
Thank you very much in advance for your valuabe help!!
Sincerely yours,
broesel
If you are talking about Rnw/LaTeX documents, you can turn off syntax highlighting using the chunk option highlight=FALSE
. See documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With