/plugins/IntelliLang/xml-support/resources/xmlInjections-html.xml

https://bitbucket.org/nbargnesi/idea · XML · 27 lines · 27 code · 0 blank · 0 comment · 0 complexity · 2890fde683ec0d87128b24cd311d7820 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <component name="LanguageInjectionConfiguration">
  3. <injection language="JavaScript" injector-id="xml">
  4. <display-name>*/@href</display-name>
  5. <value-pattern>^javascript:(.+)</value-pattern>
  6. <place><![CDATA[xmlAttribute().withLocalName(string().equalTo("href")).withParent(xmlTag().withNamespace(string().equalTo("http://www.w3.org/1999/xhtml")))]]></place>
  7. </injection>
  8. <injection language="JavaScript" injector-id="xml">
  9. <display-name>*/@on.*</display-name>
  10. <place><![CDATA[xmlAttribute().withLocalName(string().startsWith("on")).withParent(xmlTag().withNamespace(string().equalTo("http://www.w3.org/1999/xhtml")))]]></place>
  11. </injection>
  12. <injection language="CSS" injector-id="xml">
  13. <display-name>*/@style</display-name>
  14. <prefix>dummy_selector {</prefix>
  15. <suffix>}</suffix>
  16. <place><![CDATA[xmlAttribute().withLocalName(string().equalTo("style")).inside(xmlTag().withNamespace(string().equalTo("http://www.w3.org/1999/xhtml")))]]></place>
  17. </injection>
  18. \ <injection language="JavaScript" injector-id="xml">
  19. <display-name>script</display-name>
  20. <place><![CDATA[xmlTag().withLocalName(string().equalTo("script")).withNamespace(string().equalTo("http://www.w3.org/1999/xhtml"))]]></place>
  21. </injection>
  22. <injection language="CSS" injector-id="xml">
  23. <display-name>style</display-name>
  24. <place><![CDATA[xmlTag().withLocalName(string().equalTo("style")).withNamespace(string().equalTo("http://www.w3.org/1999/xhtml"))]]></place>
  25. <xpath-condition>lower-case(@type)='text/css'</xpath-condition>
  26. </injection>
  27. </component>