如何为 html 输出获取此绿色语法高亮显示?
How to get this green syntax highlight for html output?
我在 Rstudio 看到了 html
制作的 Knit to HTML
。
我已经尝试了 Rstudio 中的所有选项,但无法获得相同的结果。
你能解释一下如何获得这个主题吗?以下是我的设置:
output:
html_document:
toc: yes
highlight: tango
theme: journal
number_subsections: no
word_document:
toc: yes
pdf_document:
toc: yes
number_sections: yes
always_allow_html: true
如果这个主题不存在那么它肯定是一个自定义主题。尝试深色主题或关注此 link 了解更多信息。 https://rstudio.github.io/rstudio-extensions/rstudio-theme-creation.html
这是另一个 link 设置主题 https://support.rstudio.com/hc/en-us/articles/115011846747-Using-RStudio-Themes