Friday, September 26, 2008

javascripts reverse compress, make it look more readable - beautifier and jslint

http://elfz.laacz.lv/beautify/

This script was intended to explore ugly javascripts, e.g compacted in one line, or just make scripts look more readable.

Now you can try to paste in code with <script> tags and (well-formed) HTML as well - say thanks to Nochum and his experimental HTML beautifier!

Thanks to Vital, there is now a pure javascript version of beautifier. It's now the only one: php version is not supported anymore.

You can also always fetch the latest versions from subversion repository at svn://edev.uk.to/beautify.

If you're writing javascript, JSLint is a really fine piece of software, too. You should at least understand what and why it says about your code — to be a better person. Even if it hurts your feelings.

In case of glitches you may wish to tell me about them—elfz[at]laacz[dot]lv

   Run tests


Latest commits from svn://edev.uk.to/beautify/:
------------------------------------------------------------------------
r62 | nochum | 2008-06-12 23:50:45 +0300 (Thu, 12 Jun 2008) | 1 line
Fixed conditional comment regression.
------------------------------------------------------------------------
r61 | einars | 2008-06-12 17:19:34 +0300 (Thu, 12 Jun 2008) | 2 lines
"Indent with tab character" was broken for the web beautifier.
------------------------------------------------------------------------
r60 | einars | 2008-06-10 14:49:11 +0300 (Tue, 10 Jun 2008) | 4 lines
- optional indent_level parameter for js_beautify
- updated Nochum's beautifier (he can do it for himself, but he won't, for some reason)
------------------------------------------------------------------------
r59 | einars | 2008-06-07 07:50:59 +0300 (Sat, 07 Jun 2008) | 1 line
And another test.
------------------------------------------------------------------------

No comments: