From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Osor77 Newsgroups: gmane.emacs.help Subject: Need help with font-lock Date: Mon, 19 Apr 2010 12:44:21 -0700 (PDT) Message-ID: <28287740.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271751664 11134 80.91.229.12 (20 Apr 2010 08:21:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2010 08:21:04 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 20 10:21:03 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O48hZ-0007Je-GI for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Apr 2010 10:21:01 +0200 Original-Received: from localhost ([127.0.0.1]:50371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O48hY-0000FV-U7 for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Apr 2010 04:21:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3wtR-00033u-Gr for help-gnu-emacs@gnu.org; Mon, 19 Apr 2010 15:44:29 -0400 Original-Received: from [140.186.70.92] (port=57235 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3wtP-00030c-Rt for Help-gnu-emacs@gnu.org; Mon, 19 Apr 2010 15:44:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3wtK-0002tO-V8 for Help-gnu-emacs@gnu.org; Mon, 19 Apr 2010 15:44:27 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:58748) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3wtK-0002t0-PG for Help-gnu-emacs@gnu.org; Mon, 19 Apr 2010 15:44:22 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1O3wtJ-0000Fb-Je for Help-gnu-emacs@gnu.org; Mon, 19 Apr 2010 12:44:21 -0700 X-Nabble-From: dlewis672@yahoo.co.nz X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 20 Apr 2010 04:19:53 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72765 Archived-At: Hi All, I've recently started to use emacs to write C code and I'm pretty happy about it. There is one thing that I haven't been able to figure out, that is how to highlight format strings and escape characters. I've found a solution, but it highlighted the whole string, not just the format characters and the escapes. vi does it by default and it's the only thing I really miss from coding using vi. As an example, given printf ("Your number is %4d\n", number) I would like emacs, apart from the rest of the syntax highlighting, to highlight "%d4\n" and ONLY that, in a different colour. I'm not very fluent in lisp, so I'd greatly appreciate any help. Thanks -- View this message in context: http://old.nabble.com/Need-help-with-font-lock-tp28287740p28287740.html Sent from the Emacs - Help mailing list archive at Nabble.com.