I dont need brutal PHP autocomplete or so, but a syntax highlight. Is it possible to lớn achieve in Webstorm?
Or the only option is to lớn use PHPStorm?
File thực đơn > Settings > tệp tin Types > click "PHP files" > click "Add" in the bottom screen > enter "*.php"
(instead of html with .php)
Associate the .php file extension lớn HTML tệp tin cause the IDE highlight at least HTML code correctly.
File thực đơn > Settings > tệp tin Types > click "HTML files" > click "Add" in the bottom screen > enter "*.php".
UPDATE: since TextMate bundles tư vấn was added to lớn the IDE, you can địa chỉ cửa hàng any language syntax highlighting khổng lồ the IDE if there is TextMate bundle for it. See my reply about adding Ruby highlighting, it would be the same for PHP, just the different bundle.
Your best option is to lớn use PhpStorm. Another option is khổng lồ create your custom tệp tin type for basic syntax highlighting.
A late reply, but this worked for me:
use this textmate bundle: https://github.com/textmate/php.tmbundle
Then go khổng lồ settings > tệp tin Types và associate *.php khổng lồ PHP files.
Hope it helps.
I tried the textmate bundle but it seems that there is an issue. I wasn"t able to get highlighting. I think it is an unsolved bug, so I wonder if someone figured out how khổng lồ use it.
So I think I have lớn use PHPStorm khổng lồ get basic syntax highlighting. Thats sad :/
This questions describes how to lớn install textmate plugin which gives you syntax highlighting:
Is it possible to lớn get Ruby syntax highlighting in PHPStorm?
The only difference is that you want to lớn use this bundle: https://github.com/textmate/php.tmbundle(but maybe there are better ones)
Thanks for contributing an answer to Stack Overflow!Please be sure lớn answer the question. Provide details và share your research!
But avoid …Asking for help, clarification, or responding lớn other answers.Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Post Your Answer Discard
Not the answer you're looking for? Browse other questions tagged ide phpstorm webstorm or ask your own question.
How to lớn configure WebStorm / PhpStorm project so that JS code intelligence works well for Node.js projects?
PhpStorm (WebStorm) - Constant with HTML code inside backtick in a typescript file becomes plain text after 4120 characters. Loses syntax highlighting
site thiết kế / biểu tượng logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. Rev2021.12.22.41046