I'm having trouble getting Twig syntax checking and highlighting for *.php and *.tpl* files in PhpStorm? It throws a lot of syntax errors. The HTML and PHP syntax is already getting picked up.
In Settings | File Types | Twig, I can't add filetype *.php because it's already in use and it asks me to replace it.
Settings | File Types | Twig(yep -- pattern can only be associated with one file type at a time) . BTW -- why do you use twig in PHP files?