TextMate by default will highlight anything in a <script>
tag as javascript.
But for Backbone.js and other javascript MVC frameworks, the script tag is used as a template container.
So this will remove javascript highlighting and use html highlighting instead for any <script type="text/template">
tag.
Replace this line in the Bundle Editor for HTML language:
begin = '(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)';
with this line:
begin = '(?:^\s+)?(<)((?i:script))\b(?!([^>]*text/template[^>]*|[^>]*/>))';