IDE Settings - How can prevent Code Warnings in Js-Code?

Hello,
hope Im right here to ask a question:
How can I prevent Code-Warnings in Js-Code caused by a PHP-Tag?

I added *.js.php as File Type under IDE-Settings -> File Types -> Java Script Files

Unfortunately the <? PHP Code above troubles the view (see screenshot)

I love PHP-Storm!
Björn



Attachment(s):
code-warning-caused-by-php-.jpg
2 comments

You need to map your files to PHP file type and set template data language for the files to be JavaScript (Settings | Template Data Languages)

0

Please sign in to leave a comment.