有没有办法语法高亮标有 src_ruby{Array.new}
的 Org 模式内联源代码?
Org-mode 有默认选项吗?
或者有其他方法可以做到这一点吗?
最佳答案
更新:这个特定问题的正确答案是在 https://stackoverflow.com/a/28059832/462601 之后。此处提供的答案与此问题 Syntax highlighting within #+begin_src block in emacs orgmode not working 相关
你的意思是像缓冲区中的语法高亮源块?
#+BEGIN_SRC ruby
Array.new
#+END_SRC
您需要设置
(setq org-src-fontify-natively t)
引用:http://orgmode.org/worg/org-contrib/babel/examples/fontify-src-code-blocks.html
关于emacs - 如何为 Org 模式内联源代码 src_lang{} 突出显示语法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20309842/