是否可以在 Emacs 中定义第二个评论面和评论开始指示器,以便即使从第一个评论面中调用第二个评论突出显示也会出现?
我目前有一个自定义 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) "||")
这样线
//测试注释:||第二个测试注释
以两种颜色呈现?
我需要在其他地方定义“comment2”吗?
谢谢!