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: Heime
Subject: Re: Special hilighting for comments
Date: Sat, 10 Dec 2022 17:11:38 +0000

------- Original Message -------
On Saturday, December 10th, 2022 at 3:52 PM, Jean Louis <bugs@gnu.support> 
wrote:


> * 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 "^;; \\[.*$")

Would it be possible to change only the foreground to some specified colour? 
 




reply via email to

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