r/PHPhelp • • Jun 12 '25

Solved PHP Code Editor

(PHP code editor that grays out HTML when working with PHP and vice versa)

Greetings! (And sorry if the question is misplaced)

Couple of years ago I saw a code editor that grayed out all HTML blocks when working with PHP code blocks and grayed out PHP code blocks when working with HTML. Switching happened automatically: when text cursor was put in the PHP code all HTML code was grayed out, focusing on PHP, and when cursor was put in HTML code, all PHP code was grayed out, focusing on HTML.

Unfortunately, I forgot what that editor was and cannot find it now. Can anyone advise its name?

------------------

UPD: PHPDesigner has this feature (thanks to u/LordAmras). However, if you know any other editor with this feature, please, feel free to add.

6 Upvotes

50 comments sorted by

View all comments

Show parent comment

1

u/satailx Jun 13 '25

Excellent, thank you! Strange thing is that I do not recall PHPDesigner and I do not see any older files of it downloaded on my disk, so it could be something else, but PHPDesigner does have it for sure. Let's wait a little bit if anyone else will come up with an alternative, but I will mark your comment as an answer for sure. Thanks again!

Question, if possible. How did you formulate it for Google? I've tried multiple times without success, but my English is definitely not good enough.

3

u/LordAmras Jun 13 '25

Searching in google requires also a bit of luck, the first couple of searches I did were "editor switching highlighting between html and php" and "editor gray out html while working php" and didn't have any good result. So I thought maybe it wasn't a feature of an editor but a plugin for one and searched for: "phpstorm plugin gray out html while working php"

And I had this link as a second result of a guy asking for the feature he liked on PHPDesigner:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360010205479-Switch-Highlightning-on-HTML-and-PHP

I then spent a couple of minutes to see if an actual plugin like this existed but couldn't find something that does exactly that.

2

u/satailx Jun 13 '25

Ah, perfect, thank you! I had same issue with direct search ("fade out", "gray out" did not work), but didn't think about plugin. Thanks again!