Multicolor highlights multiple words

Posted on:

ov can highlight multiple words in multiple colors.

ov --multi-color "ERROR.*,WARN,INFO,DEBUG,not,^.{24}" access.log

multi-color.png multi-color.png

input mode

Enter regular expressions separated by spaces. Enclose in quotation marks if it contains spaces.

  • .(default key bindings) multicolor input mode.
ERROR.* WARN "error is"

customize

The colors(styles) displayed are customizable. See github customize for settings.

StyleMultiColorHighlight:
  - Foreground: "red"
  - Foreground: "aqua"
  - Foreground: "yellow"
  - Foreground: "fuchsia"
  - Foreground: "lime"
  - Foreground: "blue"
  - Foreground: "grey"