我正在尝试使整行文本加粗。Doxygen文档指出:
\ b使用粗体显示参数。等同于<b> word </ b>。要以粗体显示多个单词,请使用<b>多个单词</ b>。
我已经尝试过(在阅读HTML命令部分之前):
我查看了HTML标签<B>和</ B>,但是我不想将格式仅绑定到HTML输出。除此之外,当我尝试'\\!<B>很多单词</ B>'时,它不起作用。
注意:
您的第二次尝试是在 doxygen 中加粗多个单词的正确方法(当然 b 标签之间没有空格)。请注意,如果您正在为注释设置非标准分隔符,那么您需要在 doxygen 配置文件中指定这些分隔符。
/**
@mainpage
This short example contains some text markup
illustrating how to do html formatting in doxygen.
.
This will be < em>italic< /em> and this is
< b>how you make lots of words bold.< /b> You will
have to remove the spaces from the tags.
*/
Run Code Online (Sandbox Code Playgroud)
小智 8
从Doxygen 1.8.0开始,您还可以使用 Markdown 语法**Bold text**。
/**
@mainpage
**This will be rendered as bold text**
*/
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2506 次 |
| 最近记录: |