\
You are here:About>Computing & Technology>JavaScript> Script Makers>        Javascript Format and Colour     
About.comJavaScript

Javascript Formatter

clr gif
Join the Discussion

Questions? Comments?

Related Articles

Javascript Compressor

Does your Javascript code look a mess? Are you trying to work out how someone else's Javascript does what it does but it is so messy you can't read it?

If you paste a copy of the script into the form below and then select the "Clean" button then a nicely formatted copy will be displayed in a separate window that uses consistent indenting and has all of the reserved words, predefined objects, comments, and literals all colour coded to make the code easier to follow.

Note that the form is only expecting to process Javascript so if you paste anything else (eg. HTML not enclosed within document.write statements) then you will not get any meaningful results.


From Stephen Chapman,
Your Guide to JavaScript.
FREE Newsletter. Sign Up Now!
Newsletters & RSSEmail to a friendSubmit to Digg
 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.