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

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

Re: fontification question


From: Lennart Borgman (gmail)
Subject: Re: fontification question
Date: Thu, 17 Jan 2008 23:51:49 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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?

Perhaps you can use hi-lock-mode?




reply via email to

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