Search code examples
phphtmlwordpressvisual-studio-codesyntax-highlighting

Change PHP Tag Syntax Highlighting


I'm working with WordPress which mixes PHP and HTML in their .php files. Right now open/closing PHP and HTML tags are the same blue color ( on the dark theme ). I'm wondering if there's a way to change the color of the opening/closing PHP tags to better differentiate the PHP and HTML sections? Here's a screenshot demonstrating what I mean.

enter image description here


Solution

  • Install material-theme as an extension. Change color theme and set accent color as your wish. You will find those settings on preference. On Linux press ctrl+shift+p and search for color theme after installing the Material theme or any other theme that you prefer.