Skip to main content

Format

Specifys the enclosed content's formats, being either enabled, disabled or unset (default). In order to reset all prior formatting back to the default, use the corresponding tag:

<reset>My text</reset>

Immediate

Both the full format as well as it's shorthand may be used as tag-names (also supporting the ubiquitous ampersand-sequences); prepend a bang in order to disable this style (and don't forget to mirror it in the closing-tag too!). For most cases, the positive version of each tag will suffice.

FormatShortExample
boldb

&l
<b>Bold text</b>
<!b>Non-bold text</!b>
<&l>Bold text</&l>
<&!l>Non-bold text</&!l>
italici

&o
<i>Italic text</i>
<!i>Non-italic text</!i>
<&o>Italic text</&o>
<&!o>Non-italic text</&!o>
underlinedu

&n
<u>Underlined text</u>
<!u>Non-underlined text</!u>
<&n>Underlined text</&n>
<&!n>Non-underlined text</&!n>
strikethroughst

&m
<st>Strikethrough text</st>
<!st>Non-strikethrough text</!st>
<&m>Strikethrough text</&m>
<&!m>Non-strikethrough text</&!m>
obfuscatedobf

&k
<obf>Obfuscated text</obf>
<!obf>Non-obfuscated text</!obf>
<&k>Obfuscated text</&k>
<&!k>Non-obfuscated text</&!k>

Dynamic

If the format is to be driven by data, there exists the explicit tag which takes each individual style as an attribute of corresponding name, accepting nullable booleans (null means unset).

<format
[bold]="<expression>"
[italic]="<expression>"
[underlined]="<expression>"
[strikethrough]="<expression>"
[obfuscated]="<expression>"
>My text</format>