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: Mon, 12 Dec 2022 00:59:47 +0000

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


> > Date: Sat, 10 Dec 2022 17:39:34 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: help-gnu-emacs@gnu.org
> > 
> > > > Would it be possible to change only the foreground to some specified 
> > > > colour?
> > > > Do you ever consult the built-in documentation before you ask
> > > > questions here? Because the answer to that is right at your
> > > > fingertips: just type
> > > 
> > > M-x customize-group RET hi-lock RET
> > > 
> > > and look there for relevant customizable settings (faces, in this
> > > case).
> > 
> > I have not worked much with faces. There is the tutorial but it is too 
> > basic for things I want to do.
> 
> 
> The above will present an easy-to use UI for customizing the face's
> colors.

There is "font-lock-add-keywords" and the variable "font-lock-keywords".  
Prepending in the OVERRIDE field, a new face will be seen on top of the normal 
comment face.

How does the "font-lock-add-keywords" compare to "hi-lock" ?





reply via email to

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