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!!!
Go to IDE Settings -> File types
and look for Text files
in Recognized file types. There might be an added pattern named root.js
For newer versions this setting is found in Editor -> File types