I'm working in WebStorm (PhpStorm) on a .php file, and I want to quickly insert the standard HTML5 boilerplate (the <!DOCTYPE html>…</html> structure).
In an .html file, I can type ! and press Tab to get the boilerplate via Emmet. However, in a .php file, it doesn’t seem to work — even if I place my cursor outside the <?php ?> tags.
Here’s an example of my file:
<!-- I want the HTML5 boilerplate inserted here -->
<?php
    echo" i like pizza";
    echo "<br>";
    echo "i love pizza";
    echo "<br>";
    //this is a comment
    /* this is
    a multiline comment
    */
?>
How can I configure PhpStorm so I can type an abbreviation (e.g., !html + Tab) and insert the full HTML5 boilerplate inside a .php file without breaking PHP execution?
!Tabbefore the<?phpblock in a.phpfile. Not sure what the difference between my and your setup. Mine is PhpStorm 2025.1.4.1 on Windows 10.