delphi 的代码文档类似于 javadoc 或 c# xml doc [英] Code documentation for delphi similar to javadoc or c# xml doc

查看:32
本文介绍了delphi 的代码文档类似于 javadoc 或 c# xml doc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个类似于用于 delphi 代码的 javadoc 或 c# xml doc 的代码文档工具.最好的工具是什么?我更喜欢一种技术,它在未来兼容微软的沙堡项目.

I need a code documentation tool similar to javadoc or c# xml doc for delphi code. What is the best tool? I prefer a technology, which is in the future compatible to the Microsoft sandcastle project.

推荐答案

看一看 SynProject,一个用 Delphi 编写的开源工具.

Take a look at SynProject, an Open Source tool written in Delphi.

它旨在处理完整的文档工作流程,从规范到发行说明,包括测试、架构和设计;当然,还有一个集成的 Delphi 解析器,可以从现有的 Delphi 源代码生成架构文档.

It was designed to handle a full documentation workflow, from specifications to release notes, including tests, architecture and design; and of course there is an integrated Delphi parser to generate architecture documentation from existing Delphi source code.

对于架构文档,源代码可以提取注释(ala PasDoc),然后将此文本嵌入到主架构文档中(带有类层次结构图和单元依赖关系).

For the architecture document, the source code can extract comments (ala PasDoc) then embed this text into the main Architecture document (with class hierarchy diagrams and unit dependencies).

您在专用文本编辑器中使用类似 wiki 的语法编写纯文本文件,然后 SynProject 从中创建格式良好的 Word 文档.一些向导可用于访问内容.但由于它存储为纯文件,多个程序员可以使用任何 SCM 工具(SVN、Fossil...)在其上编写.

You write a plain text file using a wiki-like syntax in a dedicated text editor, then SynProject creates well formated Word documents from it. Some Wizards are available to access the content. But since it's stored as plain file, multiple programmers can write on it, using any SCM tool (SVN, Fossil...).

例如,我目前使用它为一个庞大而古老的 Delphi 应用程序(大约 2,000,000 行用 Delphi 5 和 6 编写的代码)编写维护文档,之前没有可用的文档.您描述对代码所做的更改(通过引用单元/类/方法),然后该工具将更新所有文档以反映和跟踪这些修改.SynProject 旨在符合一些非常精细"的监管规则 (IEC 62304),但由于其独特的扁平化"设计,可用于任何项目.

For instance, I currently use it for writing maintenance documentation for a huge and old Delphi application (about 2,000,000 lines of code written in Delphi 5 and 6), with no prior available documentation. You describe the changes made to the code (by quoting the unit/class/method), then the tool will update all documentations to reflect and trace those modifications. SynProject was designed to be compliant with some very "delicate" regulation rules (IEC 62304), but can be used for any project due to its unique "flat" design.

注意:我在提出这个问题很久之后才发帖,因为此时 SynProject 还不存在,值得一看.此线程已被定义为该问题的参考.

Note: I'm posting this a long time after the question, because SynProject was not existing at this time, and can be worth looking at. This thread has been defined as a reference for that question.

这篇关于delphi 的代码文档类似于 javadoc 或 c# xml doc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆