最初のコメント フェイス内から呼び出された場合でも、2 番目のコメントの強調表示が表示されるように、Emacs で 2 番目のコメント フェイスとコメント開始インジケーターを定義することは可能ですか?
現在、次のカスタム Emacs モードがあります。
.emacs ファイル:: (set-face-attribute 'font-lock-comment-face nil :foreground "gray70")
custom_mode.el:: (set (make-local-variable 'comment-start) "//")
追加することは可能ですか:
.emacs ファイル:: (set-face-attribute 'font-lock-comment-face nil :foreground "gray70") (set-face-attribute 'font-lock-comment2-face nil :foreground "forestgreen")
custom_mode.el:: (set (make-local-variable 'comment-start) "//") (set (make-local-variable 'comment2-start) "||")
そのような行
//テスト コメント: ||2 番目のテスト コメント
は 2 色でレンダリングされますか?
「comment2」を別の場所で定義する必要がありますか?
ありがとう!