Skip to content

Instantly share code, notes, and snippets.

@mems
Created September 22, 2014 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mems/68cede17b09621c63fda to your computer and use it in GitHub Desktop.
Save mems/68cede17b09621c63fda to your computer and use it in GitHub Desktop.
JavaScript HTML injection for Intellij
<?xml version="1.0" encoding="UTF-8"?>
<LanguageInjectionConfiguration>
<injection language="HTML" injector-id="js">
<display-name>&quot;&lt;html&gt;&quot;</display-name>
<place><![CDATA[jsLiteralExpression().withText(string().matchesBrics("(\\<\\<\\<)?.*\\</?<anyname>.*>.*"))]]></place>
</injection>
</LanguageInjectionConfiguration>
@mems
Copy link
Author

mems commented Sep 22, 2014

var html = "<p>\n\tFirst line<br>\n\tSecond line\n</p>";

http://www.jetbrains.com/idea/webhelp/language-injections.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment