microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.69k stars 28.69k forks source link

Add new color for php tag and laravel blade keywords in the default dark+ theme #209380

Open anirban-babai opened 5 months ago

anirban-babai commented 5 months ago

"editor.tokenColorCustomizations": { "textMateRules": [ { "name": "PHP Opening Tag", "scope": [ "punctuation.section.embedded.begin.php" // Scope for opening tag ], "settings": { "foreground": "#008cff" // Replace with the desired color code } }, { "name": "PHP Closing Tag", "scope": [ "punctuation.section.embedded.end.php" // Scope for closing tag ], "settings": { "foreground": "#008cff" // Replace with the desired color code } }, { "scope": "keyword.blade", "settings": { "foreground": "#008cff" // Change this to the color you want } } ] },

Here is the code for the color change. I belive many php developers will love this code.

Thank :)

RedCMD commented 5 months ago
"editor.tokenColorCustomizations": {
    "textMateRules": [
        {
            "name": "PHP Opening Tag",
            "scope": [
                "punctuation.section.embedded.begin.php" // Scope for opening tag
            ],
            "settings": {
                "foreground": "#008cff" // Replace with the desired color code
            }
        },
        {
            "name": "PHP Closing Tag",
            "scope": [
                "punctuation.section.embedded.end.php" // Scope for closing tag
            ],
            "settings": {
                "foreground": "#008cff" // Replace with the desired color code
            }
        },
        {
            "scope": "keyword.blade",
            "settings": {
                "foreground": "#008cff" // Change this to the color you want
            }
        }
    ]
}