scala/scala-dist — Issue #15: syntax highlighting for unix shebangs?
Author: jstjohn
Created: 2012-03-02 02:11:34+00:00
State: open

This is pretty obscure, but you can run a scala script on the unix command line with a shebang header if it starts at the first line of input. These work if you do something like this at the very beginning of a program.

```
#!/bin/sh
exec scala -Xscript -Xlint -optimise -J-Xmx3g "$0" "$@"
!#
```

Would it be easy to make a syntax highlighting thing where everything between the `#!` and `!#` if they are at the beginning of a line, and start on the first line of a program, are colored like a comment or something? That would be a nice addition.