c++navigationkindle

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?


Solution

  • 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.