Next: , Previous: , Up: Notes on individual packages [Index]


9.3 Note on php-mode multiline comments

Depending on your build of Emacs and/or the environment it runs in, multiline comments in PHP with the php-mode package use the font-lock-doc-face instead of font-lock-comment-face.

This seems to make all comments use the appropriate face:

(defun my-multine-comments (&rest _)
 (setq-local c-doc-face-name 'font-lock-comment-face))
(add-hook 'php-mode-hook #'my-multine-comments)

As always, re-load the theme for changes to take effect.

AltStyle によって変換されたページ (->オリジナル) /