Clean up JavaScript and HTML code

?Screen Shot 2013-06-18 at 09.48.46As part of the new a new internal website I have recently started working with SharePoint 2013 in the cloud. This is proving to be an extremely powerful platform for development, however working with some of the existing JavaScript files presents a common issue. Upon downloading the file or viewing in Safari on my Mac the code is often garbled up, or displayed all on one line.

In order to get round this, I have located a pretty handy tool online called the JavaScript Beautifier, this is capable of formatting JavaScript, HTML, JSON and JSONP into a much cleaner/easier to read format.

Although I do not normally use automated code formatting tools, this one seems very powerful and offers a lot of control over its actions.

I am now on the hunt for others, especially for ASPX, which often gets chewed up during the download process.

Mike Hudson

Mike Hudson is a Lead Cyber Security Analyst living and working in Kingston Upon Hull. With extensive experience in Microsoft and Apple technologies, ranging from desktop OS’s to Server OS’s and hardware. By day working as part of an infrastructure team, and by night ridding the world of IT issues through blog posts..

%d bloggers like this: