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

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

Re: fontification question


From: JRancier
Subject: Re: fontification question
Date: Fri, 18 Jan 2008 08:34:04 -0500


"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> 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?

reply via email to

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