PHPStorm renders a particular file name as plain text

Andrew Rhyne picture Andrew Rhyne · Jan 30, 2013 · Viewed 14.3k times · Source

For some reason, PHPStorm has decided to render any file named root.js as plain text without the JS coloring and debugging. Does anyone know how to correct this issue??? It is driving me crazy!!!

Answer

dan-lee picture dan-lee · Jan 30, 2013

Go to IDE Settings -> File types and look for Text files in Recognized file types. There might be an added pattern named root.js

enter image description here


For newer versions this setting is found in Editor -> File types

enter image description here