6

The text inside of <p> tags is the same color as the html attributes, so it's hard to distinguish between them.

enter image description here

The html inside this .php file is colored (line one of this image) almost identically to the html inside an .html file (second line of this image), except for this subtle yet major difference. The words "This is also red" should be black instead.

How do I customize/override the color that one of these (either the p text or the attributes) is displayed in in php files? Or how can I make it automatically match the colors exactly how they are in an html file?

  • Thanks for the edit @Carpetsmoker, that's exactly my problem. How to make "This is also red" black instead? – alec Jan 29 '16 at 13:28
  • Maybe this post can help you : vi.stackexchange.com/questions/6283/… – Garf365 Feb 1 '16 at 16:20
  • 1
    That was my previous question, this one is a continuation of that ;^) – alec Feb 1 '16 at 18:21
  • This is probably because by default the content of strings is shown in red. So "standard text" even though it's part of your HTML is going to be shown in the default string color. i.e. if you were to write another string without HTML, it would most certainly be red, right? – Alexis Wilke Jan 29 '18 at 4:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.