From OpenSCADAWiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 13: | Line 13: | ||
|- | |- | ||
|Request for the rules of syntax highlight, for text fields (the attribute "rows" set).|| | |Request for the rules of syntax highlight, for text fields (the attribute "rows" set).|| | ||
− | ''Request:'' 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: | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> |
Revision as of 11:21, 9 April 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"/> |