RStyle(style:Str, content:RichText...):RichText
Attaches a new style to a rich text string. Concatenates all content parameters, and returns a new rich text string with the specified attribute added.
RStyle("red", "This is ", RStyle("bold", "great"))
produces "This is great".
If any argument is EMPTY, returns EMPTY.
In text mode, this function just returns the concatenation of the content, as rich text attributes have no meaning to the text mode applications.
Styles: the style parameter can contain a list of comma-separated keywords. Keywords are a superset of tag and color names used in RXml.
b, bold, em | bold font |
big | bigger font size |
blue | text color |
dim | text color |
fixed, tt | typewriter font |
green | text color |
kbd, key | keycaps (Like This) |
none | no style |
red | text color |
small | smaller font size |
static | default text color |
u, underline | underlined text |
white | text color |
yellow | text color |
Since: PCC2 1.99.21