Delphi 和/或 FreePascal 代码最常见的文档块
我对 PHP Dockblocks 非常熟悉,因为这是我过去 15 年多来的工作。
/**
* Description
*
* @tag bla bla
* @tag more bla bla
*/
我想了解的是是否有一个像 Delphi 和/或 FreePascal 这样的标准。
从我对大量代码的分析来看,我从未见过任何代码,但我可能是完全错误的。
I'm quite familiar with PHP dockblocks since it's been my job for the last 15+ years.
/**
* Description
*
* @tag bla bla
* @tag more bla bla
*/
What I'm trying to understand is if there is a standard like that for Delphi and/or FreePascal.
From my analysis on an awful lot of code I never seen any, but I could be dead wrong.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
Delphi 文档工具
在 Delphi 2005 中使用 API 文档的 XMLDoc 工具和 HelpInsight
http://edn. embarcadero.com/article/32770
Delphi 2006 中的 XML 文档
http://tondrej.blogspot。 com/2006/03/xml-documentation-in-delphi-2006.html
DelphiCodeToDoc
http://dephicodetodoc.sourceforge.net/
Doc-O-Matic
http://www.doc-o-matic.com/examplesourcecode。 html
PasDoc
http://pasdoc.sipsolutions.net/
Pascal 浏览器
http://www.peganza.com/
Doxygen
http://www.doxygen.nl/
Pas2Dox
http://sourceforge.net/projects/pas2dox/
JADD - 只是另一个 DelphiDoc
http://delphidoc.sourceforge.net/
Stackoverflow 讨论
是否有一个 Delphi 代码文档管理器可以支持当前的 Delphi 语法吗?
https://stackoverflow。 com/questions/673248/is-there-a-delphi-code-documentor-that-supports-current-delphi-syntax
Delphi 的代码文档,类似于 javadoc 或 c# xml doc
delphi 的代码文档类似于javadoc 或 c# xml doc
记录 Delphi
https://stackoverflow.com/questions/33336/documenting-delphi
Delphi documentation tools
Using the XMLDoc tool for API documentation and HelpInsight with Delphi 2005
http://edn.embarcadero.com/article/32770
XML Documentation in Delphi 2006
http://tondrej.blogspot.com/2006/03/xml-documentation-in-delphi-2006.html
DelphiCodeToDoc
http://dephicodetodoc.sourceforge.net/
Doc-O-Matic
http://www.doc-o-matic.com/examplesourcecode.html
PasDoc
http://pasdoc.sipsolutions.net/
Pascal Browser
http://www.peganza.com/
Doxygen
http://www.doxygen.nl/
Pas2Dox
http://sourceforge.net/projects/pas2dox/
JADD - Just Another DelphiDoc
http://delphidoc.sourceforge.net/
Stackoverflow discussion
Is there a Delphi code documentor that supports current Delphi syntax?
https://stackoverflow.com/questions/673248/is-there-a-delphi-code-documentor-that-supports-current-delphi-syntax
Code documentation for delphi similar to javadoc or c# xml doc
Code documentation for delphi similar to javadoc or c# xml doc
Documenting Delphi
https://stackoverflow.com/questions/33336/documenting-delphi
最新的Delphis 支持XML 文档的解析。 他们还在提示中使用此信息(例如,如果将鼠标光标移动到方法名称上)。
我使用此模板作为方法文档:
Latest Delphis support parsing of XML documentation. They also use this information in hints (for example if you move the mouse cursor over a method name).
I'm using this template for method documentation:
我更喜欢源代码之外的文档(它总是变得混乱),并使用 FPC 附带的优秀 fpdoc。 (FPC自己的文档都写在里面了)。
I prefer docs outside of the source (it always gets messy), and use the excellent fpdoc that comes with FPC. (FPC's own docs are written in it).
在我目前正在进行的一个项目中,我们使用 DelphiCodeToDoc,它运行得相当好。 它的语法如下所示:
On a project I'm currently working on, we're using DelphiCodeToDoc, which works reasonably well. Its syntax looks like this:
看起来 doxygen 有一个工具,可以与 Pascal 和 Delphi 代码文档。 也许这会对你有帮助。
It looks like doxygen has a tool which can be used in conjunction to document Pascal and Delphi code. Maybe that will help you.
有几个标准,通常取决于所使用的文档工具。 我们使用 PasDoc,因此我们主要遵循其格式 http://pasdoc.sipsolutions.net/ ,即基于JavaDoc。
或者,正如 gabr 指出的那样,有 XMLDoc,还有很多其他工具,大多数都具有类似的语法,但有细微的差别。
There are several standards, usually depending on the documentation tool being used. We use PasDoc, so we adhere mostly to its format http://pasdoc.sipsolutions.net/ which is based on JavaDoc.
Alternatively, there is XMLDoc as gabr pointed out and there are quite a few other tools, most having similar syntax with subtle differences.