PHP Embedded JavaScript HighlightingAdds JavaScript syntax highlighting to quoted function values in PHP arrays. It recognises the JavaScript content rather than framework methods or specific array keys. The extension is declarative. It injects VS Code's built-in JavaScript TextMate grammar into recognised PHP strings and does not run any extension code. Example
Both single-quoted and double-quoted PHP values are supported, including values
that begin on the same line as another array element. Single-quoted PHP strings
are recommended for JavaScript containing template literals because PHP will
not attempt to interpolate JavaScript ScopeAny quoted PHP array value beginning with As this is lexical syntax highlighting, JavaScript stored in a PHP variable or assembled through concatenation cannot be followed automatically:
|