highlight

Wrap text in highlight markers.

View Markdown

Syntax

{{ value | highlight }}{{ value | highlight:blue }}

Usage

  • Optionally pass red, orange, yellow, green, blue, or purple to add a color marker.
  • Leading and trailing whitespace stays outside inline markers.
  • For arrays and objects, including serialized collections from another filter, string values are formatted recursively while keys and non-string values are preserved.

Examples