Home > Net >  How to make my HTML comments look like this?
How to make my HTML comments look like this?

Time:01-24

I am trying to make my HTML comment tags look like arrows instead of the usual <!-- and color them without coloring the whole comment like this in vs-code:

Example

I tried looking it up but all i found was how to change the font and color of the comment as a whole which is not what i am looking for, i just want the tags to be arrows and colored

CodePudding user response:

Combining a sequence of characters into something that looks like a single character is called a ligature.

You need to:

  • Enable them in VS Code (Open the settings and search for the keyword fontLigatures, then set it to true)
  • Use a font that supports the particular ligatures you want to use (select the font, install it, then specify it with the fontFamily setting).
  • Related