!highlight

Highlighted text — a background tint behind a run of canvas text: a table cell, a mark's label, a caption. Canvas-only: a highlight anywhere in a scene's narrative, shorthand included, is a compile error. The colour is the implicit attribute, so it is written as shorthand: !h:red{Text}. The ==shorthand== marks text in the default yellow.

!highlightMicronodeAliases:h

#Attributes

colourImplicit
Highlight colour.
bluelight-bluedark-blueredlight-reddark-redorangelight-orangedark-orangeyellowlight-yellowdark-yellowteallight-tealdark-tealgreenlight-greendark-greenpinklight-pinkdark-pinkpurplelight-purpledark-purplegreylight-greydark-greyneutralhex(…)rgb(…)
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

point(x: 1; y: 2; label: !h:yellow{turning point})
table{
    Term | Meaning
    !h:blue{slope} | rise over run
}
text(label: ==marked==; x: 0; y: 0)

Last updated