[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Separating // and /**/ comment fontification
From: |
Ryan Bowman |
Subject: |
Separating // and /**/ comment fontification |
Date: |
Tue, 7 Jun 2005 15:09:08 -0700 (PDT) |
I would like /* */ comments to fontify differently
from // comments (in jde-mode).
I added the following to my .emacs but // line
comments are still fontified using
font-lock-comment-face.
(defface new-font-lock-comment-face
'((t (:foreground "Red"))))
(add-hook 'font-lock-mode-hook
(function
(lambda ()
(setq font-lock-keywords
(append font-lock-keywords
'(("//.*$" (0
'new-font-lock-comment-face))))))))
How can I change the fontification of one (or the
other) to use a different face?
----
Ryan Bowman
There is no vi there is only Emacs
----
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- Separating // and /**/ comment fontification,
Ryan Bowman <=