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

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

highlighting keywords in comments


From: Nathaniel Flath
Subject: highlighting keywords in comments
Date: Sun, 6 Mar 2011 14:03:10 -0500

In java-mode (and other cc-modes), I have the following code 

                   (font-lock-add-keywords
                    nil
                    '(("\\(FIXME\\|TODO\\)" 1 font-lock-warning-face)))

However, this doesn't work on FIXME or TODO words in comments, making it much less useful.  Is there a way for these keywords to be highlighted in font-lock-warning-face, even in comments?

Thanks,
Nathaniel Flath

reply via email to

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