The question isn't about a tag so much as an actual GUI field—Something users would be able to find without looking for it. But whatever.
Any of ///, //!, /** */, or /*! */ are perfectly valid ways of specifying a formal comment. JoshEdit supports highlighting them correctly. By default, the first sentence (up to the first period or pair of newlines) is used as the brief. Otherwise, the tag is @brief, or \brief in vanilla Doxygen. The explicit tags extend the brief to as many sentences as you like; it ends at the first pair of newlines (or end of the comment).
JoshEdit already knows where block boundaries are (strings, comments, etc), so you can either ask it, or just recompute them yourself (which is pretty simple).
To clarify:
/// This is a function that /// does some stuff. This /// text elaborates on it. The brief of the above is "This is a function that does some stuff."
/*! * This is a function that does some stuff and * was written by someone who just has no * concept of what a period is * * This text elaborates on it */ The brief of the above is "This is a function that does some stuff and was written by someone who just has no concept of what a period is." Note that the behavior is not affected at all by the existence of asterisks.
/** * @brief This is a function that does some * stuff. Really well, actually. (Thanks for asking.) * * This text elaborates on it. */ The brief of the above is the entire paragraph, "This is a function that does some stuff. Really well, actually. (Thanks for asking.)."
/// \brief This is a function that /// does some stuff. It's also pretty /// serious with Doxygen. /// \param foo the first parameter The brief of the above is "This is a function that does some stuff. It's also pretty serious with Doxygen."
As long as I'm repeatedly adding information to this post, I'll point out one more thing: Normally a Doxygen comment precedes a function or variable. If we are REALLY shooting for Doxygen compliance, the "correct" way to do this terrible hack is to leverage the @file tag, or create a new @action tag.
This is the only way to denote to Doxygen that a comment applies to the file, not to a function or other object.
|