!highlight

A tinted band behind a run of canvas text.

!highlightMicronodeExplained in ColoursAliases:h
On this page

#Attributes

colourImplicit
The band's colour: one of the nine hues, or neutral for a dark band with the text set light on it.
paint
Also written: colorCan be written as shorthand: !highlight:value
Defaultyellow

#Allowed content

Body { }Inline Chalk content (formatted text, inline math, links, and inline elements)

#Examples

table{
    Term | Meaning
    !h:blue{slope} | rise over run
    intercept | value at $x = 0$
}
point(x: 2; y: -1; label: ==minimum==)

#Notes

  • ==text== is the shorthand for the default yellow.
  • Canvas-only: anywhere in a scene's narrative, shorthand included, it is a compile error (narrative/canvas-only-micronode): '!highlight' (or ==…==) is not allowed in the narrative; colour, highlighting and symbols belong in the canvas.
  • A light- or dark- tone, or a hex(…) or rgb(…) literal, compiles and draws no band.
  • In a mark's label: every highlight is drawn yellow, whatever its colour.
  • Words marked from one step to another, and plain before and after, are !cue.highlight.

Last updated