unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Avoiding Font-locking in comments
@ 2007-12-10  8:35 Nordlöw
  2007-12-14  9:31 ` Johan Bockgård
  0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2007-12-10  8:35 UTC (permalink / raw)
  To: help-gnu-emacs

How can I make my extra font locking in cc-mode be applied to the code
only and not inside the comments? Is there a shortcuts where I can
check if the context is (not) inside a comment or do I have to do it
the hard way by checking that we are not inside a /* ... */ or // ...
newline context?

Thanks in advance,
Nordlöw

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

* Re: Avoiding Font-locking in comments
  2007-12-10  8:35 Avoiding Font-locking in comments Nordlöw
@ 2007-12-14  9:31 ` Johan Bockgård
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Bockgård @ 2007-12-14  9:31 UTC (permalink / raw)
  To: help-gnu-emacs

"Nordlöw" <per.nordlow@gmail.com> writes:

> How can I make my extra font locking in cc-mode be applied to the code
> only and not inside the comments?

What do your additions look like?  The default behavior is to never
override existing fontification (in comments or elsewhere).

-- 
Johan Bockgård

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

end of thread, other threads:[~2007-12-14  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10  8:35 Avoiding Font-locking in comments Nordlöw
2007-12-14  9:31 ` Johan Bockgård

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).