Lately in my day job I've been troubleshooting ASP.NET pages that use server controls that lean heavily on Javascript. The kind of Javascript that is stripped and streamlined with zero whitespace or carriage returns. So to make any sense of it at all I needed a beautifier:
function layoutmouseup() { if ((moving != 0) && (target != 0)) { rearrange(moving, movingcol... var targ = target; if (movingcol == targetcol ... { targ = targ - 1; } displaylayout(); } moving = 0; movingcol = 0; target = 0; targetcol = 0; }
After Googling for “javascript beautifier free” I came up with only payware solutions that have more features than I wanted. I just want a simple way to put crappy Javascript in, and get back stuff that looks reminiscent to the C# I write in Visual Studio. So I took a half hour and wrote a free beautifier:
http://couponmeister.com/beautify.aspx
Source code is available from the link if you'd like to extend it. Will work with Java, C++, and C# as well.
Enjoy!
UPDATE: A more recent post about the beautifier is available here.
posted @ Saturday, February 25, 2006 7:09 AM
Title:
Name:
Email: Not Displayed
Website:
Comment:
Please add 4 and 2 and type the answer here: