【问题标题】:syntax highlights in org-mode html exportorg-mode html 导出中的语法亮点
【发布时间】:2016-12-17 00:01:16
【问题描述】:

我的问题可能很简单,但我没有在网上找到任何答案。

如何在 org-mode HTML export 中对代码块进行 pygmentize 处理?我有一些这样的代码块:

#+BEGIN_SRC puppet
file{'/etc/motd':
  ensure  => present,
  content => 'Bienvenue !',
}
#+END_SRC

导出的 html 没有突出显示,但是 pygments 能够为 puppet 代码着色。

【问题讨论】:

    标签: org-mode


    【解决方案1】:

    我发现您需要安装 htmlize.el 包。然后,它开箱即用。 例如,htmlize.el 在 MELPA 中可用。

    【讨论】:

      猜你喜欢
      • 2018-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多