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