JavaScript code formatting tool (essential for JS Code Analysis)

Source: Internet
Author: User
Promotion and so on control the Javascript file displayed by the ad and the Javascript in the source file of the generated ad unit Code All are processed by JS compressors and obfuscators. To reduce the size of these files.

When we need to analyze these files, we need a tool to format JavaScript code for easy reading.

Here I will introduce JavaScript code improver as a free tool. He is very simple. Only the function of formatting code is enough. Supports switching between Chinese and English interfaces.

Download:JavaScript code Improver

JavaScript code Improver

Cannot read your own JavaScript code?
Cannot find that closing brace?
Lost all hope of making head or tail of the JavaScript code inherited from your collegou?
Or just curious of how JavaScript works?

Try JavaScript code improver!

With JavaScript code improver you are just one click away from making any JavaScript clear, easily comprehensible and ready for printing thus saving the time you spend on editing, debugging and modifying it. forget about all problems resulting from those illegible javascripts!

Compare how the same piece of code looks before:

 < Script Language =  "JavaScript"  > VaR I =  0  , S =  ""  , K=  0  ; Function foo (  )  {  For  ( J =  0  ; J <  10  ; J ++  )  { For  ( I =  0  ; I <  10  ; I ++  )  { S =  "String1"  ; K = Math. Floor ( Math. Random  (  )  * 10 )  ;  }  For  ( I =  20  ; I >  9  ; I -- )  { S =  "String2"  ; K = I ;  }  }  }  </ Script > 

And after processing by JavaScript code improver:

 < Script Language =  "JavaScript" >  VaR I =   0  , S =   ""  , K =   0  ;  Function Foo (  )  {      For ( J =   0  ; J <   10  ; J ++  )      {          For  ( I =   0  ; I <   10 ; I ++  )          { S =   "String1"  ; K = Math. Floor  ( Math. Random  (  )  * 10 )  ;         }          For  ( I =   20  ; I >   9  ; I --  )          { S =   "String2"  ; K = I;          }      }  }  </ Script > 

You can see the difference, can't you?

The program's flexible settings let you structure the code in any way you like. so, even if your JavaScript code is pretty comprehensible, you can just give it more professional or just more pleasant feel.

    • Impact of Google Adsense's new click mode on statistical tools
    • Adsense code analysis old version show_ads.js

One response to "JavaScript code formatting tool (essential for JS Code Analysis )"
    1. Roboter's blog» JS compression and decompression toolsSays:
      September 5 th, 2008 at pm

      […] JavaScript code improver, which can restore the compressed JS file. The website does not seem to be opened. You can download it at http://www.cnzzr.cn/2007/11/javascript-code-improver.html. […]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.