简体   繁体   中英

Javascript major mode in Emacs

Which javascript major modes exist in Emacs, and what are their key-features?

js2-mode: a new JavaScript mode for Emacs


This is part of a larger project, in progress, to permit writing Emacs extensions in JavaScript instead of Emacs-Lisp.

  • Mx customize
  • Accurate syntax highlighting
  • Indentation
  • Code folding
  • Comment and string filling
  • Syntax errors
  • Strict warnings
  • jsdoc highlighting

http://steve-yegge.blogspot.com/2008/03/js2-mode-new-javascript-mode-for-emacs.html

With some documentation.

I use Steve Yegge's js2-mode , and like it a lot. It's quite configurable, its indentation ideas match mine, and most impressively it has a full JavaScript parser in it, so it can alert me to syntax errors as I type (indispensable for little things like trailing commas in property lists that bork IE).

Espresso mode is supposed to be quite good as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM