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!!!
Free and open source text editor that allows users to work across multiple operating systems with CSS and other features.
Supported languages With PhpStorm, you can develop applications in PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0, and PHP 8.1.
To create an association, open an XSLT file in the editor, select File Associations | Add... from its context menu, and then select the X(HT)ML files to associate with the opened XSLT. To cancel association for a file, click its filename in the File Associations group.
In the editor, press Ctrl+Alt+F12 or in the context menu, select Open in | Finder. In the Reveal in Finder popup, select a file or a directory to open in a path finder and press Enter .
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
I just tried this in PHPStorm 5.0.4 and I don't have this problem - all the JS is colour coded fine.
I used right-click > New > JavaScript File to add the file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With