简体   繁体   English

将C ++代码结构转换为html文件

[英]c++ code structure into html files

I work on unix. 我在UNIX上工作。 I have my complete source code in unix in the form of building blocks and modules. 我在Unix中以构建块和模块的形式拥有完整的源代码。 Like headers,sources files,make files etc. I can copy all the files with the same directory structure to windows. 像标题,源文件,make文件等。我可以将具有相同目录结构的所有文件复制到Windows。 I need some tool which will convert all the source to html tags with all the links to functions,variables,classes,headers.There should be some tool to do this easily. 我需要一些工具来将所有源代码转换为html标签,并带有指向函数,变量,类,标题的所有链接。应该有一些工具可以轻松地做到这一点。 by this way it would be easy for debugging the code in a fast way. 通过这种方式,以快速的方式调试代码将变得容易。

Is anybody aware of such tool? 有人知道这种工具吗?

The term you're probably looking for is "documentation generator". 您可能正在寻找的术语是“文档生成器”。 You're specifically interested in ones that output HTML files. 您对输出HTML文件的文件特别感兴趣。

Doxygen is popular, but if you want a master comparison list of documentation generators Wikipedia has a summary: Doxygen很流行,但是如果您想要文档生成器的主要比较列表,Wikipedia会提供一个摘要:

http://en.wikipedia.org/wiki/Comparison_of_documentation_generators http://en.wikipedia.org/wiki/Comparison_of_documentation_generators

Looking at the output generated by the different programs (on projects that use them) will probably inform your choice of which meets your needs. 查看不同程序(在使用它们的项目上)生成的输出,可能会告诉您选择哪种程序可以满足您的需求。

You can use doxygen to generate your documentation. 您可以使用doxygen生成文档。 In its basic form it will generate what you need but to add comments that appear in the final html you will need to use special style comments. 它会以其基本形式生成所需的内容,但要添加出现在最终html中的注释,则需要使用特殊样式的注释。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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