"Lennart Borgman (gmail)" wrote on 01/17/2008 05:51:49 PM: | JRancier@penntraffic.com wrote: | > | > Given the following code: | > | > (setq font-lock-todo-face (make-face 'font-lock-todo-face)) | > (set-face-foreground 'font-lock-todo-face "Red") | > (set-face-background 'font-lock-todo-face "Yellow") | > | > (font-lock-add-keywords 'jde-mode | > '(("\\(TODO:.*$\\)" 1 font-lock-todo-face | > prepend))) | > | > Can anyone tell me why the following is correctly fontified (in jde-mode): | > | > /* | > * | > * TODO: REMOVE DEBUG STATEMENTS | > * | > */ | > | > And this isn't? | > | > /** 01-17-08 jbr | > * | > * TODO: REMOVE DEBUG STATEMENTS | > * | > */ | > | > TIA, | > Jeff | | | I am surprised that the first one works. Should it really do that? It does. Can you clue me into why is 'shouldn't' work? The interesting thing is that in lisp-mode and c-mode, it seems to always work fine ... ??? | | Perhaps you can use hi-lock-mode?