Function: highlight-lines-matching-regexp
highlight-lines-matching-regexp is a and interactive
for hi-lock-line-face-buffer, defined in hi-lock.el.gz.
Signature
(highlight-lines-matching-regexp REGEXP &optional FACE)
Documentation
Highlight all lines that match REGEXP using FACE.
The lines that match REGEXP will be displayed by merging the attributes of FACE with any other face attributes of text in those lines.
Interactively, prompt for REGEXP using read-regexp, then FACE.
Use the global history list for FACE.
If REGEXP contains upper case characters (excluding those preceded by \)
and search-upper-case is non-nil, the matching is case-sensitive.
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.
Probably introduced at or before Emacs version 27.1.
Key Bindings