Onetastic Macro Documentation >
>
Comments
You can provide comments between macro to improve readability of your
macros. Comments are inserted using Comment statements :
$dialog_box = DialogBox_Create("")
DialogBox_AddTextBox($dialog_box, "&Find what", $Search, "", false)
DialogBox_AddTextBox($dialog_box, "&Replace with", $Replace, "", true)
$Options = Array("Current page", "Current section", "Current notebook")
DialogBox_AddDropDown($dialog_box, "&Scope", $Scope, "Current section", $Options)
DialogBox_AddCheckBox($dialog_box, "Match &case", $MatchCase, false)
DialogBox_Show($dialog_box)
This helps with visually separating . Comments can also be used to
temporarily remove from macro execution adding // in front of them (commenting-out):
$dialog_box = DialogBox_Create("")
DialogBox_AddTextBox($dialog_box, "&Find what", $Search, "", false)
DialogBox_AddTextBox($dialog_box, "&Replace with", $Replace, "", true)
DialogBox_Show($dialog_box)
|