PhpStorm将Haml文件显示为纯文本格式(反编译有效,但语法高亮不显示) [英] PhpStorm shows Haml file like plain text (transcompilation works, but not the syntax highlighting)

查看:101
本文介绍了PhpStorm将Haml文件显示为纯文本格式(反编译有效,但语法高亮不显示)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PhpStorm中的haml文件的语法突出显示不起作用,并且该图标只是纯文本的图标. (它应该是带有h的红色图标,类似于scss文件的图标.)

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.)

仅当监视程序中的文件类型设置为文本文件时,反编译才有效.如果选择 HAML文件,它会告诉我范围内没有此类文件".

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".

有什么想法,为什么PhpStorm可以识别scss文件而不是haml文件?

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

推荐答案

首先-确保已安装并启用了HAML支持插件(默认情况下将启用).

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

如果插件很好:

  • Settings | File Types
  • Text files条目
  • 查找并删除违规模式(很有可能是background-clip.haml或类似的结果)
  • Settings | File Types
  • Text files entry
  • Find and remove offending pattern (quite possible will be background-clip.haml or similar)

这篇关于PhpStorm将Haml文件显示为纯文本格式(反编译有效,但语法高亮不显示)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆