|
Navigation: ScanExpert Editor > Editor Screen Layout Editor Screen Layout |
Top Previous Next |
The ScanExpert Editor screen can be broken down into 3 areas:
Menu/Toolbar
The main menu and toolbar provide quick access to common Editor functions.

The Editor toolbar
File menu options:
New |
Open a new, blank document in the Editor Workspace |
Open... |
Open an existing script or study formula |
Recent Files |
Display a list of recently-used files from which you can select |
Save |
Save the current document (overwrite) |
Save As... |
Save the current document under a new filename |
Close |
Close the current document |
Close All Files |
Close all documents in the Editor Workspace |
Print the current document |
|
Exit |
Close the Editor and exit. |
Edit menu options:
Undo |
Undo the last operation |
Redo |
Repeat the last operation |
Cut |
Cut the current selection from the Editor Workspace |
Copy |
Copy the current selection from the Editor Workspace |
Paste |
Paste contents of the clipboard into the Editor Workspace |
Delete |
Delete the current selection from the Editor Workspace |
Select All |
Select the current document in its entirety |
Find... |
Search the current document for a word or phrase |
Find Next |
Repeat a search forward |
Find Previous |
Repeat a search backwards |
Replace... |
Perform a search and replace operation in the current document |
Tools menu options:
Color Picker |
Launch the color-selection dialog |
Editor Options |
Launch the editor configuration dialog |
Syntax Check |
Perform a syntax check on the current document |
View menu options:
Status Bar |
Toggle the Editor status bar |
Word Wrap |
Toggle word wrapping in the Editor Workspace |
Toolbar buttons:
Open |
Open an existing script or study formula |
New |
Open a new, black document in the Editor Workspace |
Save |
Save the current document (overwrite) |
Save As... |
Save the current document under a new filename |
Print the current document |
|
Find... |
Search the current document for a word or phrase |
Replace... |
Perform a search and replace operation in the current document |
Word Wrap |
Toggle word wrapping in the Editor Workspace |
Editor Workspace
The Editor supports the editing of multiple documents at the same time. Up to 20 documents can be loaded into the Editor.

The Editor workspace supports multiple documents
You can move between documents by clicking on the tabs at the top of the Editor Workspace. The tab for the current document will always be highlighted. Line numbers are displayed along the left margin (this feature can be turned off in Editor Options).
The Editor Workspace supports syntax highlighting for the ScanExpert scripting language, as follows:
Comments |
Green |
Keywords |
Black, Bold |
Formulas/Variables |
Navy |
Numeric Values |
Blue |
Control Panel
The Control Panel contains a status display area as well as 4 buttons.

The Editor control panel
| • | Syntax Check: Click on the Syntax Check button to automatically check for formatting and/or syntax errors in your script or study formula. Always run a syntax check before saving a script or formula. |
If a syntax error is found, it will be displayed in the status display area below the buttons.

Syntax errors are displayed in the control panel
Double click on the error and you will be taken to the line in the editor where the error was found.
| • | Editor Options: Click on the Editor Options button to call up the Editor Options dialog where you can configure various editor settings, such as display/operational characteristics and keyboard shortcuts. |

The Editor options dialog
| • | Color Picker: Click on the Color Picker button to call up the Color dialog where can select basic and custom colors for script functions that accept colors as input. |

The Editor color picker dialog
When you select a color using the Color dialog, the corresponding ColorToRGB() function call will be saved to the clipboard so that you can paste it into the current script, as needed.

Note: The "compile" option will only work with ScanExpert study formulas. You cannot compile a script. If a compiled version of a study exists along with a source-code version, the compiled version will always be loaded by the ScanExpert Viewer (the source code version will be ignored).
To compile a study formula:
| • | Load the formula into the editor. |
| • | Click on the Syntax Check button to perform a syntax check on the formula. |
| • | Click on the Compile button and you will be prompted to confirm the action. |

Confirm the Compile operation
Click on the Continue button and the Save Compiled Version dialog will prompt you to supply a file name.

Save the compiled study into the Studies folder