How to protect propriertary {{syntax}} within JS code ?


In Google Tag Manager you can paste JavaScript code that referrers to custom macros designed to extract data from web pages.

The syntax for a custom macro is "{{custom macro name}}"
Can I tell PhpStorm to ignore those snippets so that syntaxe validation, code reformating, etc... still works when those macro references are incoporated into the JS source code ??

Thanks for your help


Please sign in to leave a comment.