In order for a script to be executed during compilation, you must assign it to a style. Scripts assigned to paragraph styles handle topics; scripts assigned to character styles handle topic references or hot spots.
If you assign an empty script to a style, the behavior of the style during compilation is the same. The behavior of your style only changes if the code or properties of the Help system is changed.
For both paragraph and character styles, you can use the following properties to override or cancel the default behavior as specified in the Styles tab:
Tag |
Sets or returns the default link tag. |
Key |
Sets or returns the default index keyword. |
Cancel |
Cancels both the default link tag and the default index keyword when set to True. |
These three properties apply to the Topic object returned by the ActiveTopic property as well as the Link object returned by the ActiveLink property.