简体   繁体   中英

Make Doxygen interpret C# <code> XML documentation tag as \code

I'm working with doxygen and has encountered an issue, where the <code> in C# code documentation is interpreted differently that the \\code command for doxy. Both seems to be interpreted as code, and both are typed in monospace fonts. But the \\code encapsulates the code in a nice box and understands newline, while code in <code> is just printed out in one line with no box.

Is it possible to make doxy interpret <code> as \\code?

Or before it interprets the documentation change the <code> to \\code and </code> to \\endcode to work around the problem?

I am aware I could just have \\code and \\endcode statements in the documented code segments, but I work with other tools like Resharper that interprets <code>, and will not understand \\code. Having the code documentation as close the standard ( http://msdn.microsoft.com/en-us/library/5ast78ax.aspx ) makes it easier to work with different tools.

1.8.2版本的doxygen现在已修复此错误,并且代码标签可以正常工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM