Detect syntax mode via shebang?


#1

I’d like to detect syntax mode via shebang, and here’s how I’m currently doing it. Would like to know if you think there’s a better way, and whether you’d be interested in a PR to the core please!

Thanks!


#2

we do something similar in https://github.com/c9/core/blob/32fc12bf922288d0c2b518c73aa75e19f14bed8b/plugins/c9.ide.ace/ace.js#L1464 you can add more modes there instead of adding new function to simple.js