title: How do I make intellij Idea to highlight Scala script correctly with #! (shebang)
body: <p>How do I make intellij Idea to highlight Scala script correctly.</p>
  
  <p><strong>Attempt 1</strong>
  change filename to <em>'test.sc'</em> . Intellij does not like the first line i.e it is not valid scala comment syntax</p>
  
  <p><strong>Attempt 2</strong>
  change filename to <em>'test.sh'</em> . Intellij thinks all of the syntax is bash script.</p>
  
  <p>filenName = ./test.sh</p>
  
  <pre><code>#!/usr/bin/env amm
  import ammonite.ops._ , ImplicitWd._
  
  println("Stop script")
  val x = 1 + 1
  </code></pre>