highlight-lines-matching-regexp

highlight-lines-matching-regexp is an alias for `hi-lock-line-face-buffer' in `hi-lock.el'.

It is bound to M-s h l.

(highlight-lines-matching-regexp REGEXP &optional FACE)

Set face of all lines containing a match of REGEXP to FACE.
Interactively, prompt for REGEXP using `read-regexp', then FACE.
Use the global history list for FACE.

Use Font lock mode, if enabled, to highlight REGEXP. Otherwise,
use overlays for highlighting. If overlays are used, the
highlighting will not update as you type.