|
From: | Stefan Monnier |
Subject: | Re: Separating // and /**/ comment fontification |
Date: | Wed, 15 Jun 2005 01:30:06 -0400 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> (setq font-lock-syntactic-face-function > (lambda (state) > (if (nth 3 state) font-lock-string-face > (if (nth 7 state) font-lock-other-comment-face > font-lock-comment-face)))) > and that should do what I want. Though on first attempt it doesn't seem to. Make sure you have a variable `font-lock-other-comment-face' whose value is a symbol (a face). Or otherwise try (setq font-lock-syntactic-face-function (lambda (state) (if (nth 3 state) font-lock-string-face (if (nth 7 state) 'font-lock-other-comment-face font-lock-comment-face)))) -- Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |