Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| syntax:styles [2014/02/09 01:50] – external edit 127.0.0.1 | syntax:styles [2018/01/10 20:43] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| </ | </ | ||
| - | This node described styles that used as for colorizing of the text as for some UI element as editor indicator margin for example. Inheritable from parent. | + | This node described styles that used as for colorizing of the text as for some UI element as editor indicator margin for example. Inheritable from the parent. |
| ====== Style ====== | ====== Style ====== | ||
| Line 34: | Line 34: | ||
| ==== abstract ==== | ==== abstract ==== | ||
| - | If attribute is set, style would not be visible in user settings. Can be used, for example, if you only want to define visibility range for some another style, and do not want to syntax highlight it. | + | If the attribute is set, the style would not be visible in user settings. Can be used, for example, if you only want to define visibility range for some another style, and do not want to syntax highlight it. |
| Value: // | Value: // | ||
| Line 79: | Line 79: | ||
| ==== extend ==== | ==== extend ==== | ||
| - | Technical attribute, which tells HE that parent style should not be overridden but only extended by some properties. | + | Technical attribute, which tells HE that parent style should not be overridden but only extended by some properties. |
| Value: // | Value: // | ||
| Line 91: | Line 91: | ||
| ==== override ==== | ==== override ==== | ||
| - | Technical attribute, mostly same as extend, but only resets inherited keywords, blocks and words. Default = false. Can be used if you want to completely overwrite definitions for style from parent schema. | + | Technical attribute, mostly same as extend, but only resets inherited keywords, blocks, and words. Default = false. Can be used if you want to completely overwrite definitions for style from parent schema. |
| Value: // | Value: // | ||
| Line 103: | Line 103: | ||
| ==== inherit ==== | ==== inherit ==== | ||
| - | Technical attribute, which tells to copy information from other style to this one. Copied are keywords, blocks, settings, but not containers. This is a better way than duplicate keyword sets. Example | + | Technical attribute, which tells to copy information from another |
| Value: //any id of existing style with/ | Value: //any id of existing style with/ | ||
| Line 115: | Line 115: | ||
| ==== clr/bkclr ==== | ==== clr/bkclr ==== | ||
| - | Text (clr) or background (bkclr) color of the style. As color you can use as explicit value in RGB or RGBA (with alpha) format. Like %%#%%FFAAFF (RGB, no transparency) or %%# | + | Text (clr) or background (bkclr) color of the style. As for color, you can use as an explicit value in RGB or RGBA (with alpha) format. Like %%#%%FFAAFF (RGB, no transparency) or %%# |
| Value: // | Value: // | ||
| Line 173: | Line 173: | ||
| Default: //true// | Default: //true// | ||
| ===== Containers ===== | ===== Containers ===== | ||
| - | To control, scope of the styles (in which other style, this style can be used), you can use [[syntax: | + | To control, scope of the styles |
| <code xml> | <code xml> | ||
| < | < | ||
| Line 185: | Line 185: | ||
| If you want to exclude some parent definition of container, you can add to the list container with id defied in parent syntax and add attribute exclude: | If you want to exclude some parent definition of container, you can add to the list container with id defied in parent syntax and add attribute exclude: | ||
| <code xml>< | <code xml>< | ||
| + | |||
| + | < | ||
| It is also possible to address style from another existing syntax, for this add syntax id before style id separated by //://, like this: | It is also possible to address style from another existing syntax, for this add syntax id before style id separated by //://, like this: | ||