组织模式中的内联代码 [英] Inline code in org-mode

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

问题描述

Markdown允许嵌入代码。如何在 org-mode 中完成?



我知道源代码块:

 #+ begin_example 
blah-blah
#+ end_example
pre>

但是我想要的是这样的(显然,使用正确的语法,我不知道):

 这是嵌入代码。 

可以在 org-mode

解决方案

您可以将文本包含在 = 标志让它以等宽字体排版,并逐字导出(这意味着它不会针对特定于语言的语法进行处理):

 这是=逐字文本=或〜代码〜。 

您可以在手册


Markdown allows for embedded code. How can this be done in org-mode?

I know about source-code blocks:

#+begin_example
blah-blah
#+end_example

But what I want is something like this (obviously, with the right syntax, which I do not know):

This is `embeded code`.

Can this be done in org-mode? Not possible to find that in the documentation ...

解决方案

You can enclose the text within = or ~ signs to have it typeset in monospaced font and export it verbatim (which means it is not processed for org-specific syntax):

This is =verbatim text= or ~code~.

You'll find all information about org-mode markup elements in the relevant section of the manual.

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

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