Illegal alias format `ALIASES '

余生长醉 提交于 2020-08-10 20:23:37

问题


I added below codes into doxywizard ALIASES but I get error . How can I solve this

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>"

[![enter image description here][1]][1]

Error message:

error: Illegal alias format `ALIASES += global_START="
Globals

\1
: \2
"'. Use "name=value" or "name(n)=value", where n is the number of arguments error: Illegal alias format `ALIASES += global_END="

"'. Use "name=value" or "name(n)=value", where n is the number of arguments

Version: 1.8.11

SOLUTION I added mannually in doxyfile like this:

 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>"

And open the doxywizard, ALIASES field look like this: (every line must added seperately)

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>"

回答1:


Not an answer, but too long and complicated for a comment.

I was not able to reproduce result sas indicated in the question, my input and output:

Source code used:

/// \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 used:

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>"

Resulting image (detailed part:



来源:https://stackoverflow.com/questions/62594036/illegal-alias-format-aliases

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!