如何在 netbeans 中注释 C 函数,以便格式化文档提示(粗体,段落......)
How to comment C function in netbeans, so documentation hint will be formatted (bold, paragraphs ...)
/**
* A test function
* @param p an integer **of your choice**
* @return 0: if zero, 1: if positive, -1: if negative
*/
int Test(int);
我希望文档提示的格式为:
Of your choice
应该是粗体。
0: if zero, 1: if positive, -1: if negative
应该是3行
但是,我得到:
用 <b> YOUR TEXT </b>
代替 **
。
/*
* @param p an integer <b>of your choice</b>
* ^^^ ^^^^
*/
对于多行,可以在行尾使用<br>
或\n
。您还可以利用其他 HTML 文本格式化标签:
<b> - Bold
<strong> - Important
<i> - Italic
<em> - Emphasized
<small> - Small
<sub> - Subscript
<sup> - Superscript
/**
* A test function
* @param p an integer **of your choice**
* @return 0: if zero, 1: if positive, -1: if negative
*/
int Test(int);
我希望文档提示的格式为:
Of your choice
应该是粗体。0: if zero, 1: if positive, -1: if negative
应该是3行
但是,我得到:
用 <b> YOUR TEXT </b>
代替 **
。
/*
* @param p an integer <b>of your choice</b>
* ^^^ ^^^^
*/
对于多行,可以在行尾使用<br>
或\n
。您还可以利用其他 HTML 文本格式化标签:
<b> - Bold
<strong> - Important
<i> - Italic
<em> - Emphasized
<small> - Small
<sub> - Subscript
<sup> - Superscript