Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PHP html in stringNew to Visual Studio Code? Get it now.
PHP html in string

PHP html in string

NiceYannick

|
9,424 installs
| (5) | Free
Add support for syntax highlighting in PHP strings
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

php-html-in-string

Adds support for highlighting html inside of PHP strings.

Features

Enable highlighting of html inside of php strings, this can be useful when echoing a html string. To enable the highlighting add a comment containing html before it. This is done so that we don't mark all strings as html.

Before After
Shows the default behavior of php Shows html highlighted inside of the string
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft