[BUG] html tag interpreted as SQL in twig file


It is really weird but all value between two html tag are considered to be SQL.

As you can see the 'View' word is highlighted (I tested with other SQL keyword like 'INSERT' and it also highlight it)

This is inside a file named '_rightsManagement.html.twig'

My phpStorm version is :

PhpStorm 2018.3.4
Build #PS-183.5429.47, built on February 8, 2019
Licensed to Leandro Saraiva Maia
Subscription is active until April 18, 2019
For educational use only.
JRE: 1.8.0_152-release-1343-b26 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-46-generic

Comment actions Permalink

Try hitting Alt+Enter and then select "Uninject language..." there.

You can also search for it at File | Settings | Editor | Language Injections & disable/remove it: it should be under "IDE" scope.

Comment actions Permalink

Thanks it worked

I had to disable this one :

Comment actions Permalink

You're welcome!


Please sign in to leave a comment.