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


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Data manipulation   [other Data manipulation operators]




The operator .textColor(color), when applied to styled text, sets the foreground colour of the text. The color argument can be either a named colour or a hexadecimal string. For example, both of these examples add 'example' in bright red text to the current note's $Text.

$Text = $Text + "example".textColor("#FF0000") 

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.

From v9.3.0, .textColor() now respects the current text font, e.g. if set to a non-default colour.