Skip to content

Code Editors

If you’re using PhpStorm, you may configure a “Language Injection” to alert the editor that the language inside the <php> block is PHP.

In your preferences, look for Editor > Language Injections. In the top left you’ll see a plus sign (+).

PhpStorm 01

From that menu, choose “XML Tag Injection”.

PhpStorm 02

Then enter the following details.

PhpStorm 03

This should make your editing experience much nicer.

An editor plugin will come eventually.

We do not currently have a solution for VSCode syntax highlighting at this time.

It is recommended to use the mode => 'adjacent' config to regain highlighting and code completion.