help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Individual character coloring


From: Thamer Mahmoud
Subject: Re: Individual character coloring
Date: Wed, 30 May 2012 18:05:30 +0300

Fab <fab4100@gmail.com> writes:
> I would like to highlight the semicolon with a different color in
> c++-mode and also matlab-mode.  I could not identify a special face of
> the semicolon with C-u C-x =, is there something like
> font-lock-comment-delimiter-face for a line terminator?  If not is there
> an easy way to accomplish my need?
>

This should do it:

(font-lock-add-keywords 'c++-mode '(("\\(;\\)" 1 font-lock-warning-face)))

-- 
Thamer




reply via email to

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