Sublime Forum

Html code to embedded with coffeescript

#1

hi friends,
I am trying to run the below code which is html embedded with coffeescript. It is not giving output. Help me out friends. and should i need to install coffeescript plug in :slight_smile:

Ashwin M

0 Likes

#2

Sublime Text does not seems to run html code, open it with your browser. What plugin are you using for it?

You can create a sublime-build file to launch the browser within the page. It should be done around here before IIRC.

0 Likes

#3

Do i need to install coffeescript plug-in in browser.I’m using chrome as my default browser… Will it run in sublime?

0 Likes

#4

https://www.google.com/search?q=sublime+build+open+browser

0 Likes

#5

This forum is meant for Sublime Text ideas and feature requests.

CoffeeScript is not meant* to be run in the browser, you need to transpile it into JavaScript first. You can transpile your code using the build tools of the Better CoffeeScript package, but that does not work with inline code.

* you actually can run CoffeeScript in the browser, but the disadvantages (unofficial and possibly outdated hack, overhead) outweigh the benefits by far!

1 Like