Looking for a decent Javascript editor

As the title says, I'm looking for a decent Javascript editor. Indentation fixing is a must-have, since I'm working on a horribly written script that has the contents of thousands of lines in a single line, and indenting it by myself would take forever :banghead:
Any recommendations?

Thanks in advance :thumbsup:
Slick Edit has a code beautifiers which works with JavaScript. Though I have never tried it with JS, I have with C and it worked great.
To fix the existing code, you could try this Online Javascript Beautifier
http://jsbeautifier.org/
Thanks a lot man, it worked perfectly! :pray::pray::pray:

Indenting the whole 6246 lines of Javascript by myself could have taken me ages!

Original thread: https://assemblergames.com/threads/looking-for-a-decent-javascript-editor.24885/