Skip to main content
Skip table of contents

Using the Information Sign

Rich Text Tags

Rich text tags are similar to HTML or XML tags, but have less strict syntax.

A simple tag consists of only the tag name, and looks like this:

<tag>

For example, the <b> tag makes text bold, while the <u> tag underlines it and <i> makes it italic.

Tag attributes and values

Some tags have additional values or attributes, and look like this:

<tag="value"> or <tag attribute="value">

For example <color=”red”> makes text red. Red is the color tag’s value.

Similarly <sprite index=3> inserts the fourth sprite from the default Sprite Asset. index is an attribute of the sprite tag, and its value is 3.

A tag, including its attributes, can be up to 128 characters long.

The table below lists possible attribute/value types.

Attribute/value type:

Example

Decimals

0.5

Percentages

25%

Pixel values

5px

Font units

1.5em

Hex color values

#FFFFFF (RGB)
#FFFFFFFF (RGBA)
#FF (A)

Names

Both <link=”ID”> and <link=ID> are valid.

Tag scope and nested tags

Tags have a scope that defines how much of the text they affect. Most of the time, a tag added to a given point in the text affects all of the text from that point forward.

For example, adding the tag <color="red"> at the beginning of the text affects the entire text block:

<color="red">This text is red

Adding the same tag in the middle of the text block affects only the text between the tag and the end of the block :

This text turns<color="red"> red

If you use the same tag more than once in a text block, the last tag supersedes all previous tags of the same type.

<color="red">This text goes from red<color="green"> to green

You can also limit the scope of most tags using a closing tag. Closing tags contain only a forward slash and the tag name, like this: </tag>

Tags can also be nested so one tag’s scope is within another tag’s scope. For example:

CODE
<color=red>This text is <color=green>mostly </color>red.

The first <color> tag’s scope is the entire text block. The the second <color> tag has a closing tag that limits its scope to one word.

When you nest tags, you don't have to close their scopes in the same order that you started them.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.