r-for-educators / flair

decorate your R code
https://r-for-educators.github.io/flair/index.html
Other
211 stars 21 forks source link

I can set color for all the text of a chunk #11

Closed Duvancho321 closed 4 years ago

Duvancho321 commented 4 years ago

{python py, include=FALSE }

import numpy as np
np.arange(1,100)

{r}

decorate_chunk("py") %>% 
  flair(   [all text]   , color="orange" )

I would like all the python code to be orange. it is possible?

Duvancho321 commented 4 years ago

I'm sorry, I already know how

decorate_chunk("py") %>% flair_rx(".", color = "orange")

kbodwin commented 4 years ago

There is also a flair_all() function that does the same thing, perhaps a little more simply. :)