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 08:30:01 +0000





Sent with Proton Mail secure email.

------- Original Message -------
On Saturday, December 10th, 2022 at 8:14 AM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Sat, 10 Dec 2022 02:42:45 +0000
> > From: Heime heimeborgia@protonmail.com
> > 
> > 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.
> 
> 
> You can extend it if you want, but we won't, because that was
> specifically intended to highlight symbols, not arbitrary text.

Emacs is missing out on a beneficial capability beyond just highlight symbols 
in other programming language modes.



reply via email to

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