Set the font color of the code output from the knife to black

I want to change the font color of the output of the knitr code to black for all the output. The standard output has a gray background, and the output uses different colors for different types of expressions, such as functions, objects, etc.

My goal is to have a white background, and the code should be black. I already solved the background color problem with the option chunk background='#FFFFFF' , but I could not find a solution for the font color of the code ...

Who can help me?

Thanks in advance for your help!

Yours sincerely,

broesel

+4
source share
1 answer

If you are talking about Rnw / LaTeX documents, you can turn off syntax highlighting using the chunk highlight=FALSE option. See the documentation .

+6
source

Source: https://habr.com/ru/post/1496147/


All Articles