Format Your JavaScript
Saturday September 5, 2009
Nicely formatted JavaScript is easier to read
If you have copied a JavaScript that comes from a script library or have one that you wrote that is not nicely formatted with consistent indentation and statements on separate lines then that JavaScript may be hard to read when you are trying to work out what it does.
JavaScript is much easier to read with consistent indentation and using colours to indicate the keywords, objects, text strings, and comments makes it even easier to read. Not everyone uses an editor that knows how to colour content of your JavaScript though and few editors can reformat the script for you.
The solution is to paste your JavaScript into the format form. A separate page will be opened displaying your JavaScript all nicely laid out and colour coded for you.
Format Your Javascript


No comments yet. Leave a Comment