I have a simple question which I could not find digging Google.
I’m moving my project’s documentation from phpDoc to Doxygen, but I don’t know how to write @license and @copyright together.
In my conception, @copyright is designed for my “company” (not real yet :P) name and @license the way of what I’m developing can be used: one of many CreativeCommons combinations, GNU, MIT, BSD, “under license”…
Building on Chris’ answer, you can use the
\parcommand to create a block similar to the built in\copyrightcommand. For example, an alias like:Will allow this comment:
to produce this output:
Note that with this solution, a blank line is not required before
\license, and that the{}syntax is not required. This is also less likely to cause problems if you attempt to generate documentation for formats other than HTML.