Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any tools to convert c/c++ source code to html?

I want to a tool which can convert c/c++ source code files to HTML files. So far all tools I have found, like src-highlite, highlight, can only do syntax highlighting. The critical feature I want is to navigate over code and when my mouse moves over a classname, I can click the hyperlink and it takes me to the definition file of the class.

Then I can package these HTML files into a .mobi file, so I can read source code on my kindle.

Does anybody know?

like image 608
soulmachine Avatar asked Nov 24 '11 12:11

soulmachine


1 Answers

Have you checked out Doxygen?

It will generate documentation from your comments too. There's lot of other cool features like a class graph, file dependencies graph, and of course just HTML files of the source.

For an example of the output, check out the KDE library API reference.

like image 67
David Hu Avatar answered Sep 21 '22 06:09

David Hu