Search code examples
htmlcssvisual-studio-codesyntax-highlighting

Code is partly grey in VScode, does anyone know why?


Even though my language is set to HTML, the code after my CSS style element is all grey. This is not because of syntax highlighting because the code above it is highlighted correctly. Are there any solutions that do not require me to go into the settings.json?


Solution

    1. At the bottom right on band blue there is information about the language used (here it is "svelte"). vsc

    Il you press it a popup with differents langages will appear so you can choise your langage. You will find more informations here

    1. Maybe an extention of your file is wrong

    2. You can change color of your template in Code -> preferences -> color theme