The HTML code looks like this:

html

I tried to change the color schemes, but only the background color changes, and the text remains so.

  • Did you try to change the syntax of the document? - Cheg
  • Not. I would be grateful if you tell me how to do it. - Ramses
  • In the lower right corner, click on Syntax and instead of Plain Text, select HTML - Cheg
  • SAVIOR!!! And how many extra actions I have done because of such nonsense. - Ramses

1 answer 1

To enable syntax highlighting, there are at least 3 ways:

  • In the lower right corner of the document, click on "Plain Text", then on "Syntax (Syntax)" and in the list that appears, select the syntax corresponding to your document.
  • In the main menu, click on "View (View)", then on "Syntax (Syntax)" and in the list that appears, select the appropriate syntax for your document.
  • Open the Command Panel by pressing Ctrl + Shift + P or selecting "Tools Palette" - "Command Palette" in the menu, enter "Set Syntax" and the syntax corresponding to your document, then press Enter .

Thanks for the addition VenZell.

  • one
    You can also press CTRL + SHIFT + P and type the set syntax HTML , then press Enter . Fuzzy search is supported, i.e. incomplete word entry. For example, sshtml or ssht will find the same. - VenZell
  • A numbered list is usually perceived as a step by step instruction, so I changed it to a bulleted one. - Nick Volynkin
  • Minus answer for two reasons. // 1. The circle and tab name suggest that this tab is not saved by the author. For unsaved tabs, if I'm not mistaken, the default is Plain Text. This can be changed . If you use your method, the next unsaved tab will open again with Plain Text. - Sasha Chernykh
  • // 2. For saved tabs, if you use the content of your answer, you also have to change the syntax every time a new file opens with the extension. How to make the syntax preserved forever, see here in p.2. Thank. - Sasha Chernykh