我想知道是否可以在doxygen'代码部分输出反引号。
~~~~~~~~~~
for file in `ls dir/*.filter`
do
done
~~~~~~~~~~
我根本没有输出。这似乎是由我的代码部分中插入的反复“”引起的。
有没有人有同样的问题。有什么建议吗?
非常感谢答案 0 :(得分:0)
`用于创建内联代码块。相反,使用\ code,\ endcode而不是markdown代码块。
例如
\code
this is an inline `code block with ` characters
\endcode
使用`包含的字符进行渲染。
当代码中遇到一对`s时,doxygen将不处理它们之间的任何内容。
以下内容将正确呈现:
\code
for file in `ls dir/*.filter`
do
done
\endcode