This version is out of date, covering development from v9.0.0 to v9.3.0. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

StyledString.plain


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Formatting   [other Formatting operators]

 9.0.0

 


StyledString.plain

The function sets the referenced string's (RTF) styled text to the default face.

$Text = $Text + "This is " + "some".italic + " text".plain; 

adds "this is some text" to the end of $Text. The '.plain' command reasserts no style is to be applied.

Note that $Text is currently the only attribute capable of holding styled text. String attributes and action code variables, i.e. var(), cannot store styled text. If passed styled text the latter will store the unstyled version of the text being passed. See a more detailed explanation.

String operators respecting StyledString operators

String.paragraphs(), String.replace() and String.substr().