70681

Question:
I use MathJax javascript library. When I change MathJax config I have a problem because he is actually javascript code but his type is "text/x-mathjax-config" and Intellij Idea don't recognize him as code.
Can I add extra types to Intellij Idea configuration for javascript support?
Answer1:JetBrains support team gave me <a href="http://devnet.jetbrains.com/message/5506225#5506225" rel="nofollow">answer</a>:
<ol><li>Settings / Language Injections.</li> <li>Add XML tag injection.</li> <li>In its properties: <ul><li>Language ID: JavaScript (or any you like).</li> <li>XML Tag local name: script.</li> <li>XPath condition: @type="text/x-mathjax-config"</li> </ul></li> </ol>