Reputation: 6559
How can I enable recognizing and highlighting of PHP-code in CSS files in PhpStorm?
The files are named *.css
and not *.php
. I cannot change them (restriction/dependency on the environment/framework).
I'm aware of the possibilities of Highlighting js-code inside php file, but this requires the extension to be php
which isn't possible.
Upvotes: 0
Views: 588
Reputation: 7478
Just assign CSS extension to php file type and then set the "outer" language to CSS at Settings/Template Language for all those files.
Upvotes: 4