samuelcolvin / jinjahtml-vscode

Syntax highlighting for jinja(2) html templates in vscode
https://marketplace.visualstudio.com/items?itemName=samuelcolvin.jinjahtml
MIT License
135 stars 53 forks source link

Jinja comments are the same color as target language comments. #119

Closed eadlam closed 2 years ago

eadlam commented 2 years ago

They should be different colors, because they are different things.

samuelcolvin commented 2 years ago

They have different identifiers in the language definition, just your theme doesn't support different colours for the different tags.

If you develop your own theme, let me know here, I'd be happy to link to if from this repo.

eadlam commented 2 years ago

Ah, thank you. I was able to use this to set a custom color in settings.json.

"editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": [
                    "comment.block.jinja"
                ],
                "settings": {
                    "foreground": "#d3d7cf",
                }
            }
        ]
    }
samuelcolvin commented 2 years ago

Great, hopefully this can help others.

Thanks.