in reply to EMACS: POD-Highlighting under Cperl-mode?
Well it works somehow, but renders all formatting-codes the same way. Tried to change them all to "bold" face but this doesn't work ... seems as if the faces must start with "font-lock-...".
Example
In this example I changed to font-lock-warning-face, which works. I couldn't find out how to define new Font-lock faces, maybe somebody here knows...' (append pod-font-lock-keywords-2 ( ("[IBCFXZS]<\\([^>]*\\)>" 1 font-lock-warning-face) ("L<\\(\\([^|>]*\\)|\\)\\([^>]+\\)>" (2 font-lock-reference-face) (3 font-lock-function-name-face)) ("L<\\([^|>]+\\)>" 1 font-lock-function-name-face) ("E<\\([^>]*\\)>" 1 font-lock-function-name-face) ("\"\\([^\"]+\\)\"" 0 font-lock-string-face) ))
Cheers Rolf
UPDATE: OK, solved the problem, "FACESPEC is a Lisp variable (a symbol) whose value is a face name." I just needed to define a variable!
|
|---|