Operator Scope of Action:
Operator First Added:
but in effect this is only used as $Text.highlights. The expression returns a list of strings that have been highlighted in the $Text using Format ▸ Highlight.
$MyList = $Text.highlights;
The result may be limited to strings highlighted in a specific colour by supplying colourName as a parameter. colourName may be any of "red", "green", "blue", "yellow", or "magenta". Thus:
$MyList = $Texthighlights("red");
would return only those highlighted $Text portions using a red highlight colour.