The Script menu appears in the menu bar whenever a Script Window is active, and can also be accessed by pressing the right mouse button within that window.
Most of the editing functions used in a Script Window can be found on the Edit Menu.
When the right mouse button is pressed in a script window, the popup version of this menu includes both Edit and Script menu items.
Suggest Choices invokes the auto-complete feature of the editor as if you had not typed anything yet. This pops up a list of every syntax element that is allowed to be used at the point in the script where the cursor is currently located.
Comment / Uncomment Selection toggles the commented state of the current line or selected set of lines. This is done by either inserting or removing // comment marks from the start of each line. If the cursor is on a Script Section definition line when this item is selected, the commenting of the entire section is toggled.
Note that the shortcut key for this menu item is Ctrl+/, which is easy to remember since // is the line comment syntax.
Another convenient shortcut to this feature is to click the mouse in the leftmost vertical margin of the script window:
Options opens the Script Editor Options dialog box:
The section in the left half of this dialog facilitates the choice of which color to use for each type of syntax element that can appear in a script.
To modify a color, click on the ellipses just to the left of an element type name.
Click on the + or - signs to the left of the ellipses to modify the bold and/or italic look for that element.
Click on Background to change the background color or Font to change the typeface or size.
Other options include:
•whether to auto-complete the parameter list for a function when the open parenthesis is typed
•whether to offer auto-complete in general (the entire feature can be disabled here)
•whether to show syntax element descriptions within the suggestion list during auto-complete (these are not inserted in the script, just shown in the popup)
•whether to auto-highlight any other copies of the currently selected word in the script
•whether clicking in the leftmost margin of the script window will toggle the comment state of that line or instead select the entire line
•an option to dynamically create an optimal set of tabstop locations based on the text of the entire script
•the fixed tab size when not using dynamic tabstops
•the current font zoom level (can also be modified using the Ctrl+mouse wheel)