@@ -20,41 +20,44 @@ <h1>How to use the vnu.jar validator</h1>
20
20
21
21
< p class =links >
22
22
< a href ="#command-line-usage "> Usage</ a > ·
23
- < a href ="#command-line-options "> Pptions </ a >
23
+ < a href ="#command-line-options "> Options </ a >
24
24
25
25
< div class =set >
26
26
< section id =command-line-usage >
27
27
< h2 > Command-line usage</ h2 >
28
28
29
- < p > You can use the < code > vnu.jar</ code > validator as an executable for
30
- command-line validation of HTML documents by invoking it like this:
31
-
29
+ < p > You can use the < code > vnu.jar</ code > validator as an executable for
30
+ command-line validation of HTML documents by invoking it like this:
32
31
< pre >
33
32
java -jar ~/vnu.jar [--help] [--html] [--entities] [--schema URL]
34
33
[--format gnu|xml|json|text] [--verbose] [--version] FILES
35
34
</ pre >
36
35
37
- < p > To validate one or more documents from the command line:
38
-
36
+ < p > To validate one or more documents from the command line:
39
37
< pre >
40
38
java -jar ~/vnu.jar FILE.html FILE2.html FILE3.HTML FILE4.html...
41
39
</ pre >
42
40
43
- < p > To validate all HTML documents in a particular directory:
44
-
41
+ < p > To validate all HTML documents in a particular directory:
45
42
< pre >
46
43
java -jar ~/vnu.jar some-directory-name/
47
44
</ pre >
48
45
49
- < p > To validate a Web document:
50
-
46
+ < p > To validate a Web document:
51
47
< pre >
52
48
java -jar ~/vnu.jar http://example.com/foo
53
49
</ pre >
54
50
55
- < h3 id ="command-line-options "> Command-line options</ h3 >
56
- < p > When used from the command line as described in this section, the
57
- < code > vnu.jar</ code > executable provides the following options:
51
+ < p > To validate from standard input:
52
+ < pre >
53
+ java -jar ~/vnu.jar -
54
+
55
+ echo '<!doctype html> < title > test< title > ...' | java -jar ~/vnu.jar -
56
+ </ pre >
57
+
58
+ < h3 id ="command-line-options "> Command-line options</ h3 >
59
+ < p > When used from the command line as described in this section, the
60
+ < code > vnu.jar</ code > executable provides the following options:
58
61
59
62
< h4 id ="html "> --entities</ h4 >
60
63
< pre >
0 commit comments