title: intellij idea UNDERSCOREJS / EJS formatter
body: <p>I registered *.tpl file type as a "Java Server Page" file, although it's an UnderscoreJS template code (JavaScript! Not Java as the file editor points, due to this configuration).</p>
  
  <p>It's all nice but the <strong>formatting breaks</strong> the code lines of my EJS style template code, as shown in the following image:</p>
  
  <p><img src="https://i.stack.imgur.com/Dn6PK.jpg" alt="enter image description here"></p>
  
  <p>I've managed to <strong>isolate</strong> the problem - it breaks when my code uses Underscore.JS' <strong><code>each()</code></strong> function, i.e code like the following creates the breaking (otherwise it would format nicely):</p>
  
  <pre><code>_.each(models, function(model) {
          // some code..
      }
  );
  </code></pre>
  
  <p>What can be done? I'm looking for a "native" solution, i.e not use Eclipse formatting plugin.</p>
  
  <p>Maybe associate the file type with another editor? Then, which?</p>