PhpStorm shows Haml file like plain text (transcompilation works, but not the syntax highlighting)

一笑奈何 提交于 2019-12-11 22:29:38

问题


The syntax highlighting for my haml files in PhpStorm does not work, and the icon is just the icon for plain text. (It should be a red icon with an h, similar to the icon for the scss file.)

The transcompilation works only if File type in the watcher is set to Text files. If I choose HAML files, it tells me that there are "No such files in scope".

Any ideas, why PhpStorm recognizes the scss file, but not the haml file?


回答1:


First of all -- make sure that HAML support plugin is installed and enabled (whould be by default).

If plugin is good:

  • Settings | File Types
  • Text files entry
  • Find and remove offending pattern (quite possible will be background-clip.haml or similar)


来源:https://stackoverflow.com/questions/26384153/phpstorm-shows-haml-file-like-plain-text-transcompilation-works-but-not-the-sy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!