8

Is there a mode out there that has syntax higlighting (and possibly more, but this is the least I want) for a more recent ecmascript? I'm especially interested in one that has support for template strings and generator functions.

This should render properly:

co(function*(){
   var a = yield request(`some.domain/${variable}`)
   return a;
}
11

js2-mode supports all of this. It is available on GNU ELPA and MELPA for easy access.

  • 1
    Thanks! I was using js3-mode and js-mode and somehow thought js3 is a fork of js2. – Patrick J. S. Nov 18 '15 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.