help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Special hilighting for comments


From: Jean Louis
Subject: Re: Special hilighting for comments
Date: Sat, 10 Dec 2022 18:52:48 +0300
User-agent: Mutt/2.2.9+54 (af2080d) (2022-11-21)

* Heime <heimeborgia@protonmail.com> [2022-12-10 14:28]:
> > Type "M-s h l" (or "M-x highlight-lines-matching-regexp RET").
> 
> How can I do it with elisp code.  Highlighting lines starting with
> ";; [".
> 
> Thus in elisp-mode, how to achieve the following

;; [Highlighted line]

This works well:

(highlight-regexp "^;; \\[.*$")

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]