JavaScript Indentator

Demo from project js-indentator

Please paste your JavaScript code in the first text area and press "do it". The indenter will produce some different styles of indentation versions of your code

Original Code

Configuration

Read Some Notes

You can edit this configuration JSON and "do it again".

Note that properties like 'tab' and 'newline' are supported by all the indentators, while properties like VAR, VAR_COMMA, FUNCTION, etc are only supported by the 'variable1' style

You can see a list of al supported variable properties of this style and default values in the sources.

Nice Style 2

Clean Style - Minification

Nice Style 1

Nice Style 1

jsdocgenerator1