Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm and PHP syntax highlighting in WebStorm

I have WebStorm and really like it. I don't use PHP very often, but I'm working on a project that uses it...

So, I'm trying to get basic syntax highlighting in WebStorm.

I've tried using this plugin already (incompatible):

http://plugins.jetbrains.com/plugin/6610

And I've followed the steps in these threads:

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

Is it possible to get Ruby syntax highlighting in PHPStorm?

I am using this textmate bundle:

https://github.com/textmate/php.tmbundle

It's being recognized by WebStorm, and the proper files are being associated with TextMate bundles, yet I still have no syntax highlighting.

At this point, I've just written all the stuff without the highlighting, but it seems a bit ridicules that I cannot get it to work.

I sent an email to technical support, and they just pointed me back to those resources and then suggested that I buy PHPStorm. And the IDE keeps suggesting that I buy IntelliJ IDEA Ultimate.

Has anybody else run into this problem?

like image 361
Dave Avatar asked Aug 26 '14 19:08

Dave


People also ask

Can I use PHP in WebStorm?

Use the PHP built-in web server on macOS This indicates that PhpStorm is configured to use the PHP interpreter bundled with macOS, which does not contain the php-cgi module.

What is the difference between WebStorm and PhpStorm?

"Best ide for php", "Easy to use" and "Functionality" are the key factors why developers consider PhpStorm; whereas "Intelligent ide ", "Smart development environment" and "Easy js debugging" are the primary reasons why WebStorm is favored.

What is JetBrains WebStorm used for?

WebStorm is an integrated development environment for coding in JavaScript and its related technologies, including TypeScript, React, Vue, Angular, Node. js, HTML, and style sheets.

Is WebStorm for HTML?

WebStorm brings powerful support for HTML that includes syntax and error highlighting, formatting according to the code style, structure validation, code completion, on-the-fly preview during a debugging session (Live Edit) or in the dedicated preview tab in the code editor, and much more.


1 Answers

https://github.com/textmate/php.tmbundle bundle uses non-documented 'injection' - feature that's not currently supported - thus no highlighting is actually recognized. See RUBY-14273

like image 110
lena Avatar answered Oct 03 '22 22:10

lena