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 14:28:04 +0000

------- Original Message -------
On Saturday, December 10th, 2022 at 2:21 PM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Sat, 10 Dec 2022 11:26:58 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: help-gnu-emacs@gnu.org
> > 
> > > 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]
> > ;; Some comment
> > ;; Other comment
> > 
> > Have started with the following, whilst you suggest 
> > "highlight-lines-matching-regexp".
> 
> 
> I suggested a user command. If you want to do it from Lisp, use the
> command as a function, or use lower-level functions if that suits your
> needs better.

Yes, I want to do it from lisp.




reply via email to

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