【问题标题】:How to set syntax highlighting in sublime text through editorconfig如何通过 editorconfig 在 sublime 文本中设置语法高亮
【发布时间】:2019-01-29 14:02:07
【问题描述】:

我的.editorconfig 文件如下所示

root = true

[*.rush]
syntax = ruby

我已将它放在文件夹层次结构的顶部。但是,崇高文本将所有 .rush 文件显示为纯文本,我必须手动将语法高亮更改为 Ruby。

有人知道怎么做吗?

【问题讨论】:

    标签: editor sublimetext3 sublimetext text-editor editorconfig


    【解决方案1】:

    EditorConfig 尚不支持语法高亮显示。

    所有编辑器广泛支持的核心支持属性集 -

    • indent_style
    • indent_size
    • tab_width
    • end_of_line
    • charset
    • trim_trailing_whitespace
    • insert_final_newline
    • root

    max_line_length 受有限数量的编辑器支持(Emacs、Vim、Atom、ReSharper、Rider、AppCode、IntelliJ IDEA、PhpStorm、PyCharm、RubyMine 和 WebStorm

    支持突出显示仍然是一个未解决的问题 (#190)。

    您可以在其GitHub wiki 上找到其他建议的属性。

    【讨论】:

      猜你喜欢
      • 2014-12-05
      • 2016-04-13
      • 2016-12-17
      • 1970-01-01
      • 2013-02-07
      • 2012-08-03
      • 2012-09-19
      • 2015-06-11
      • 1970-01-01
      相关资源
      最近更新 更多