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, embold font
bigbigger font size
bluetext color
dimtext color
fixed, tttypewriter font
greentext color
kbd, keykeycaps (Like This)
noneno style
redtext color
smallsmaller font size
staticdefault text color
u, underlineunderlined text
whitetext color
yellowtext color

Since: PCC2 1.99.21

See also: RLink, RXml, Functions

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.