HOWTO: Use Build Tags to Exclude Topics from a Help FileLast reviewed: April 2, 1997Article ID: Q161823 |
The information in this article applies to:
NOTE: This article assumes that you are familiar with authoring Microsoft Windows Help files and have created the source (.rtf) and project (.hpj) files needed to create a Help file.
SUMMARYThis article explains how to exclude topics from a Help file, such as topics that only apply to a specific product or a specific version of a product that the user does not have. With the advent of Full Text Search, it is difficult to hide these topics from the end user. The Help Compiler Workshop's Help Compiler has a feature that allows Help authors to exclude specified topics by tagging them in the source (.rtf) file. Any of the topics in the source (.rtf) file that are used to create the Help file can be tagged to indicate whether or not the topic should be compiled. If you want to place a build tag on a topic, you need to mark the topic in the source file with the "*" footnote. The text associated with the "*" footnote is called the tag. A tag can have up to 32 characters. The project file (.hpj) that is used to generate the Microsoft Windows Help file must be modified to let the Help Compiler know whether you want to include or exclude the tagged topics in the finished Help file.
MORE INFORMATION
In the Source (.rtf) FileIn the source .rtf file, use the "*" footnote to tag a topic. This footnote must be the first footnote for the topic. For instance, if your footnotes are in the order "*#KA$" with the "*" at the beginning of the list, then the Help Compiler can properly tag the topic. If the "*" appears anywhere else in the sequence, then the compiler displays a warning. For example, if you want to exclude several topics from your compiled Help file you must have a "*" footnote in each one of the topics that you want to exclude. Associate text to the footnote of these tagged topics to indicate that you do not want them compiled. This can be done by associating text such as "NoCompile" on the "*" footnotes. "NoCompile" becomes the tag for these topics. If you do not have any "*" footnotes on a topic, then, by default, the topic is compiled and becomes a topic in the finished Help file. You may also find it necessary to tag a topic to be included in the compile. The procedure for tagging the text is the same. You need to place a "*" footnote on the topic and associate a tag name with that topic. As far as the .rtf file is concerned, it doesn't matter whether you intend to include or exclude the tagged topic from the finished Help file. The .rtf file is used only to tag the topic. Whether the tagged topic is included in the compiled Help file or not is determined in the .hpj (project) file. There are several ways to do this. Please note that build tags are not case sensitive.
In the Project (.hpj) File
Method 1Explicitly indicate whether to include or exclude the tagged topic with Help Workshop.
Method 2Indicate which tags to include or exclude by using a text editor and the BUILD command.
REFERENCESHelp Workshop Hcw.hlp Microsoft Windows 95 Help Authoring Kit, Microsoft Press |
Keywords : kbusage vb5all vb5howto VBKBHelpFile kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |