doxygen:如何在代码部分输出反引号

时间:2014-03-18 13:31:26

标签: doxygen backticks

我想知道是否可以在doxygen'代码部分输出反引号。

~~~~~~~~~~
     for file in `ls dir/*.filter`
     do
     done
~~~~~~~~~~

我根本没有输出。这似乎是由我的代码部分中插入的反复“”引起的。

有没有人有同样的问题。有什么建议吗?

非常感谢

1 个答案:

答案 0 :(得分:0)

`用于创建内联代码块。相反,使用\ code,\ endcode而不是markdown代码块。

例如

\code
this is an inline `code block with ` characters
\endcode

使用`包含的字符进行渲染。

enter image description here

当代码中遇到一对`s时,doxygen将不处理它们之间的任何内容。

以下内容将正确呈现:

\code
     for file in `ls dir/*.filter`
     do
     done
\endcode

enter image description here