From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thamer Mahmoud Newsgroups: gmane.emacs.help Subject: Re: Individual character coloring Date: Wed, 30 May 2012 18:05:30 +0300 Message-ID: <87fwah675x.fsf@zemblan.newkuwait.org> References: <87sjei3p8n.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1338390373 18169 80.91.229.3 (30 May 2012 15:06:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 May 2012 15:06:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 30 17:06:11 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SZkTP-0001na-By for geh-help-gnu-emacs@m.gmane.org; Wed, 30 May 2012 17:06:07 +0200 Original-Received: from localhost ([::1]:51627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZkTP-00061f-2C for geh-help-gnu-emacs@m.gmane.org; Wed, 30 May 2012 11:06:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZkTB-00060N-B4 for help-gnu-emacs@gnu.org; Wed, 30 May 2012 11:06:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZkT6-0007WY-Kl for help-gnu-emacs@gnu.org; Wed, 30 May 2012 11:05:52 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZkT6-0007W7-AX for help-gnu-emacs@gnu.org; Wed, 30 May 2012 11:05:48 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SZkT1-0001VR-DB for help-gnu-emacs@gnu.org; Wed, 30 May 2012 17:05:43 +0200 Original-Received: from 178.61.79.211 ([178.61.79.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 May 2012 17:05:43 +0200 Original-Received: from thamer.mahmoud by 178.61.79.211 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 May 2012 17:05:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 178.61.79.211 Cancel-Lock: sha1:i4U8OQZOBMv7Bi0PJ7gj6huUKqw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85045 Archived-At: Fab 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