如何在doxygen文档中获得\ s \ p?

时间:2012-08-10 05:31:25

标签: java doxygen

我想在doxygen生成的最终文档中包含\s\p。以下是Java文件中的示例注释块:

/**
 * @section Sample sample
 * Need to use \s\p in the file.
 *
 */

并且生成的文档应该是Need to use \s\p in the file.但是,当我运行doxygen时,它会将\s\p替换为<computeruotput/>,而doxygen XML输出中的结果为Need to use <computeruotput/> in the file.怎么能我在最终输出中得到\s\p而不是<computeruotput/>

1 个答案:

答案 0 :(得分:1)

这是因为反斜杠\表示special command in doxygen。例如,\p用于使用打字机字体格式化文本。要在输出中获得\s\p,请尝试使用\\s\\p,即将一个反斜杠\替换为两个\\\\是doxygen中的一个特殊命令,它只打印一个\

相关问题