From OpenSCADAWiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 15: | Line 15: | ||
''Request:'' {{anch|SnthHgl|command "SnthHgl"}}: ''<SnthHgl path="/fld_teg" user="user"/>''<br/> | ''Request:'' {{anch|SnthHgl|command "SnthHgl"}}: ''<SnthHgl path="/fld_teg" user="user"/>''<br/> | ||
''Result:'' confirmation with the rules of syntax highlight list: | ''Result:'' confirmation with the rules of syntax highlight list: | ||
− | < | + | <syntaxhighlight lang="XML"> |
<rule expr="\b(if|else|for|while|in|using|new|var|break|continue|return|Array|Object)\b" color="darkblue" font_weight="1"/> | <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="(\?|\:)" color="darkblue" font_weight="1"/> | ||
Line 22: | Line 22: | ||
<rule expr="//[^\n]*" color="gray" font_italic="1"/> | <rule expr="//[^\n]*" color="gray" font_italic="1"/> | ||
<blk beg="/\\*" end="\\*/" color="gray" font_italic="1"/> | <blk beg="/\\*" end="\\*/" color="gray" font_italic="1"/> | ||
− | </ | + | </syntaxhighlight> |
|} | |} |
Latest revision as of 10:40, 22 July 2022
Table 3. Actions over the element, described by the "fld" tag.
Operation | Action |
---|---|
Interrogation |
Request: command "get": <get path="/fld_teg" user="user"/>. |
Modification |
Request: command "set": <set path="/fld_teg" user="user">value</set> |
Request for the rules of syntax highlight, for text fields (the attribute "rows" set). |
Request: command "SnthHgl": <SnthHgl path="/fld_teg" user="user"/> <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=""[^"]*"" color="darkgreen"/>
<rule expr="//[^\n]*" color="gray" font_italic="1"/>
<blk beg="/\\*" end="\\*/" color="gray" font_italic="1"/>
|