Why in Code::Blocks at least '///' is dark blue and '//' is blue? and i have seen in some source codes that sometimes they use '///' and other times '//'.
It means nothing to C++, its the same as the traditional //. The
/// is typically used for documentation.
For codeblocks, it triggers a highlighting mode for Doxygen..
// Normal comment
/// Doxygen comment
//! Doxygen comment
/*! Doxygen comment block */
For the C++ compiler both are just comments.
But, source code documentation tools like doxygen might handle them in different ways.
Example:
/// -> special comment block, eg: function documentation// -> standard comment/// tells doxygen that this comment shall be part of the generated documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With