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: Marcin Borkowski
Subject: Re: Special hilighting for comments
Date: Sat, 10 Dec 2022 07:12:15 +0100
User-agent: mu4e 1.1.0; emacs 29.0.50

On 2022-12-10, at 03:42, Heime <heimeborgia@protonmail.com> wrote:

> I have seen that emacs-lisp-mode allows the highlighting of some specially 
> formatted comments using strings enclosed by single quotes 'this-thing'.  
> This can be very useful beyond its intended use (highlighting function and 
> variable names).  
>
> For instance, I can use this to highlight the first comment with a different 
> colour from the rest of the comments. 
>
> But this special highlighting only works for function and variables names 
> without spaces.  
>
> So I cannot do the following to get 'A Remark here' highlighted in a 
> different colour.
>
> ;; 'A Remark here'   
> ;; Some comment here
> ;; Another comment here
> ;; You are a hero
>
> Can the use of '' be extended so I can use the highlighting more generally as 
> described.  Or perhaps have an additional highlighting for more general 
> things, separate from function and variable names.

Try M-s h C-h.

Hth,

-- 
Marcin Borkowski
http://mbork.pl



reply via email to

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