Back to API Reference
Interface
IMarkupSelector
abstract
Chooses which visible markup tags a ChromeRule styles. Selectors are tested against each matched markup occurrence (its rule and modifier); chrome rules of different modifier kinds all apply, and among same-kind rules the highest Specificity wins, ties resolving to the first listed. Implement to target markup by a dimension other than the built-in modifier/rule/any.
Implementations(3)
Types that implement IMarkupSelector.
CCC
AnyMarkup
Targets every visible markup tag, regardless of rule or modifier. Lowest specificity — the fallback.
ByModifier
Targets markup whose modifier is of a chosen type.
ByRule
Targets markup parsed by a rule with a given [[Identity]] (case-insensitive) — tag:b, marker:**, or a singleton's full type name. The most specific selector.
public Action ChangedRaised after configuration changes that can affect matching or specificity. Mutable custom implementations must raise this for every such change so an owning chrome rule can reconcile.
