23 |
;; Boston, MA 02111-1307, USA. |
;; Boston, MA 02111-1307, USA. |
24 |
|
|
25 |
;;; Commentary: |
;;; Commentary: |
26 |
;; |
;; |
27 |
;; With the hi-lock commands text matching interactively entered |
;; With the hi-lock commands text matching interactively entered |
28 |
;; regexp's can be highlighted. For example, `M-x highlight-regexp |
;; regexp's can be highlighted. For example, `M-x highlight-regexp |
29 |
;; RET clearly RET RET' will highlight all occurrences of `clearly' |
;; RET clearly RET RET' will highlight all occurrences of `clearly' |
58 |
;; to the edit menu. |
;; to the edit menu. |
59 |
;; |
;; |
60 |
;; (hi-lock-mode 1) |
;; (hi-lock-mode 1) |
61 |
;; |
;; |
62 |
;; You might also want to bind the hi-lock commands to more |
;; You might also want to bind the hi-lock commands to more |
63 |
;; finger-friendly sequences: |
;; finger-friendly sequences: |
64 |
|
|
83 |
(eval-and-compile |
(eval-and-compile |
84 |
(require 'font-lock)) |
(require 'font-lock)) |
85 |
|
|
|
;;;###autoload |
|
86 |
(defgroup hi-lock-interactive-text-highlighting nil |
(defgroup hi-lock-interactive-text-highlighting nil |
87 |
"Interactively add and remove font-lock patterns for highlighting text." |
"Interactively add and remove font-lock patterns for highlighting text." |
88 |
:group 'faces) |
:group 'faces) |
259 |
Highlight matches of phrase PHRASE in current buffer with FACE. |
Highlight matches of phrase PHRASE in current buffer with FACE. |
260 |
(PHRASE can be any REGEXP, but spaces will be replaced by matches |
(PHRASE can be any REGEXP, but spaces will be replaced by matches |
261 |
to whitespace and initial lower-case letters will become case insensitive.) |
to whitespace and initial lower-case letters will become case insensitive.) |
262 |
|
|
263 |
\\[highlight-lines-matching-regexp] REGEXP FACE |
\\[highlight-lines-matching-regexp] REGEXP FACE |
264 |
Highlight lines containing matches of REGEXP in current buffer with FACE. |
Highlight lines containing matches of REGEXP in current buffer with FACE. |
265 |
|
|