【问题标题】:why does syntax highlighting disable when I use web-mode in emacs?当我在 emacs 中使用 web 模式时,为什么语法高亮会禁用?
【发布时间】:2017-07-11 13:00:50
【问题描述】:

这是我的 init.el

 (require 'web-mode)

 (setq web-mode-tag-auto-close-style 1)

 (setq web-mode-enable-auto-closing t)

我该怎么办?

【问题讨论】:

  • 这是html模式的截图,不是web模式的截图。
  • 可能是网络模式中的错误。但是当我在这里时:我认为您在 (setqweb-mode-enable-auto-closing t) 之间缺少空格。
  • 也许您可以尝试其他颜色主题 (M-x load-theme)。在默认模式下,我发现 web 模式对比度低,html 标签和文本以浅灰色和深灰色显示,所以也许你的没有什么区别。
  • 对不起,这是我的误会。只是我没有设置网络模式的颜色。

标签: emacs syntax-highlighting font-lock


【解决方案1】:

例如

'(web-mode-doctype-face ((t (:foreground "#4A8ACA")))) '(web-mode-html-tag-face ((t (:foreground "#4A8ACA"))))

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-09
    • 1970-01-01
    • 1970-01-01
    • 2010-10-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多