Using Director > Writing Scripts with Lingo > Creating and attaching scripts with the Script window > Entering and editing text |  |

Entering and editing text

Entering and editing text in a Script window is similar to entering and editing text in any other field.

The following are common editing tasks you perform in the Script window:

| To select a word, double-click the word.
| To select an entire script, choose Select All from the Edit menu.
| To start a new line, enter a carriage return.
| To wrap a long line of code with a continuation symbol, press Alt+Enter (Windows) or Option+Return (Macintosh) where you want to insert a soft line break.
| The continuation symbol (¬) that appears indicates that the statement continues on the next line.
| To locate a handler in the current script, choose the handler's name from the Handler pop-up menu in the Script window.
| To compile the Lingo you have written, click the Script window's Recompile button or close the Script window.
| To reformat a script, press Tab in the Script window.
| Lingo automatically indents statements when the syntax is correct. If a line doesn't indent properly, there is a problem in the Lingo syntax on that line.