HTML code color inside string in Phpstorm

Asked

Viewed 1,567 times

3

When I insert an echo or a PHP variable receiving a string with HTML code, Phpstorm does not stay in the default color that would be all yellow, as in Sublime for example, and this ends up confusing a lot when analyzing the code. Example:

tela do PhpStorm mostrando string em várias cores

Where can I change that?

2 answers

4

To change the colors of the key covers access:File>Settings>Colors & fonts>PHP. On the right side select Strings further to the left will be the button that changes the color.

File>Settings>Colors & fonts>PHP

  • I have already cleared Inherit and set the yellow color, but in the case of HTML string this does not apply.

  • @tiaguinhow, the colors of the session html you also changed?

  • only the tag and tag name

1


I was able to solve by disabling the Language Injections in Settings, as shown below:

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.