Source

vnu / README.markdown

Diff from to

README.markdown

 
 Two pre-built jar files are provided here: `vnu.jar` and `vnu-fast-client.jar`.
 
-You can use the `vnu.jar` to validate a single document by doing this:
+You can use `vnu.jar` to validate a single document by doing this:
 
     java -jar vnu.jar FILE.html
 
 ### Configuration
 
 You can configure the validator behavior using Java system properties.
+
+For example, you can suppress warning-level validation messages and only
+show error-level ones by setting the value of the
+`nu.validator.client.level` system property to `error`, like this:
+
+   java -Dnu.validator.client.level=error -jar vnu.jar FILE.html
+
 These properties map to the Validator.nu common input parameters documented
 at
 [http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters][1].
 
     Specifies the hostname of the validator for the client to connect to.
 
-    default: 127.0.0.1
+    default: "127.0.0.1"
 
 #### nu.validator.client.port
 
     Specifies the hostname of the validator for the client to connect to.
 
-    default: 8888
+    default: "8888"
 
     example: java -Dnu.validator.client.port=8080 -jar vnu.jar FILE.html
 
 #### nu.validator.client.level
 
     Specifies the severity level of validation messages to report; to
-    suppress warning-level messages, set this to error.
+    suppress warning-level messages, set this to "error".
 
     default: [unset]
 
-    possible values: error
+    possible values: "error"
 
     example: java -Dnu.validator.client.level=error -jar vnu.jar FILE.html
 
 
     Specifies which parser to use.
 
-    default: html or (for *.xhtml files) xml
+    default: "html"; or, for *.xhtml input files, "xml"
 
     possible values: see http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#parser
 
 
     Specifies the content-type of the input document.
 
-    default: text/html or (for *.xhtml files) application/xhtml+xml
+    default: "text/html"; or, for *.xhtml files, "application/xhtml+xml"
 
 #### nu.validator.client.out
 
     Specifies the output format for validation messages.
 
-    default: gnu
+    default: "gnu"
 
     possible values: see http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#out]
 
     Specifies whether ASCII quotation marks are substituted for Unicode
     smart quoation marks in validation messages.
 
-    default: yes
+    default: "yes"
 
-    possible values: yes or no
+    possible values: "yes" or "no"