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
background-colorUI color: background
bigbigger font size
bluetext color
contrast-colorUI color: contrast
dimtext color
fixed, tttypewriter font
greentext color
heading-colorUI color: heading
input-colorUI color: text input
inverse-colorUI color: inverse
kbd, keykeycaps (Like This)
link-colorUI color: link
link-focus-colorUI color: link focus
link-shade-colorUI color: link shade (hover)
noneno style
redtext color
selection-colorUI color: link shade
smallsmaller font size
staticdefault text color
u, underlineunderlined text
whitetext color
yellowtext color

The UI colors are supported since 2.0.14 and can be used to match specific UI elements. Otherwise, they have no guaranteed appearance.

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.