HyperTalk: Adding Comments to Scripts (7/92)

In HyperTalk scripts, a string of two hyphens (--) indicate a comment.
HyperTalk ignores all characters that follow the double-hyphen.

In the following example, the strings "Displays a dialog box" and "the
user's reply" are ignored by HyperTalk.

on mouseUp
-- Displays a dialog box
answer "What?" with "No" or "Yes"
put it -- the user's reply
end mouseUp

Shortcuts
---------
* To comment several lines at once, drag to select the lines you want to
comment, then choose Comment from the Script menu (or press
Command-hyphen).

* To uncomment several lines at once, drag to select the lines you
want to uncomment and then choose Uncomment from the Script menu (or
press Command-=).


This article is adapted from the Claris Tech Info database.
Published Date: Feb 19, 2012