| Barry MacDonnell's
Toolbox for WordPerfect
Macros, tips, and
templates for Corel® WordPerfect® for Windows®
| Page updated Nov 1, 2015
|[Original date: Aug 13, 2008]
Main tips page | Browse more tips
How to put instructions or comments inside
a macro to annotate the macro code
There are several ways a macro writer can put programmer comments or other, non-command information into a macro. Examples of these are shown in dark red below.
Open the macro for editing with Tools, Macro,
Then use any one (or more) of the following methods.
1. Precede the comment with at least 2 slash (//) marks:
2. Bracket the comment -- or even macro commands you want to temporarily disable -- like this:
3. For longer comments, such as those that introduce the macro, you can put the comment inside a "dummy" IfPlatform macro command. The command's (parameter) can be anything that is not recognized by WP as legitimate. For example:
4. Put the comment inside a footnote. You can even put macros commands in the footnote: they will not execute when the macro plays.
5. Put comments inside a header and/or footer.
6. Since a macro being edited always displays -- initially, at least -- in Draft mode, you can use regular WordPerfect Comments (Insert, Comment).
7. Put the comment inside a text box, which can be anchored to the page or to a paragraph. Note that text boxes are prone to shift and/or not display all material, so it is better to avoid this method.