Options can also be specified on the query string of the page address.
Use the query string parameter scrolldown to execute on page load and scroll to the bottom of the parse table.
Output Key
A colorful visual hint by lexer type:
White for markdown lexer
Red for markup lexer: (XML/HTML like syntax)
Green for script lexer: (C-like syntax)
Blue for style lexer: (CSS/SCSS/LESS like syntax)
Output
Options
Sort Attributes
Name
attribute_sort
Type
boolean
Default
false
Usage
options.lexer_options.markup.attribute_sort
Description
Alphanumerically sort markup attributes. Sorting is ignored if a given tag contains an attribute with instructions for a different language such as a template scheme, child markup tag, or start of a code structure.
Name
attribute_sort_list
Type
string
Default
Usage
options.lexer_options.markup.attribute_sort_list
Description
A comma separated list of attribute names. Attributes will be sorted according to this list and then alphanumerically. This option requires 'attribute_sort' have a value of true.
Correct
Name
correct
Type
boolean
Default
false
Usage
options.correct
Description
Automatically correct sloppiness in code. If false missing syntax will be included starting with 'x', such as 'x;' for missing simicolons.
CRLF
Name
crlf
Type
boolean
Default
false
Usage
options.crlf
Description
If line termination should be crlf (Windows) otherwise line termination is lf (Unix).
Name
end_comma
Type
string
Default
none
Usage
options.lexer_options.script.end_comma
Description
Whether terminal commas in objects and arrays should be added or eliminated. • none — Ignores this option.
Name
format
Type
string
Default
arrays
Usage
options.format
Description
Defines the output format of the parser. • html — Renders the output into an HTML table. This option value is only available in this demo tool.
Name
language
Type
string
Default
auto
Usage
options.language
Description
The language to parse. The value auto will result in language auto detection.
Name
lexer
Type
string
Default
auto
Usage
options.lexer
Description
The lexer used to perform the parsing. The value auto will result in language auto detection.
No Lead Zero
Name
no_lead_zero
Type
boolean
Default
false
Usage
options.lexer_options.style.no_lead_zero
Description
Whether the zero to the left of the decimal point should be removed from numbers between 0 and 1.
If quote characters should be converted from single quotes to double quotes or the opposite. This option does take into account escaped quote characters. • none — Ignores this option.
Tag Merge
Name
tag_merge
Type
boolean
Default
false
Usage
options.lexer_options.markup.tag_merge
Description
If adjacent start and end tags in markup should be merged into one singleton tag.
Tag Sort
Name
tag_sort
Type
boolean
Default
false
Usage
options.lexer_options.markup.tag_sort
Description
Whether markup tags should be alphabetically sorted amonst their siblings.
Tag Unformatted
Name
unformatted
Type
boolean
Default
false
Usage
options.lexer_options.markup.unformatted
Description
If tags in markup code should be preserved from any manner of alteration.
Name
variable_list
Type
string
Default
none
Usage
options.lexer_options.script.variable_list
Description
Whether consecutive variable declarations should be separate statements or a comma separated list. Use of this option respects the different types of declarations: var, const, let. • none — Ignores this option.
Name
wrap
Type
number
Default
0
Usage
options.wrap
Description
The character distance in which to apply word wrap. A value of less than 1 eliminates word wrap.