Open coatless opened 4 years ago
Override inline code styling, e. g. code = 1 + 1 to have syntax highlighting, e.g.
code = 1 + 1
code = 1+ 1
Need a common.R file that loads
common.R
library(knitr) hook_inline = knit_hooks$get('inline') knit_hooks$set(inline = function(x) { if (is.character(x)) highr::hi_html(x) else hook_inline(x) })
c.f. https://stackoverflow.com/questions/18643863/consistent-code-html-inline-and-in-chunks-with-knitr
Override inline code styling, e. g.
code = 1 + 1
to have syntax highlighting, e.g.Need a
common.R
file that loadsc.f. https://stackoverflow.com/questions/18643863/consistent-code-html-inline-and-in-chunks-with-knitr