highlightElementElementElement functions can be customized with set and show rules.
set and show rules.Highlights text with a background color.
Example
This is #highlight[important].

ParameterParameterParameters are input values for functions. Specify them in parentheses after the function name.
highlight(fill:,,,,,,)->The color to highlight the text with.
Show example
This is #highlight(
  fill: blue
)[highlighted with blue].

rgb("#fffd11a1")The highlight's border color. See the rectangle's documentation for more details.
Show example
This is a #highlight(
  stroke: fuchsia
)[stroked highlighting].

(:)The top end of the background rectangle.
Show example
#set highlight(top-edge: "ascender")
#highlight[a] #highlight[aib]
#set highlight(top-edge: "x-height")
#highlight[a] #highlight[aib]

Available string values
ascenderThe font's ascender, which typically exceeds the height of all glyphs.
cap-heightThe approximate height of uppercase letters.
x-heightThe approximate height of non-ascending lowercase letters.
baselineThe baseline on which the letters rest.
boundsThe top edge of the glyph's bounding box.
"ascender"The bottom end of the background rectangle.
Show example
#set highlight(bottom-edge: "descender")
#highlight[a] #highlight[ap]
#set highlight(bottom-edge: "baseline")
#highlight[a] #highlight[ap]

Available string values
baselineThe baseline on which the letters rest.
descenderThe font's descender, which typically exceeds the depth of all glyphs.
boundsThe bottom edge of the glyph's bounding box.
"descender"extentSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
extentset rule, changing the default value used thereafter.The amount by which to extend the background to the sides beyond (or within if negative) the content.
Show example
A long #highlight(extent: 4pt)[background].

0ptradiusSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
radiusset rule, changing the default value used thereafter.How much to round the highlight's corners. See the rectangle's documentation for more details.
Show example
Listen #highlight(
  radius: 5pt, extent: 2pt
)[carefully], it will be on the test.

(:)bodyRequiredRequiredRequired parameters must be specified when calling the function.PositionalPositionalPositional parameters can be set by specifying them in order, omitting the parameter name.
bodyThe content that should be highlighted.