【问题标题】:Sublime text 3 ugly syntax highlightingSublime text 3 丑陋的语法高亮
【发布时间】:2016-04-28 19:05:11
【问题描述】:

我正在学习 Ruby,我正在使用 Sublime Text 3,但我发现语法突出显示真的很奇怪。

例如:

Ugly syntax

即使在将语法设置为 ruby​​ 之后。

Ruby syntax set

我想知道这是否正常,或者我是否需要更改用户的某些内容 设置或类似的东西。

【问题讨论】:

    标签: ruby sublimetext3 sublimetext


    【解决方案1】:

    Ruby 的语法文件 (Ruby.sublime-syntax) 包含未解决问题的列表。其中有:

          text:
          "p << end
          print me!
          end"
          symptoms:
          not recognized as a heredoc
          solution:
          there is no way to distinguish perfectly between the << operator and the start
          of a heredoc. Currently, we require assignment to recognize a heredoc. More
          refinement is possible.
          • Heredocs with indented terminators (<<-) are always distinguishable, however.
          • Nested heredocs are not really supportable at present
    

    是的,这很正常。

    【讨论】:

      【解决方案2】:

      您可以访问 https://packagecontrol.io/ 并使用 Railscast 配色方案之类的东西

      sublime 带来的基本语法高亮非常少——这些包通常做得更好。这也只是一个例子。有很多主题和配色方案。

      要安装包控制ctrl+并根据您的sublime版本在sn-p中过去https://packagecontrol.io/installation#st3

      【讨论】:

        猜你喜欢
        • 2016-09-18
        • 2018-02-23
        • 2013-12-21
        • 1970-01-01
        • 2013-10-06
        • 2014-05-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多