在org-mode中将内联代码导出为html

liu*_*hao 6 emacs org-mode

在org-mode中我想要的就像Markdown语言中的内联代码块语法X <- 3.我用Google搜索并尝试(参考):

src_R{X <- 3}
Run Code Online (Sandbox Code Playgroud)

在org-mode中内联,但导出到html(with C-cC-eh)没有显示内联代码.像其他代码块一样#+begin_src R工作正常,但无论如何导出时都会出现警告消息:

htmlize.el 1.34 or later is needed for source code formatting [14 times]
Run Code Online (Sandbox Code Playgroud)

这可能是原因吗?

更新:

感谢@LeVieuxGildas的意见,我现在安装并加载了最新htmlize.el版本1.43,并且在导出时没有收到任何错误消息.但仍然导出html无法显示内联代码部分.

system:OS X 10.8.2; emacs mac port https://github.com/railwaycat/emacs-mac-port ; 内置组织模式

小智 7

我想我们在这里谈论两件事.如果您只想像Markdown中的反引号一样"显示代码",请使用等号围绕内联代码,如下所示:

Write messages in JavaScript using: =console.log(x, y)=
Run Code Online (Sandbox Code Playgroud)

但是,使用src_XYZ{abc}尝试将其作为代码进行评估并返回结果.