为什么注释以“ //!”开头Qt Creator中显示为蓝色? [英] Why are comments that start with "//!" colored blue in Qt Creator?
本文介绍了为什么注释以“ //!”开头Qt Creator中显示为蓝色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Qt Creator通常将注释涂成绿色,但是我在Qt示例中看到蓝色注释,而Qt Creator似乎将以 //! 。
Qt Creator normally colors comments green, but I saw blue colored comments in the Qt Examples, and Qt Creator seems to color every comment that starts with //!
in blue.
下面是一个示例屏幕截图:
Here's an example screenshot:
这是约定俗成的吗?蓝色表示什么?
Is this some convention? What does the blue signify?
推荐答案
这是 Doxygen注释。
有多种样式:
Qt块注释:
/*!
... text ...
*/
Qt单行评论:
//! ... one line of text ...
JavaDoc块注释:
JavaDoc block comment:
/**
* ... text ...
*/
JavaDoc单行注释:
JavaDoc one-line comment:
/// ... one line of text ...
这篇关于为什么注释以“ //!”开头Qt Creator中显示为蓝色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文