【问题标题】:How to get this green syntax highlight for html output?如何获得 html 输出的绿色语法高亮显示?
【发布时间】:2021-02-24 12:01:16
【问题描述】:

我在 Rstudio 看到了这个由Knit to HTML 制作的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

【问题讨论】:

    标签: html css rstudio knitr


    【解决方案1】:

    如果这个主题不存在,那么它肯定是一个自定义主题。尝试深色主题或点击此链接了解更多信息。 https://rstudio.github.io/rstudio-extensions/rstudio-theme-creation.html

    这是设置主题的另一个链接 https://support.rstudio.com/hc/en-us/articles/115011846747-Using-RStudio-Themes

    【讨论】:

      猜你喜欢
      • 2017-12-25
      • 2011-07-01
      • 2015-09-28
      • 1970-01-01
      • 2020-11-08
      • 1970-01-01
      • 2010-11-26
      • 2016-06-09
      • 1970-01-01
      相关资源
      最近更新 更多