开发者

Code examples in Doxygen [closed]

开发者 https://www.devze.com 2023-03-03 11:47 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editin开发者_
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editin开发者_JAVA技巧g this post.

Closed 5 years ago.

Improve this question

In my comments in doxygen I am using example code. But comments are getting very long with 20 lines of php-code in them. Is there a way to have the examples in a different file?

How would I do this?

I tried @example but the result was, that the class was not longer listed in the doc.


Have you considered creating a "samples" directory (or something similar) to house all of your examples then use \link to tie it together?

http://www.doxygen.nl/manual/commands.html#cmdlink

0

精彩评论

暂无评论...
验证码 换一张
取 消