doxygen:参数/模板参数名称的垂直对齐
doxygen: vertical alignment of parameter / template parameters' names
我正在使用 doxygen(版本 1.8.13)记录一些 C++ 代码。当我记录函数的参数/模板参数时,我得到的结果如下:
/*!
* ...
* @tparam Field The field to be decoded.
* @tparam Container The container representing the binary string.\n
* A valid container type must meet the following requirements:
* - define the member alias \c value_type, which must have size 1 B;
* - define a member function \c at(), accepting an integer index and
* returning a reference to the element at the specified index.
* ...
*/
我想要的是参数名称与相应的描述垂直对齐,如下图所示:
如果可能的话,我想为所有函数指定一次对齐(例如通过 Doxyfile 或 DoxygenLayout 文件)。
在网上搜索后,我没有找到任何关于如何在 doxygen 中设置参数名称垂直对齐的文档。谁能帮帮我?
提前致谢。
可以使用HTML_EXTRA_STYLESHEET修改模板参数的对齐方式:
table.tparams td.paramname { vertical-align: text-top; }
我正在使用 doxygen(版本 1.8.13)记录一些 C++ 代码。当我记录函数的参数/模板参数时,我得到的结果如下:
/*!
* ...
* @tparam Field The field to be decoded.
* @tparam Container The container representing the binary string.\n
* A valid container type must meet the following requirements:
* - define the member alias \c value_type, which must have size 1 B;
* - define a member function \c at(), accepting an integer index and
* returning a reference to the element at the specified index.
* ...
*/
我想要的是参数名称与相应的描述垂直对齐,如下图所示:
如果可能的话,我想为所有函数指定一次对齐(例如通过 Doxyfile 或 DoxygenLayout 文件)。
在网上搜索后,我没有找到任何关于如何在 doxygen 中设置参数名称垂直对齐的文档。谁能帮帮我?
提前致谢。
可以使用HTML_EXTRA_STYLESHEET修改模板参数的对齐方式:
table.tparams td.paramname { vertical-align: text-top; }