Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 513
zsitro Avatar asked Jul 27 '12 08:07

zsitro


People also ask

Can I use WebStorm for PHP?

All the features in WebStorm are included into PhpStorm, with full-fledged support for PHP and Databases/SQL support added on top.

What is the difference between PHPStorm and WebStorm?

PHPStorm incorporates all the functionality that WebStorm comes equipped with (CSS, JavaScript HTML), PLUS full-fledged PHP support (and databases support).


2 Answers

Why not

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

(instead of html with .php)

like image 107
Joshua Wooward Avatar answered Sep 18 '22 16:09

Joshua Wooward


Associate the .php file extension to HTML file cause the IDE highlight at least HTML code correctly.

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

like image 41
Delmo Avatar answered Sep 19 '22 16:09

Delmo