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: Eli Zaretskii
Subject: Re: Special hilighting for comments
Date: Sat, 10 Dec 2022 16:21:03 +0200

> 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.



reply via email to

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