Does doxygen have a special command to include a file into a source file and doxygen treats the included file as if it were directly in the source file?
Both variants shall generate the same output. It's not just about replacing @details
, but a large amount of text.
Variant A
// --- SourceFile.c ---
/*! \brief description
* \details description
*/
Variant B
// --- SourceFile.c ---
/*! \brief description
* \command file.txt -> this shall insert file.txt here
*/
// --- file.txt ---
// \details description
Does doxygen have a special command to include a file into a source file and doxygen treats the included file as if it were directly in the source file?
Both variants shall generate the same output. It's not just about replacing @details
, but a large amount of text.
Variant A
// --- SourceFile.c ---
/*! \brief description
* \details description
*/
Variant B
// --- SourceFile.c ---
/*! \brief description
* \command file.txt -> this shall insert file.txt here
*/
// --- file.txt ---
// \details description
Share
Improve this question
edited Mar 18 at 9:42
albert
9,0953 gold badges22 silver badges39 bronze badges
asked Mar 18 at 9:28
DgoDgo
555 bronze badges
4
|
1 Answer
Reset to default 0In newer versions of doxygen the \include special command has an additional option. With the option {doc} the contents of file.txt is treated as if it were directly in the source file.
// --- SourceFile.c ---
/*! \brief description
* \include{doc} file.txt
*/
// --- file.txt ---
// \details description
\include
command not do what you want to do? – Friedrich Commented Mar 18 at 9:35\include
command and at the\snippet
command with its options. Furthermore which version of doxygen are you using (very important in this case!)? – albert Commented Mar 18 at 9:42\include
and\snippet
commands. I certainly do advise to update. – albert Commented Mar 18 at 11:31