Script editor

The figure below shows the ESL script editor window. Each script opens in own tab.

Script editor


1Toolbar.
2The current action of the debugging process .
3The break point set for debugging purpose .
4The source text of the script - individual actions that form the script.
5The part of the script editor that contains the following displaying:
  • Compile - errors that occurred during the compilation (syntactic, semantic check),
  • Debug - debugging logs,
  • Notations - comments existing in the script,
  • Watch - values of local variables
To resize this part and the area for editing the script text point the mouse cursor to the margin between the parts and when the mouse cursor changes its shape to , then press the left mouse button and drag the border (left mouse button has to be still pressed) to the desired position.

Clicking on the tab the following popup menu occurs:

Script editor - popup menu

Notes:

A title bar of tab window and CNF (if the window is maximized) contain the name of active tab. If the tab window is minimized or hidden and the new script is opened the tab window will be displayed again. The insertion point is on the area for editing of the current tab.

When the script editor is closed all the tabs will be closed and the window will hide.

The rules of the tab closing:

Keyboard shortcuts:

ShortcutAction
CTRL+NOpens the tab in a separate window.
CTRL+OMoves the tab one position to the left.
CTRL+PMoves the tab one position to the right.
CTRL+WCloses the actual tab.
F12Opens the edited picture and minimizes the ESL script.

ESL editor features:


Popup menu


The popup menu containing these items can be displayed over the script source text (part 4 on the picture). Click by right mouse button or push Menu key on the keyboard.

Colors in ESL script


For better orientation in ESL script, editor uses different coloring scheme for each type of the individual text tokens. Default coloring parameters can be modified using ESL editor settings dialog.

ESL Editor within String detects the references to dictionary. If some reference to a dictionary (key), which has not defined yet, is identified, it will be colored as Error (see the dialog above).

Example:

The key D2_ActAlarm exists in the dictionary, but D2_ActAlarmAAAAA does not exist.

Príklad zobrazenia RPC procedúry