Sublime Forum

Inline CoffeeScript

#1

How do I get the HTML package (built in, I believe, to ST3) to recognize an inline CoffeeScript script tag? ST3 does not switch to the Better CoffeeScript editing package when in an HTML file that uses the coffee-script.js package for inline scripts.

I.e. when using

<script src="../tools/coffee-script.js"></script> <script type="text/coffeescript"> ... CoffeeScript code .. </script> the HTML package should defer to the CoffeeScript package while within the script.

Instead I seem to have to manually change to Better CoffeeScript.

Any solutions for how to have the HTML package recognize inline CoffeeScript the same way it does JavaScript and use the CoffeeScript package for editing?

0 Likes

HTML package does not recognize CoffeeScript