11<!doctype html> < html > < head > < meta charset =utf-8 >
2- < title > How to use the validator - validator.github.io </ title > </ head >
2+ < title > How to use the vnu.jar validator</ title > </ head >
33< body >
44 < h1 > How to use the vnu.jar validator</ h1 >
55
6- < p > The < code > vnu.jar</ code > validator is a packaged standalone
6+ < p > The < code > vnu.jar</ code > application is a portable standalone
77 version of the
88 < a href ="http://about.validator.nu/ "> validator.nu</ a >
9- code . The
9+ validator . The
1010 < a href ="https://github.com/validator/validator.github.io/releases "
1111 > latest version</ a >
1212 is available from the
1313 < a href ="https://github.com/validator/validator.github.io/ "
1414 > validator area at github</ a > .
1515 The following are instructions on how to use it to validate documents.
1616
17+ < p class =note > < b > Note:</ b > In the instructions, replace
18+ < var > "~/vnu.jar"</ var > with the actual path to the < code > vnu.jar</ code >
19+ file on your system.
20+
1721< p class =links >
1822Command-line:
1923< a href ="#command-line-usage "> usage</ a > ·
@@ -32,26 +36,26 @@ <h2>Command-line usage</h2>
3236 command-line validation of HTML documents by invoking it like this:
3337
3438< pre >
35- java -jar vnu.jar [--html] [--entities] [--schema URL]
39+ java -jar ~/ vnu.jar [--help] [--html] [--entities] [--schema URL]
3640 [--format gnu|xml|json|text] [--verbose] [--version] FILES
3741</ pre >
3842
3943 < p > To validate one or more documents from the command line:
4044
4145< pre >
42- java -jar vnu.jar FILE.html FILE2.html FILE3.HTML FILE4.html...
46+ java -jar ~/ vnu.jar FILE.html FILE2.html FILE3.HTML FILE4.html...
4347</ pre >
4448
4549 < p > To validate all HTML documents in a particular directory:
4650
4751< pre >
48- java -jar vnu.jar some-directory-name/
52+ java -jar ~/ vnu.jar some-directory-name/
4953</ pre >
5054
5155 < p > To validate a Web document:
5256
5357< pre >
54- java -jar vnu.jar http://example.com/foo
58+ java -jar ~/ vnu.jar http://example.com/foo
5559</ pre >
5660
5761 < h3 id ="command-line-options "> Command-line options</ h3 >
@@ -121,7 +125,7 @@ <h2>Web-based usage</h2>
121125 and invoke < code > vnu.jar</ code > like this:
122126
123127< pre >
124- java -cp vnu.jar < span class =java-class > nu.validator.servlet.Main</ span > < span class =arg > 8888</ span >
128+ java -cp ~/ vnu.jar < span class =java-class > nu.validator.servlet.Main</ span > < span class =arg > 8888</ span >
125129</ pre >
126130
127131 < p > Then open
@@ -145,22 +149,22 @@ <h2>HTTP client (for fast command-line validation)</h2>
145149
146150 < li > Open a new terminal window and start up the validator as an HTTP
147151 service, as described in the
148- < a href ="#web-based-usage "> Web-based usage</ a > section.
152+ " < a href ="#web-based-usage "> Web-based usage</ a > " section.
149153
150154 < li > Open a second new terminal window and invoke < code > vnu.jar</ code >
151155 like this:
152156
153157< pre >
154- java -cp vnu.jar < span class =java-class > nu.validator.client.HttpClient</ span > FILE.html...
158+ java -cp ~/ vnu.jar < span class =java-class > nu.validator.client.HttpClient</ span > FILE.html...
155159</ pre >
156160 </ ol >
157161
158162 < h3 id ="http-client-options "> HTTP client options</ h3 >
159163
160- < p > When using the < code > vnu.jar</ code > for sending documents to a
164+ < p > When using < code > vnu.jar</ code > for sending documents to a
161165 locally-running instance of the validator HTTP service for validation,
162- you can set Java system properties to control configuration options for
163- the validation behavior.
166+ you can set Java system properties to control configuration options for the
167+ validation behavior.
164168
165169 < p > For example, you can suppress warning-level validation messages and only
166170 show error-level ones by setting the value of the
@@ -169,7 +173,7 @@ <h3 id="http-client-options">HTTP client options</h3>
169173
170174< pre >
171175 java < span class =java-property > -Dnu.validator.client.level=error</ span > \
172- -cp vnu.jar < span class =java-class > nu.validator.client.HttpClient</ span > FILE.html...
176+ -cp ~/ vnu.jar < span class =java-class > nu.validator.client.HttpClient</ span > FILE.html...
173177</ pre >
174178
175179 < p > Most of the properties listed below map to the validator.nu common input
@@ -184,17 +188,15 @@ <h4 id="nuvalidatorclienthost">nu.validator.client.host</h4>
184188default: < span class =option-value > "127.0.0.1"</ span >
185189</ pre >
186190
187-
188191< h4 id ="nuvalidatorclientport "> nu.validator.client.port</ h4 >
189192< pre >
190193Specifies the hostname of the validator for the client to connect to.
191194
192195default: < span class =option-value > "8888"</ span >
193196
194- example: java -Dnu.validator.client.port=8080 -jar vnu.jar FILE.html
197+ example: java -Dnu.validator.client.port=8080 -jar ~/ vnu.jar FILE.html
195198</ pre >
196199
197-
198200< h4 id ="nuvalidatorclientlevel "> nu.validator.client.level</ h4 >
199201< pre >
200202Specifies the severity level of validation messages to report; to
@@ -205,10 +207,9 @@ <h4 id="nuvalidatorclientlevel">nu.validator.client.level</h4>
205207
206208possible values: < span class =option-value > "error"</ span >
207209
208- example: java -Dnu.validator.client.level=error -jar vnu.jar FILE.html
210+ example: java -Dnu.validator.client.level=error -jar ~/ vnu.jar FILE.html
209211</ pre >
210212
211-
212213< h4 id ="nuvalidatorclientparser "> nu.validator.client.parser</ h4 >
213214< pre >
214215Specifies which parser to use.
@@ -218,23 +219,20 @@ <h4 id="nuvalidatorclientparser">nu.validator.client.parser</h4>
218219possible values: see < a href ="http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#parser "> http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#parser</ a >
219220</ pre >
220221
221-
222222< h4 id ="nuvalidatorclientcharset "> nu.validator.client.charset</ h4 >
223223< pre >
224224Specifies the encoding of the input document.
225225
226226default: [unset]
227227</ pre >
228228
229-
230229< h4 id ="nuvalidatorclientcontent-type "> nu.validator.client.content-type</ h4 >
231230< pre >
232231Specifies the content-type of the input document.
233232
234233default: < span class =option-value > "text/html"</ span > ; or, for *.xhtml files, < span class =option-value > "application/xhtml+xml"</ span >
235234</ pre >
236235
237-
238236< h4 id ="nuvalidatorclientout "> nu.validator.client.out</ h4 >
239237< pre >
240238Specifies the output format for validation messages.
@@ -319,7 +317,7 @@ <h4 id="nuvalidatorclientasciiquotes">nu.validator.client.asciiquotes</h4>
319317 background-color : white;
320318 color : black;
321319}
322- .set {
320+ .set , . note {
323321 background-color : ivory;
324322 padding : 16px ;
325323 padding-top : 4px ;
0 commit comments