From OpenSCADAWiki
Jump to: navigation, search

Table 3. Actions over the element, described by the "fld" tag.

Operation Action
Interrogation

Request: command "get": <get path="/fld_teg" user="user"/>.
Result: confirmation with the value in the text of the tag or an error message.

Modification

Request: command "set": <set path="/fld_teg" user="user">value</set>
Result: confirmation or an error message.

Request for the rules of syntax highlight, for text fields (the attribute "rows" set).

Request: command "SnthHgl": <SnthHgl path="/fld_teg" user="user"/>
Result: confirmation with the rules of syntax highlight list:

<rule expr="\b(if|else|for|while|in|using|new|var|break|continue|return|Array|Object)\b" color="darkblue" font_weight="1"/>
<rule expr="(\?|\:)" color="darkblue" font_weight="1"/>
<rule expr="(\b0[xX][0-9a-fA-F]*\b|\b[+-]?[0-9]*\.?[0-9]+[eE]?[-+]?[0-9]*\b|\btrue\b|\bfalse\b)" color="blue"/>
<rule expr="&quot;[^&quot;]*&quot;" color="darkgreen"/>
<rule expr="//[^\n]*" color="gray" font_italic="1"/>
<blk beg="/\\*" end="\\*/" color="gray" font_italic="1"/>