组织模式:本地化代码块 [英] org-mode: fontify code blocks natively

查看:85
本文介绍了组织模式:本地化代码块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法以组织方式将代码块字体化,因为它应...应在cygwin上使用Gnu Emacs 23.3.1,并在相同版本的WinNT上进行了尝试。在我的init文件中:

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)

然后我希望像这样的块的字体像sql-mode:

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?

推荐答案

我的组织模式太旧了(Emacs附带的版本为6.33x)。此功能需要7.x。抱歉,吵闹了。

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

这篇关于组织模式:本地化代码块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆