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:
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.
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: