Skip to content

xan1000/DarkPlus-PHP-Plum-Tags

Repository files navigation

Dark+ PHP Plum Tags

A color theme for Visual Studio Code which includes a simple addition to the default Dark+ theme to make PHP tags plum.

This extension can be found here:

https://marketplace.visualstudio.com/items?itemName=p26frqxxfmwrzekd6c6fcty5kipjkr3gaeejzpkyy42p5udjkjyq.darkplus-php-plum-tags

Dark+ PHP Plum Tags theme

screenshot

The issue with the default Dark+ theme for PHP tags is they use the same colour as HTML tags. Thus when mixing HTML markup & PHP code it can be hard to tell them apart.

Contrast the code snippet above with the default Dark+ theme.

Dark+ theme

screenshot

Making PHP tags plum without this theme

You can include the rule to style PHP tags in your user settings which will then be applied to all themes.

To change the PHP syntax highlighting colors, use the following editor.tokenColorCustomizations in your user settings settings.json file:

    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "name": "PHP Plum Tags",
                "scope": [
                    "punctuation.section.embedded.begin.php",
                    "punctuation.section.embedded.end.php"
                ],
                "settings": {
                    "foreground": "#DDA0DD"
                }
            },
        ]
    }

You can read more about themes & customisations here:

https://code.visualstudio.com/docs/getstarted/themes

About

Dark+ PHP Plum Tags is a color theme for Visual Studio Code.

Resources

License

Stars

Watchers

Forks