
tidy [options...] [file...] [options...] [file...]
Utility to clean up and pretty print HTML/XHTML/XML.

This is modern HTML Tidy version 5.2.0.

Command Line Arguments for HTML Tidy for Linux/x86:
===================================================

File manipulation
-----------------
 -output <file>, -o <file> write output to the specified <file>                
 -config <file>            set configuration options from the specified <file> 
 -file <file>, -f <file>   write errors and warnings to the specified <file>   
 -modify, -m               modify the original input files                     

Processing directives
---------------------
 -indent, -i               indent element content                              
 -wrap <column>, -w        wrap text at the specified <column>. 0 is assumed if
 <column>                  <column> is missing. When this option is omitted,   
                           the default of the configuration option 'wrap'      
                           applies.                                            
 -upper, -u                force tags to upper case                            
 -clean, -c                replace FONT, NOBR and CENTER tags with CSS         
 -bare, -b                 strip out smart quotes and em dashes, etc.          
 -gdoc, -g                 produce clean version of html exported by Google    
                           Docs                                                
 -numeric, -n              output numeric rather than named entities           
 -errors, -e               show only errors and warnings                       
 -quiet, -q                suppress nonessential output                        
 -omit                     omit optional start tags and end tags               
 -xml                      specify the input is well formed XML                
 -asxml, -asxhtml          convert HTML to well formed XHTML                   
 -ashtml                   force XHTML to well formed HTML                     
 -access <level>           do additional accessibility checks (<level> = 0, 1, 
                           2, 3). 0 is assumed if <level> is missing.          

Character encodings
-------------------
 -raw                      output values above 127 without conversion to       
                           entities                                            
 -ascii                    use ISO-8859-1 for input, US-ASCII for output       
 -latin0                   use ISO-8859-15 for input, US-ASCII for output      
 -latin1                   use ISO-8859-1 for both input and output            
 -iso2022                  use ISO-2022 for both input and output              
 -utf8                     use UTF-8 for both input and output                 
 -mac                      use MacRoman for input, US-ASCII for output         
 -win1252                  use Windows-1252 for input, US-ASCII for output     
 -ibm858                   use IBM-858 (CP850+Euro) for input, US-ASCII for    
                           output                                              
 -utf16le                  use UTF-16LE for both input and output              
 -utf16be                  use UTF-16BE for both input and output              
 -utf16                    use UTF-16 for both input and output                
 -big5                     use Big5 for both input and output                  
 -shiftjis                 use Shift_JIS for both input and output             

Miscellaneous
-------------
 -version, -v              show the version of Tidy                            
 -help, -h, -?             list the command line options                       
 -help-config              list all configuration options                      
 -show-config              list the current configuration settings             
 -help-option <option>     show a description of the <option>                  
 -language <lang>          set Tidy's output language to <lang>. Specify       
                           '-language help' for more help. Use before          
                           output-causing arguments to ensure the language     
                           takes effect, e.g.,`tidy -lang es -lang help`.      

XML
---
 -xml-help                 list the command line options in XML format         
 -xml-config               list all configuration options in XML format        
 -xml-strings              output all of Tidy's strings in XML format          
 -xml-error-strings        output error constants and strings in XML format    
 -xml-options-strings      output option descriptions in XML format            


Tidy Configuration Options
==========================
Use Tidy's configuration options as command line arguments in the form
of "--some-option <value>", for example, "--indent-with-tabs yes".

For a list of all configuration options, use "-help-config" or refer
to the man page (if your OS has one).

If your environment has an $HTML_TIDY variable set point to a Tidy 
configuration file then Tidy will attempt to use it.

On some platforms Tidy will also attempt to use a configuration specified 
in /etc/tidy.conf or ~/.tidy.conf.

Other
=====
Input/Output default to stdin/stdout respectively.

Single letter options apart from -f may be combined
as in:  tidy -f errs.txt -imu foo.html

Information
===========
For more information about HTML Tidy, see
  http://www.html-tidy.org/

For more information on HTML, see the following:

  HTML: Edition for Web Authors (the latest HTML specification)
  http://dev.w3.org/html5/spec-author-view

  HTML: The Markup Language (an HTML language reference)
  http://dev.w3.org/html5/markup/

File bug reports at https://github.com/htacg/tidy-html5/issues/
or send questions and comments to public-htacg@w3.org.

Validate your HTML documents using the W3C Nu Markup Validator:
  http://validator.w3.org/nu/

