Script editor

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

Script editor

1 Toolbar.
2 The current action of the debugging process .
3 The break point set for debugging purpose .
4 The source text of the script - individual actions that form the script.
5 The 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:

Shortcut Action
CTRL+N Opens the tab in a separate window.
CTRL+O Moves the tab one position to the left.
CTRL+P Moves the tab one position to the right.
CTRL+W Closes the actual tab.
F12 Opens 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.

Script editor - popup over resource text

Colors in ESL script


For better orientation in ESL editor, there is used the coloring of the individual texts by type. Default parameters of coloring are stored in the registry (Windows Registry) as HKEY_CURRENT_USER\Software\Ipesoft\_Base_\COMMON\EditEvent_Editor (Base).

This table shows which types of texts are colored, they default color and place where they are stored:

Type Description Name of value in registry Default value
Selected text Text color Selection_Fore 00FFFFFF
Selected text Background color Selection_Back 006A240A
Comment Text color StyleComment_Fore 00FFFFFF
Comment Background color StyleComment_Back 00000000
Key word Text color StyleKeyWord_Fore 00FFFF00
Key word Background color StyleKeyWord_Back 00000000
Deprecated default function Text color StyleOldKeyWord_Fore 00EA55AE
Deprecated default function Background color StyleOldKeyWord_Back 00000000
Deprecated external function Text color StyleExtFnctDeprecated_Fore 00EA55AE
Deprecated external function Background color StyleExtFnctDeprecated_Back 00000000
External function Text color StyleExtFnctOk_Fore 0000FFFF
External function Background color StyleExtFnctOk_Back 00000000
Nonexistent external function Text color StyleExtFnctNotExist_Fore 000000FF
Nonexistent external function Background color StyleExtFnctNotExist_Back 00000000
Local variable Text color StyleIdentifier_Fore 00AADADA
Local variable Background color StyleIdentifier_Back 00000000
String Text color StyleString_Fore 0000FF00
String Background color StyleString_Back 00000000
Indent highlighting Farba StyleIndentGuide_Fore 00808080
Error Text color StyleDefault_Fore 000000FF
Error Background color StyleDefault_Back 00000000
Other text Text color StyleDefault_Fore 00FFFFFF
Other text Background color StyleDefault_Back 00000000
Current line Background color StyleDefault_CaretLineBack 00303030
Font size   StyleDefault_Size 9
Font*   StyleDefault_Font Fixedsys or Courier new

*Font will be the same as in version of Windows. A color will be hex number in the format 00BBGGRR.

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 table above).

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

Príklad zobrazenia RPC procedúry