all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Need help with font-lock
@ 2010-04-19 19:44 Osor77
  2010-04-20 12:53 ` font baseline in 23.1 Taka Fukuda
  0 siblings, 1 reply; 3+ messages in thread
From: Osor77 @ 2010-04-19 19:44 UTC (permalink / raw)
  To: Help-gnu-emacs


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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-01 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-19 19:44 Need help with font-lock Osor77
2010-04-20 12:53 ` font baseline in 23.1 Taka Fukuda
2010-05-01 18:28   ` font baseline in 23.1 (Miniwindow height) Taka Fukuda

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.