10.2.1 Main Scripting Area
The ECMAScript editor provides a main scripting area where the ECMAScript is created. You can type a new script, or copy an existing one.
Figure 10-1 Main Scripting Area
Using an Existing ECMAScript
-
Open the ECMAScript in a text editor, then copy the script.
-
Paste the ECMAScript into the ECMAScript editor.
-
Press Ctrl+S to save the ECMAScript.
Editing an ECMAScript
There are multiple options available for use to edit the ECMAScript.
Table 10-1 ECMAScript Editing Options
Option |
Description |
---|---|
Undo Typing |
Undoes the typing that has occurred. |
Redo |
Redoes the last action. |
Cut |
Cuts the selected area and adds it to the clipboard. |
Copy |
Copies the selected area into the clipboard. |
Paste |
Pastes the information in the clipboard into the main scripting area. |
Delete |
Deletes the selected information from the main scripting area. |
Select All |
Selectes all of the information in the main scripting area. |
Find/Replace |
Finds and replaces the specified information. |
Show Expression Builder |
Launches the Expression Builder. For more information, see Expression Builder. |
Coding Help for ECMAScript
The ECMA Script editor contains coding helps. To access the coding helps, right-click in the left margin of the main scripting area, then select the desired option.
Table 10-2 Coding Help
Option |
Description |
---|---|
Toggle Breakpoints |
To be implemented. |
Enable Breakpoints |
Sets breakpoints in the ECMAScript. |
Breakpoints Properties |
Displays the properties of the breakpoints. |
Add Bookmarks |
Places a bookmark icon on a line in the ECMAScript editor. |
Add Tasks |
Places a task icon in a line as a reminder of additional work that needs to be done. If you open the Task view from the toolbar, by selecting , the task is displayed. |
Revert Block |
To be implemented. |
Delete Added Line |
Deletes the last line added. |
Show Quick Diff |
To be implemented. |
Show Line Numbers |
Displays line numbers in the main scripting area. |
Preferences |
Sets the line delimitation and sets the suffix for the files created in the ECMAScript editor. By default, there is no translation for line delimiters, and the suffix is js. |