Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>Light+ PHP Purple TagsNew to Visual Studio Code? Get it now.
Light+ PHP Purple Tags

Light+ PHP Purple Tags

Matthew Bolger

|
3,530 installs
| (1) | Free
Simple addition to the default Light+ theme which makes PHP tags purple.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Light+ PHP Purple Tags

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

This extension can be found here:

https://marketplace.visualstudio.com/items?itemName=p26frqxxfmwrzekd6c6fcty5kipjkr3gaeejzpkyy42p5udjkjyq.lightplus-php-purple-tags

Light+ PHP Purple Tags theme

screenshot

The issue with the default Light+ 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 Light+ theme.

Light+ theme

screenshot

Making PHP tags purple 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 Purple Tags",
                "scope": [
                    "punctuation.section.embedded.begin.php",
                    "punctuation.section.embedded.end.php"
                ],
                "settings": {
                    "foreground": "#6600CC"
                }
            },
        ]
    }

You can read more about themes & customisations here:

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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft