Enertex® EibStudio
P.
128 of 349
Syntax highlighting
Directives
#include
#break_if_older_version
#addto
Figure 2: Auto completion after entering “s“ and Ctrl-Space (“Space“)
In addition, the built-in editor is able to highlight the syntax of the notation. When saving the program,
this always happens if this function is not disabled in the menu V
IEW
.
As you enter a new user program the syntax highlighting can be easily initiated by pressing
CTRL+SHIFT+D.
Alternatively, after typing a character the syntax highlighting can be take place automatically within
the menu Edit.
Directive
●
#include
file
Effect
●
Includes a file (path and filename) at the position in the program
●
In an included File, another
#include
can be used recursively.
Directive
●
#break_if_older_version
number
Effect
●
The compiler “EibParser” stops, if its version number is smaller than the given
number
Directive
●
#addto
[EibPC]
●
#addto
[Macros]
●
#addto
[WebServer]
Effect
●
The compiler (EibParser) inserts the following lines of the section whose end is either
defined by a new section or another #addto directive.
Example 1
[EibPC]
a=1
[Macros]
mymacro(a)
#addto [EibPC]
b=a+1
Example 2
[WebServer]
page(1) [$EG$,$Kitchen$]
button(2) [LIGHT] $Text$
[EibPC]
a=1
#addto [WebServer]
page(3) [$EG$,$Basement$]
button(2) [LIGHT] $Text$
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]