Webstorm: how to extend to handle PHP files or even just highlight code correctly?

zsitro picture zsitro · Jul 27, 2012 · Viewed 40.7k times · Source

I tried this IDE and I like it. Only problem is that if Im in a project that has some PHP in it, its confusing to see plain black text instead of correct PHP highlight.

I dont need brutal PHP autocomplete or so, but a syntax highlight. Is it possible to achieve in Webstorm?

Or the only option is to use PHPStorm?

Answer

Joshua Wooward picture Joshua Wooward · Jun 7, 2013

Why not

File Menu > Settings > File Types > click 'PHP files' > click 'Add' in the bottom screen > enter '*.php'

(instead of html with .php)