Skip to content

Instantly share code, notes, and snippets.

@dkorpar
dkorpar / Magento JS Components
Created November 29, 2019 16:12
Magento text/x-magento-init language injection for PHPstorm
<LanguageInjectionConfiguration>
<injection language="JSON" injector-id="xml">
<display-name>Magento JS Components</display-name>
<place><![CDATA[xmlTag().withLocalName(string().equalTo("script"))]]></place>
<xpath-condition>@type=&quot;text/x-magento-init&quot;</xpath-condition>
</injection>
</LanguageInjectionConfiguration>