Difference between revisions of "Inline Expressions"
| Line 31: | Line 31: | ||
Any unknown expression is returned as it is without the braces (e.g. <code>"{unknown}"</code> → <code>"unknown"</code>). | Any unknown expression is returned as it is without the braces (e.g. <code>"{unknown}"</code> → <code>"unknown"</code>). | ||
|} | |} | ||
| + | |||
| + | == Related Live API == | ||
| + | * [[Live Inline Expressions]] | ||
| + | |||
| + | == Related Hidden Features == | ||
| + | * [[Number Inline Expressions]] | ||
| + | * [[Color Inline Expressions]] | ||
| + | * [[Dictionary Inline Expressions]] | ||
Revision as of 16:35, 11 January 2021
Most of the text properties support inline expressions for adding icons or coloring text parts. Each expression starts with character { and ends with character }. Nested expressions are not supported.
| Expression | Example | Since Version | Description |
|---|---|---|---|
{sp} |
{sp} |
0.1.0 |
Non-breakable space. |
{tb} |
{tb} |
0.1.0 |
Non-breakable tab. |
{br} |
{br} |
0.1.0 |
Line break. |
{ico:{ICON}} |
{ico:home} |
0.1.0 |
Icon. The |
{ico:{COLOR}:{ICON}} |
{ico:msx-red:home} |
0.1.0 |
Colored icon. The |
{txt:{COLOR}:{TEXT}} |
{txt:msx-red:Hello there!} |
0.1.0 |
Colored text. The |
{context:{PROPERTY}} |
{context:label} |
0.1.0 |
This is a very special inline expression and can only be used inside the Note: Since version 0.1.110, also the |
{unknown} |
{unknown} |
0.1.0 |
Any unknown expression is returned as it is without the braces (e.g. |