I'm trying to figure out how I can use the coffeescript bundle (or another method) to enable proper highlighting while looking at it inline. It's contained in a script block like this:
- Code: Select all
<script type="text/coffeescript">...</script>
How does ST2 handle the Javascript highlighting? Is it just looking for a set of <script ... /> tags or does it also look at the type attribute?
Since CoffeeScript and Javascript look similar, most of the highlighting works well enough - but comments, for example, don't work. Ultimately, this isn't a big deal since I'm not working on any large projects like this, but it would be nice to have. Any ideas?
Thanks!