M
M
My joy2020-08-28 23:44:38
Visual Studio Code
My joy, 2020-08-28 23:44:38

How to enable highlighting of closing tags in html+php?

Hello. I have long noticed such a feature that the closing tag in the simple html mode is highlighted.

But if this is a php file, then the highlight of the closing html tag disappears. How to return it? This moment is very annoying when there is a large template and it is not clear where any block ends.

To html:
5f496c9b49c18022063187.png

To html+php:
5f496cae42842155744280.png

Thanks!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
My joy, 2020-09-01
@t-alexashka

The extension
https://marketplace.visualstudio.com/items?itemNam... helped
with the following settings (for some reason, the default settings did not lead to any result):

"highlight-matching-tag.styles": {
  "opening": {
    "left": {
      "underline": "yellow"
    },
    "right": {
      "surround": "#155FFA"
    },
    "name": {
      "highlight": "rgba(180, 20, 80, 0.3)"
    }
  },
  "closing": {
    "full": {
      "custom": {
        "dark": {
          "borderWidth": "0 0 1px 0",
          "borderColor": "white",
          "borderStyle": "solid",
          "borderRadius": "4px",
          "right": "10px"
        },
        "light": {
          "borderWidth": "0 0 1px 0",
          "borderColor": "brown",
          "borderStyle": "solid",
          "borderRadius": "4px",
          "right": "10px"
        }
      }
    }
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question