Sublime text 3丑陋的语法高亮

时间:2016-04-28 19:05:11

标签: ruby sublimetext3 sublimetext

我学习Ruby并且我使用Sublime Text 3,但我发现语法高亮非常奇怪。

例如:

Ugly syntax

即使将语法设置为ruby。

Ruby syntax set

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

2 个答案:

答案 0 :(得分: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

所以是的,这是正常的。

答案 1 :(得分:1)

您可以访问https://packagecontrol.io/并使用类似Railscast Color Scheme

的内容

w / sublime的基本语法突出显示非常稀疏 - 这些包通常做得更好。这只是一个例子。有很多主题和配色方案。

要根据您在此页面中的sublime版本https://packagecontrol.io/installation#st3

在代码段中安装包控件ctrl+和过去
相关问题