mark
mark

Reputation: 6559

Highlighting PHP-Code in CSS

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

Answers (1)

Alexey Gopachenko
Alexey Gopachenko

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

Related Questions