Are there any JavaScript editors that can validate JavaScript syntax on the fly? Things like missing brackets, etc.
Are there any JavaScript editors that can validate JavaScript syntax on the fly? Things
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Personally, I like to use
emacswithflymake, which can useSpidermonkey,JsLintorRhinoto do the validation. This does the sort of on the fly syntax checking I think you are after. If you want a liberal validation, you might want to useSpidermonkeyas it is the execution engine from firefox, so it will reject anything firefox rejects. If you want something a little stricter, Crockford’sJsLintenforces good style.(source: mnemonikk.org)
Emacs is not for everyone however. If you prefer something point-and-click, you might want to check out IntelliJ’s
IDEA. It can do on the fly syntax checking, along with a raft of other features. Sadly, javascript support is not available in the free version.(source: jetbrains.com)
A free alternative to IntelliJ is
Netbeans, which purports to offer the same javascript functionality baked into the core. I don’t have experience with it, but it is free, open source, and reputedly improving in recent versionsnetbean's javascript syntax highlighting http://netbeans.org/images_www/articles/61/ide/javascript/background_parser.png
If you’re a Windows or ASP.NET type developer you might be more interested in Microsoft Visual Web Developer Express 2010. It supports this features, and probably has better support for ASP.NET development than the other tools I’ve mentioned.