-2

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

rioV8
  • 24,506
  • 3
  • 32
  • 49
  • 1
    You can't change comment tags - they are just part of the source and don't get rendered on the page. If you are talking about how it looks in your editor, then maybe your editor will have some settings – Pete Jan 23 '23 at 11:41
  • yea i mean in vs code, i tried to find the settings for it but couldn't find anything – Ziad Ahmed Jan 23 '23 at 11:49
  • I don't think you can change ` – Pete Jan 23 '23 at 11:53
  • install a font with **Font Ligatures** (Fira Code) and enable Font Ligatures in VSC – rioV8 Jan 23 '23 at 12:00
  • Does this answer your question? [How do i setup font ligatures for Visual Studio Code?](https://stackoverflow.com/questions/56209769/how-do-i-setup-font-ligatures-for-visual-studio-code) – starball Aug 31 '23 at 03:09

1 Answers1

1

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).
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335