This was posted on the list some time ago:



(setq font-lock-fixme-face (make-face 'font-lock-fixme-face))
(set-face-foreground 'font-lock-fixme-face "Red")
(set-face-background 'font-lock-fixme-face "Yellow")

(setq font-lock-scaffold-face (make-face 'font-lock-scaffold-face))
(set-face-foreground 'font-lock-scaffold-face "Magenta")

(font-lock-add-keywords 'jde-mode
  '(("\\(^.*FIXME.*$\\)" 1 font-lock-fixme-face prepend)
    ("\\<\\(Debug.assert\\|Debug.error\\|Debug.notImplemented\\)\\>" .
font-lock-scaffold-Face)))
)



Regards,
Daniel

>How do you put that in your jde-mode-hook?
>
>-----Original Message-----
>From: Denis, Ronald J (Ronald)** CTR ** [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 21, 2001 7:20 PM
>To: '[EMAIL PROTECTED]'
>Subject: How to add a new Font Lock Face?
>
>
>I have the following in my jde-mode-hook so that TODO items in comments
>stand out.
>
>   (font-lock-add-keywords
>    'jde-mode
>    '(("\\<\\(TODO\\):" 1 font-lock-warning-face t)))
>
>For example:
>
>/*
>** TODO: blah blah blah...
>*/
>
>
>The TODO text properties are a different face than the rest of the comment.
>
>
>However, I don't like using font-lock-warning-face.  I would like to create
>a new face like font-lock-todo-face.  Is there a simple way to do this?
>
>Ron Denis
>E-mail : [EMAIL PROTECTED]
>Consultant
>Lucent Technologies Inc.
>
>
>
>NOTICE AND DISCLAIMER:
>This email (including attachments) is confidential.  If you have received
>this email in error please notify the sender immediately and delete this
>email from your system without copying or disseminating it or placing any
>reliance upon its contents.  We cannot accept liability for any breaches of
>confidence arising through use of email.  Any opinions expressed in this
>email (including attachments) are those of the author and do not 
>necessarily
>reflect our opinions.  We will not accept responsibility for any 
>commitments
>made by our employees outside the scope of our business.  We do not warrant
>the accuracy or completeness of such information.
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to