我在into向导别名中添加了下面的代码,但我得到了错误。我怎么才能解决这个问题?
ALIASES += global_START="<dl class=\"params\"><dt>Globals</dt><dd><table class=\"params\">"
ALIASES += global_{2}="<tr><td class=\"paramname\">\1</td><td>: \2</td></tr>"
ALIASES += global_END="</table></dd></dl>"错误消息:
错误:非法别名格式
ALIASES += global\_START=" Globals \1 : \2 "'. Use "name=value" or "name(n)=value", where n is the number of arguments error: Illegal alias format别名+= global_END=“
"'.使用"name=value“或"name(n)=value",其中n是参数的数目
版本:1.8.11
溶液
我手动添加了这样的doxyfile:
ALIASES = ALIASES += global_START="<dl class=\"params\"><dt>Globals</dt><dd><table class=\"params\">"
ALIASES += global_{2}="<tr><td class=\"paramname\">\1</td><td>: \2</td></tr>"
ALIASES += global_END="</table></dd></dl>"然后打开doxywizard,别名字段如下所示:(每一行都必须单独添加)
ALIASES
+=
global_START="<dl class=\"params\"><dt>Globals</dt><dd><table class=\"params\">"
global_{2}="<tr><td class=\"paramname\">\1</td><td>: \2</td></tr>"
global_END="</table></dd></dl>"发布于 2020-06-26 13:13:42
不是回答,而是太长太复杂,无法发表评论。
我无法重现问题中的结果,我的输入和输出:
使用的源代码:
/// \file
/**
* @brief Port state and port index value assign with Modbus Input Register
* The application receives in this parameter the zero-ba..
* @param[in] portRole This parameter get the role of the port
* @global_START
*
* @global_{bExampleTwo, Second Description Here}
* @global_END
*/
void fie(int portRole);使用的Doxyfile:
ALIASES += global_START="<dl class=\"params\"><dt>Globals</dt><dd><table class=\"params\">"
ALIASES += global_{2}="<tr><td class=\"paramname\">\1</td><td>: \2</td></tr>"
ALIASES += global_END="</table></dd></dl>"产生的图像(详细部分:

https://stackoverflow.com/questions/62594036
复制相似问题