Paste code into box one and press Convert. If you are lucky the other 4 boxes will be filled with the code in different styles. Compact ought to be as compact as the code will go removing white space, comments and superfluous braces and semicolons. Tidy is not that tidy but in throry you could put compacted code in box one and get something easier to read in this box.
...and things I'd like to have done and may do one day. The program does not read all javascript keywords, only ones I've needed for my test script and a few other test scripts I used along the way. The tidy code makes no attempt to preserve comments. The program makes no attempt to rename variables. The code is poorly documented. The tidy output is no where near as tidy as I'd like.
The main part of the code JavaScript.js will run standalone in windows and has the ability to run tests on a batch of files.
| Source | Tokens | Parse tree | Tidy | Compact |
|---|---|---|---|---|