org-mode: fontify code blocks natively

断了今生、忘了曾经 提交于 2019-12-23 12:20:15

问题


I can't get org-mode to fontify code blocks the way it should...I'm using Gnu Emacs 23.3.1 on cygwin and I tried it on same version WinNT. In my init file:

(setq org-src-fontify-natively t)

Then I expect blocks like this to fontified like sql-mode:

#+BEGIN_SRC sql

SELECT * FROM foo;

#+END_SRC

The contents of the block are shown in a different face to normal text, but no keyword highlighting etc. The same goes for other languages. Any ideas?


回答1:


My org-mode is too old (6.33x, which ships with my Emacs). This feature requires 7.x. Sorry for the noise.



来源:https://stackoverflow.com/questions/7189382/org-mode-fontify-code-blocks-natively

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!