4620

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

Question:

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

<img alt="wrong icon and no syntax highlighting" class="b-lazy" data-src="https://i.stack.imgur.com/om3Et.png" data-original="https://i.stack.imgur.com/om3Et.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

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

<img alt="No such files in scope" class="b-lazy" data-src="https://i.stack.imgur.com/KoobL.png" data-original="https://i.stack.imgur.com/KoobL.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

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

Answer1:

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

If plugin is good:

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

Recommend

  • Angular 5 add dynamic html file into DIV
  • Spring integration - how to check a directory for files, without polling?
  • How do determine gutter-width in the sass version of zurbs foundation
  • Keep a Windows Service running without a timer
  • Watch for updated properties in Wicket
  • Unable to expose a component library in react with webpack and babel
  • Angular 2's two-way binding not working on initial load of electron app
  • Know when a file changes on windows 8
  • how to avoid repetitive constructor in children
  • Spark fat jar to run multiple versions on YARN
  • How to recover from a Spring Social ExpiredAuthorizationException
  • MySQL WHERE-condition in procedure ignored
  • ILMerge & Keep Assembly Name
  • Running a C# exe file
  • Symfony2: How to get request parameter
  • ActionScript 2 vs ActionScript 3 performance
  • Large data - storage and query
  • Web-crawler for facebook in python
  • Google cloud sdk not working when python points python3
  • Why winpcap requires both .lib and .dll to run?
  • QuartzCore.framework for Mono Develop
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • WOWZA + RTMP + HTML5 Playback?
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Arrays break string types in Julia
  • How to format a variable of double type
  • VB.net deserialize, JSON Conversion from type 'Dictionary(Of String,Object)' to type '
  • json Serialization in asp
  • trying to dynamically update Highchart column chart but series undefined
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How to set the response of a form post action to a iframe source?
  • coudnt use logback because of log4j
  • How do I configure my settings file to work with unit tests?
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • reshape alternating columns in less time and using less memory
  • Binding checkboxes to object values in AngularJs
  • java string with new operator and a literal