Sublime Text 3 中多行代码的语法突出显示问题(Ruby on Rails & Haml)
Syntax highlighting issue on multiline code in Sublime Text 3 (Ruby on Rails & Haml)
当我将代码分成多行时,html.haml 视图中的语法高亮显示失败:
示例:
单行语法高亮:
= link_to results_path(keyword), remote: true, rel: 'tooltip', title: 'Voir les résultats Google' do
%i.icon-external-link
但是在多行上,语法高亮只对第一行有效:
= link_to results_path(keyword), remote: true,
rel: 'tooltip', title: 'Voir les résultats Google' do
%i.icon-external-link
what I get: no syntax highlighting on "child" lines
what I would expect: syntax highlighting even on child lines
以下是我安装的语法高亮和代码显示包:
- 应用语法
- 哈姆
- +Ruby Rails 个片段
这 https://github.com/iRet/sublime-haml 为我解决了这个问题 (Sublime 3)。安装后,只是 select Ruby Haml
(带有语法选项的根列表)而不是 Rails -> Ruby Haml
.
当我将代码分成多行时,html.haml 视图中的语法高亮显示失败:
示例: 单行语法高亮:
= link_to results_path(keyword), remote: true, rel: 'tooltip', title: 'Voir les résultats Google' do
%i.icon-external-link
但是在多行上,语法高亮只对第一行有效:
= link_to results_path(keyword), remote: true,
rel: 'tooltip', title: 'Voir les résultats Google' do
%i.icon-external-link
what I get: no syntax highlighting on "child" lines
what I would expect: syntax highlighting even on child lines
以下是我安装的语法高亮和代码显示包:
- 应用语法
- 哈姆
- +Ruby Rails 个片段
这 https://github.com/iRet/sublime-haml 为我解决了这个问题 (Sublime 3)。安装后,只是 select Ruby Haml
(带有语法选项的根列表)而不是 Rails -> Ruby Haml
.