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.

 

Editor2

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

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

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.

 

Editor3

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.

 

Editor4

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.

 

Editor5

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.

 

Editor6

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.

 

Editor7

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.

 

Editor8

 

Compile: Click on the Compile button to compile a formula study into binary object code. Compiling a formula study is only necessary if you wish to distribute a particular study but do not wish to share the actual source code. After a formula study is compiled it is saved with a file extension of .DGX. The ScanExpert Viewer recognizes .DGX files as compiled studies and will load them at runtime, 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.

 

Editor9

Confirm the Compile operation

 

 

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

 

Editor10

Save the compiled study into the Studies folder