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
]
highlighting keywords in comments
,
Nathaniel Flath
<=
Re: highlighting keywords in comments
,
Andreas Röhler
,
2011/03/11
Re: highlighting keywords in comments
,
Stefan Monnier
,
2011/03/06
Re: highlighting keywords in comments
,
jpkotta
,
2011/03/07
Re: highlighting keywords in comments
,
Tim X
,
2011/03/06
Prev by Date:
Re: emacs as an XML editor
Next by Date:
Re: Indenting paragraphs manually
Previous by thread:
Re: emacs as an XML editor
Next by thread:
Re: highlighting keywords in comments
Index(es):
Date
Thread