简体   繁体   English

是否可以将自己的帮助文件添加到Delphi XE2 IDE?

[英]Is it possible to add your own help file to the Delphi XE2 IDE?

For a library I am working on, I have created a help file (Help 2 format). 对于我正在处理的库,我创建了一个帮助文件(帮助2格式)。 It would be very convenient if the other developpers of my team that use the library, could search the help from inside the Delphi IDE. 如果我团队的其他使用该库的开发人员可以从Delphi IDE内部搜索帮助,将非常方便。

Is it possible to make Delphi XE2 search in a custom help file when I press F1 in the Delphi IDE? 当我在Delphi IDE中按F1时,是否可以在自定义帮助文件中进行Delphi XE2搜索? And if so, how should I do that? 如果是这样,我该怎么做?

Yes, it is, the same way third-party component vendors do. 是的,就是这样,第三方组件供应商也是如此。 As you say, use the free Microsoft Help 2 compiler, Help 2 Workshop, available through MS. 如您所说,使用免费的Microsoft Help 2编译器,Help 2 Workshop(可通过MS获得)。

Once you've written and compiled your help, you incorporate it into the IDE's help system via H2Reg.exe, which you can find in your $(BDSDIR)\\Help\\Doc folder. 编写并编译了帮助后,可以通过H2Reg.exe将其合并到IDE的帮助系统中,您可以在$(BDSDIR)\\Help\\Doc文件夹中找到它。 Read the comments in h2reg.ini (in that same folder) for details regarding how to do so. 阅读h2reg.ini(在同一文件夹中)中的注释,以获取有关如何执行此操作的详细信息。

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

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