[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Highlighting special comment for prog-mode
From: |
uzibalqa |
Subject: |
Highlighting special comment for prog-mode |
Date: |
Sun, 11 Sep 2022 12:53:32 +0000 |
I have the following code that highlights lines made from semicolons in the
case of lisp-interaction-mode.
(defface special-comment '((t (:background "orange"))))
(font-lock-add-keywords 'lisp-interaction-mode '(("^\\s<\\s<\\s<+$" 0
'special-comment t)))
But whilst trying to extend this to prog-mode, the highlighting is not taking
effect.
(font-lock-add-keywords 'prog-mode '(("^\\s<\\s<\\s<+$" 0 'special-comment t)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Highlighting special comment for prog-mode,
uzibalqa <=