Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·e3e0b0ef2eeebe819d542564f2573cb7·70468·debug·optional·htp-dbgsym_1.19-8_arm64.deb | 1 | ·e3e0b0ef2eeebe819d542564f2573cb7·70468·debug·optional·htp-dbgsym_1.19-8_arm64.deb |
2 | · | 2 | ·a9aef79f07669d37d40fca2e1b4ee9b2·116908·web·optional·htp_1.19-8_arm64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····3616·2020-06-14·23:21:19.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····3616·2020-06-14·23:21:19.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···113 | 3 | -rw-r--r--···0········0········0···113100·2020-06-14·23:21:19.000000·data.tar.xz |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | Package:·htp | 1 | Package:·htp |
2 | Version:·1.19-8 | 2 | Version:·1.19-8 |
3 | Architecture:·arm64 | 3 | Architecture:·arm64 |
4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> | 4 | Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com> |
5 | Installed-Size:·6 | 5 | Installed-Size:·654 |
6 | Depends:·libc6·(>=·2.38) | 6 | Depends:·libc6·(>=·2.38) |
7 | Section:·web | 7 | Section:·web |
8 | Priority:·optional | 8 | Priority:·optional |
9 | Homepage:·http://htp.sourceforge.net | 9 | Homepage:·http://htp.sourceforge.net |
10 | Description:·nice·HTML·pre-processor | 10 | Description:·nice·HTML·pre-processor |
11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool | 11 | ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool |
12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. | 12 | ·that·can·easily·be·integrated·into·the·HTML·design·process. |
Offset 1, 27 lines modified | Offset 1, 27 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/ |
4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····67896·2020-06-14·23:21:19.000000·./usr/bin/htp | 4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····67896·2020-06-14·23:21:19.000000·./usr/bin/htp |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/ |
6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ | 6 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/ |
7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/ |
8 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 8 | -rw-r--r--···0·root·········(0)·root·········(0)····12123·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html |
9 | -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp | 9 | -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp |
10 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 10 | -rw-r--r--···0·root·········(0)·root·········(0)····11050·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html |
11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp | 11 | -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp |
12 | -rw-r--r--···0·root·········(0)·root·········(0)·····9 | 12 | -rw-r--r--···0·root·········(0)·root·········(0)·····9465·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html |
13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp | 13 | -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp |
14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html | 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html |
15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp | 15 | -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp |
16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz |
17 | -rw-r--r--···0·root·········(0)·root·········(0)····10 | 17 | -rw-r--r--···0·root·········(0)·root·········(0)····10181·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html |
18 | -rw-r--r--···0·root·········(0)·root·········(0)······676·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.htp | 18 | -rw-r--r--···0·root·········(0)·root·········(0)······676·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.htp |
19 | -rw-r--r--···0·root·········(0)·root·········(0)····13083·2020-06-14·23:16:46.000000·./usr/share/doc/htp/copyright | 19 | -rw-r--r--···0·root·········(0)·root·········(0)····13083·2020-06-14·23:16:46.000000·./usr/share/doc/htp/copyright |
20 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 20 | -rw-r--r--···0·root·········(0)·root·········(0)····13603·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html |
21 | -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp | 21 | -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp |
22 | -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html | 22 | -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html |
23 | -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp | 23 | -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp |
24 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/ | 24 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/ |
25 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub | 25 | -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub |
26 | -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti | 26 | -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti |
27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt | 27 | -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt |
Offset 32, 64 lines modified | Offset 32, 64 lines modified | ||
32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp | 32 | -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp |
33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html | 33 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html |
34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp | 34 | -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp |
35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def | 35 | -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def |
36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html | 36 | -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html |
37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp | 37 | -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp |
38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt | 38 | -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt |
39 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 39 | -rw-r--r--···0·root·········(0)·root·········(0)····12768·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html |
40 | -rw-r--r--···0·root·········(0)·root·········(0)·····3702·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.htp | 40 | -rw-r--r--···0·root·········(0)·root·········(0)·····3702·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.htp |
41 | -rw-r--r--···0·root·········(0)·root·········(0)····14 | 41 | -rw-r--r--···0·root·········(0)·root·········(0)····14869·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html |
42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz | 42 | -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz |
43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html | 43 | -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html |
44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz | 44 | -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz |
45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl | 45 | -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl |
46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def | 46 | -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def |
47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt |
48 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 48 | -rw-r--r--···0·root·········(0)·root·········(0)····11908·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html |
49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp | 49 | -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp |
50 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 50 | -rw-r--r--···0·root·········(0)·root·········(0)····10160·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.html |
51 | -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp | 51 | -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp |
52 | -rw-r--r--···0·root·········(0)·root·········(0)·····8 | 52 | -rw-r--r--···0·root·········(0)·root·········(0)·····8898·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html |
53 | -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp | 53 | -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp |
54 | -rw-r--r--···0·root·········(0)·root·········(0)·····9 | 54 | -rw-r--r--···0·root·········(0)·root·········(0)·····9125·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html |
55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp | 55 | -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp |
56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html | 56 | -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html |
57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp | 57 | -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp |
58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html | 58 | -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html |
59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp | 59 | -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp |
60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html | 60 | -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html |
61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp | 61 | -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp |
62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html | 62 | -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html |
63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp | 63 | -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp |
64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def | 64 | -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def |
65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html | 65 | -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html |
66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp | 66 | -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp |
67 | -rw-r--r--···0·root·········(0)·root·········(0)····15 | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····15462·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.html |
68 | -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz | 68 | -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz |
69 | -rw-r--r--···0·root·········(0)·root·········(0)·····8471·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html | 69 | -rw-r--r--···0·root·········(0)·root·········(0)·····8471·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html |
70 | -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp | 70 | -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp |
71 | -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html | 71 | -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html |
72 | -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp | 72 | -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp |
73 | -rw-r--r--···0·root·········(0)·root·········(0)·····8 | 73 | -rw-r--r--···0·root·········(0)·root·········(0)·····8503·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html |
74 | -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp | 74 | -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp |
75 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/ | 75 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/ |
76 | -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png | 76 | -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png |
77 | -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png | 77 | -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png |
78 | -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png | 78 | -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png |
79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png | 79 | -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png |
80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png | 80 | -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png |
81 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png | 81 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png |
82 | -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png | 82 | -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png |
83 | -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png | 83 | -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png |
84 | -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png | 84 | -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png |
85 | -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl | 85 | -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl |
86 | -rw-r--r--···0·root·········(0)·root·········(0)·····8 | 86 | -rw-r--r--···0·root·········(0)·root·········(0)·····8416·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html |
87 | -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp | 87 | -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp |
88 | -rw-r--r--···0·root·········(0)·root·········(0)····102 | 88 | -rw-r--r--···0·root·········(0)·root·········(0)····10259·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html |
89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp | 89 | -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp |
90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css | 90 | -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css |
91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html | 91 | -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html |
92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz | 92 | -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz |
93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def | 93 | -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def |
94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ | 94 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/ |
95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti | 95 | -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti |
Offset 102, 23 lines modified | Offset 102, 23 lines modified | ||
102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp | 102 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp |
103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html | 103 | -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html |
104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp | 104 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp |
105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt |
106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt |
107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html | 107 | -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html |
108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp | 108 | -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp |
109 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 109 | -rw-r--r--···0·root·········(0)·root·········(0)·····8285·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html |
110 | -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp | 110 | -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp |
111 | -rw-r--r--···0·root·········(0)·root·········(0)···· | 111 | -rw-r--r--···0·root·········(0)·root·········(0)····10315·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html |
112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp | 112 | -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp |
113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html | 113 | -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html |
114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp | 114 | -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp |
115 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····14363·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html |
116 | -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp | 116 | -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp |
117 | -rw-r--r--···0·root·········(0)·root·········(0)·····9 | 117 | -rw-r--r--···0·root·········(0)·root·········(0)·····9486·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html |
118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp | 118 | -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp |
119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html | 119 | -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html |
120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp | 120 | -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp |
121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ | 121 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/ |
122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp |
123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ | 123 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/ |
124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ | 124 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/ |
Offset 114, 33 lines modified | Offset 114, 43 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href=" | 121 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class=[·...·truncated·by·diffoscope;·len:·193,·SHA:·c9296127c1048e9add99eea98a742f117680284988565206e4da718d7cbf6189·...·]<span·class="ebnf">]</span>></span><br> |
122 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>></span><br> | ||
123 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>></span><br> | ||
124 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
126 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
128 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
122 | <br> | 129 | <br> |
123 | </code></p> | 130 | </code></p> |
124 | <h2>synopsis</h2> | 131 | <h2>synopsis</h2> |
125 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A | 132 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A |
126 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. | 133 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. |
127 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the | 134 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the |
128 | filename·is·considered·in·all·comparisons. | 135 | filename·is·considered·in·all·comparisons. |
129 | <p> | 136 | <p> |
130 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT | 137 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT |
131 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to | 138 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to |
132 | be·overridden·on·specific·images·and·default·text·on·all·others. | 139 | be·overridden·on·specific·images·and·default·text·on·all·others. |
133 | <p> | 140 | <p> |
134 | For·example: | 141 | For·example: |
135 | ··<p><code> | 142 | ··<p><code> |
136 | <span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">BLOCK</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"blockname"</span>·<span·class="htp-attrib">[GLOBAL]</span>·<span·class="htp-attrib">[EXPAND]</span>></span><br> | ||
137 | text·block<br> | ||
138 | <span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/BLOCK</a>></span><br> | ||
139 | <br> | 143 | · ·a·is·expanded·at·time·1.<br> |
144 | · ·b·is·expanded·at·time·0.<br> | ||
145 | ·contents·of·a:· ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
146 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
147 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
148 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
149 | · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
140 | </code></p> | 150 | </code></p> |
141 | <p> | 151 | <p> |
142 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | 152 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT |
143 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not | 153 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not |
144 | changed. | 154 | changed. |
145 | <p> | 155 | <p> |
146 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, | 156 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, |
Offset 1, 36 lines modified | Offset 1, 52 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·A\x8AL\x8LT\x8TT\x8TE\x8EX\x8XT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·A\x8AL\x8LT\x8TT\x8TE\x8EX\x8XT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8 | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_.i_.l_.e·execute="command-line" |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················]> | ||
6 | ·_\x8 | 5 | ·_\x8L_.i_.c_.e_.n_.s_.e···················(output="filename"·|·redirect)·[noerror]> |
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·include="includefilename"·[parameters | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················...]> | ||
8 | ·HTP·Tags··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·name> | ||
9 | ·[>]·_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·size[·= | ||
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·time[·="format"·]> | ||
12 | · ···_\x8D_\x8E_\x8F···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·date[·="format"·]> | ||
13 | · ···_\x8F_\x8I_\x8L_\x8E··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·search="searchpath"> | ||
14 | · ···_\x8I_\x8F····················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·template="templatefilename"> | ||
15 | · ···_\x8I_\x8N_\x8C | ||
7 | · | 16 | · ···_.I_.M_.G···················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
8 | · | 17 | · ···_.I_.M_.A_.G_.E_.U_.R_.L··············A\x8AL\x8LT\x8TT\x8TE\x8EX\x8XT\x8T·declares·an·ALT·attribute·for·any·_\x8I_\x8M_\x8G·tag |
9 | · | 18 | · ···_.O_.P_.T···················with·a·SRC·matching·the·ALTTEXT·NAME.·Since |
10 | · ···_\x8 | 19 | · ···_\x8O_.U_.T_.P_.U_.T················relative·paths·can·be·used·to·point·to·the·same |
11 | · ···_\x8 | 20 | · ···_\x8Q_.U_.O_.T_.E·················image,·only·the·filename·is·considered·in·all |
12 | · ···_\x8 | 21 | · ···_\x8S_.E_.T···················comparisons. |
13 | · ···_\x8 | 22 | · ···_\x8U_.N_.D_.E_.F·················When·an·IMG·tag·with·a·matching·source·is |
14 | · ···_\x8 | 23 | · ···_\x8U_.N_.S_.E_.T·················encountered,·htp·will·add·an·ALT·attribute·only·if |
15 | · ···_\x8 | 24 | · ···_\x8U_.S_.E_.,_.·_.$················one·is·not·already·present.·This·allows·for·ALT |
16 | · ···_\x8 | 25 | · ···_\x8W_.H_.I_.L_.E·················text·to·be·overridden·on·specific·images·and |
17 | · ···_\x8 | 26 | · ···_\x8<_.!_.-_.-_.-·················default·text·on·all·others. |
18 | · | 27 | ·_.H_.i_.s_.t_.o_.r_.y···················For·example: |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8B_\x8L_\x8O_\x8C_\x8K·NAME="blockname"·[GLOBAL]·[EXPAND]> | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················text·block | ||
21 | · ···_\x8S_\x8E_\x8T···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8B_\x8L_\x8O_\x8C_\x8K> | ||
22 | · | 28 | ·_.W_.i_.s_.h_.·_.l_.i_.s_.t················· · ·a·is·expanded·at·time·1. |
29 | ·_\x8B_\x8u_\x8g_\x8s······················ · ·b·is·expanded·at·time·0. | ||
30 | ···························· ·contents·of·a:· ·a·is·expanded·at·time·<_\x8[ | ||
31 | ····························_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·time>. | ||
32 | ···························· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
33 | ···························· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at | ||
34 | ····························time·1. | ||
35 | ···························· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at | ||
36 | ····························time·2. | ||
37 | ···························· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the | ||
38 | ····························2nd·time·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·time>. | ||
23 | 39 | ····························An·ALTTEXT·tag·with·a·name·but·no·text·attribute | |
24 | 40 | ····························removes·any·ALT·mapping·for·this·image.·Successing | |
25 | 41 | ····························IMG·tags·with·a·matching·SRC·name·are·not·changed. | |
26 | 42 | ····························Since·this·is·useful·for·an·image·used·throughout·a | |
27 | 43 | ····························set·of·documents,·ALTTEXT·is·most·appropriate·in·an | |
28 | 44 | ····························_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e_\x8·_\x8f_\x8i_\x8l_\x8e·or·a·_\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8·_\x8f_\x8i_\x8l_\x8e. | |
29 | 45 | ····························In·addition·to·ALTTEXT,·htp·can·also·automatically | |
30 | ····························add·WIDTH·and·HEIGHT·attributes·to·_\x8I_\x8M_\x8G·tags. | 46 | ····························add·WIDTH·and·HEIGHT·attributes·to·_\x8I_\x8M_\x8G·tags. |
Offset 114, 24 lines modified | Offset 114, 23 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">|</span>·<span·class="htp-attrib">redirect</span><span·class="ebnf">)</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noerror</span><span·class="ebnf">]</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>></span><br> | ||
121 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"title"</span>></span><br> | ||
122 | · <span·class="htp-tag"><h1></span><span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>></span><span·class="htp-tag"></h1></span><br> | ||
123 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
124 | 123 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>></span><br> | |
125 | · <span·class="htp-tag"></p></span><br> | ||
126 | 124 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</[·...·truncated·by·diffoscope;·len:·541,·SHA:·34301a41526225ba2718c76ffa7bfae9b1f5fb5ad94034b97165531b7e91fcda·...·]>></span><br> | |
125 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
126 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
128 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
127 | <br> | 129 | <br> |
128 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
129 | · ·This·is·a·fancy·section.<br> | ||
130 | ·<span·class="htp-tag"></section></span><br> | ||
131 | </code></p> | 130 | </code></p> |
132 | <h2>synopsis</h2> | 131 | <h2>synopsis</h2> |
133 | <P> | 132 | <P> |
134 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which | 133 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which |
135 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be | 134 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be |
136 | multi-line·definitions. | 135 | multi-line·definitions. |
137 | </P> | 136 | </P> |
Offset 1, 43 lines modified | Offset 1, 45 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·B\x8BL\x8LO\x8OC\x8CK\x8K,\x8,·/\x8/B\x8BL\x8LO\x8OC\x8CK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·B\x8BL\x8LO\x8OC\x8CK\x8K,\x8,·/\x8/B\x8BL\x8LO\x8OC\x8CK\x8K·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_.[_.[_.r_.e_.f_.]_.]_.f_.i_.l_.e·execute="command-line" |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· · <h1><_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·title></h1> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· · <p·class="section"> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e····················· · · <_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·block> | ||
8 | · | 5 | ·_.L_.i_.c_.e_.n_.s_.e···················(output="filename"·|·redirect)·[noerror]> |
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·include="includefilename"·[parameters | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················...]> | ||
8 | ·HTP·Tags··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·name> | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T··············· | 9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············<_.[_.[_.r_.e_.f_.]_.]_.f_.i_.l_.e·[·name="filename"·]·size[·= |
10 | ·[>]·_\x8B_\x8L_\x8O_\x8C_\x8K | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F·············· ·<section·title="My·Section"> | ||
12 | · ···_\x8D_\x8E_\x8F··················· · ·This·is·a·fancy·section. | ||
13 | · | 10 | ·[>]·_.B_.L_.O_.C_.K·················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·time[·="format"·]> | ||
12 | · ···_\x8D_\x8E_\x8F···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·date[·="format"·]> | ||
13 | · ···_\x8F_\x8I_\x8L_\x8E··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·search="searchpath"> | ||
14 | · ···_\x8I_\x8F····················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·template="templatefilename"> | ||
15 | · ···_\x8I_\x8N_\x8C | ||
14 | · ···_\x8I_\x8 | 16 | · ···_\x8I_\x8M_.G···················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
15 | · ···_\x8I_\x8 | 17 | · ···_\x8I_\x8M_.A_.G_.E_.U_.R_.L··············B\x8BL\x8LO\x8OC\x8CK\x8K·a\x8an\x8nd\x8d·/\x8/B\x8BL\x8LO\x8OC\x8CK\x8K·are·used·to·create·block·macros, |
16 | · ···_\x8 | 18 | · ···_\x8O_.P_.T···················which·are·similar·in·use·to·_\x8S_\x8E_\x8T·macros,·but·can·be |
17 | · ···_\x8 | 19 | · ···_\x8O_.U_.T_.P_.U_.T················multi-line·definitions. |
18 | · ···_\x8 | 20 | · ···_\x8Q_.U_.O_.T_.E·················Any·text·and·formatting·may·be·set·inside·the |
19 | · ···_\x8 | 21 | · ···_\x8S_.E_.T···················block.·You·can·use·any·htp·or·user·defined·metatag |
20 | · ···_\x8 | 22 | · ···_\x8U_.N_.D_.E_.F·················including·_\x8F_\x8I_\x8L_\x8E_\x8·_\x8I_\x8N_\x8C_\x8L_\x8U_\x8D_\x8E.·The·metatags·won't·be |
21 | · ···_\x8S_.E_.T | 23 | · ···_\x8U_.N_.S_.E_.T·················expanded·before·the·block·is·USEd·except·if·you |
22 | · ···_\x8U_\x8 | 24 | · ···_\x8U_\x8S_.E_.,_.·_.$················give·the·_\x8E_\x8X_\x8P_\x8A_\x8N_\x8D·parameter. |
23 | · ···_\x8 | 25 | · ···_\x8W_.H_.I_.L_.E·················The·block·macro·is·dereferenced·(expanded)·with·the |
24 | · ···_\x8 | 26 | · ···_\x8<_.!_.-_.-_.-·················_\x8U_\x8S_\x8E_\x8·_\x8t_\x8a_\x8g_\x8·_\x8o_\x8r_\x8·_\x8t_\x8h_\x8e_\x8·_\x8'_\x8$_\x8'_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r.·See·the·notes·on·the |
25 | · | 27 | ·_.H_.i_.s_.t_.o_.r_.y···················_\x8U_\x8S_\x8E·tag·on·how·to·pass·parameters·to·a·block·macro. |
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | 28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t |
29 | ·_\x8B_\x8u_\x8g_\x8s | 29 | ·_\x8B_\x8u_\x8g_\x8s |
Offset 114, 30 lines modified | Offset 114, 40 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string"> | 121 | · ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"centered"</span>></span><br> |
122 | · ·<span·class="htp-tag"><p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | 123 | · ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> |
123 | <br> | 124 | <br> |
125 | · ·<span·class="htp-tag"><centered></span><br> | ||
126 | · ·This·text·is·centered.<br> | ||
124 | </code></p> | 127 | </code></p> |
125 | <h2>synopsis</h2> | 128 | <h2>synopsis</h2> |
126 | <strong>BLOCKDEF</strong>·creates·block·<A | 129 | <strong>BLOCKDEF</strong>·creates·block·<A |
127 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | 130 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it |
128 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | 131 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block |
129 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | 132 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and |
130 | </tagname>.··The·contents·of·this·block·are·automatically·stored | 133 | </tagname>.··The·contents·of·this·block·are·automatically·stored |
131 | in·the·block·macro·named·BLOCK. | 134 | in·the·block·macro·named·BLOCK. |
132 | <P>·For·example:</P> | 135 | <P>·For·example:</P> |
133 | ··<p><code> | 136 | ··<p><code> |
134 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">if</a>·<span·class="htp-attrib">disabled_because_xyz</span>></span><br> | ||
135 | ·...<br> | 137 | · ·<span·class="htp-tag"><EM></span>File·"<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>></span>"·last·updated·<span·class="htp[·...·truncated·by·diffoscope;·len:·372,·SHA:·6ab9ee4e7877d550b6589fab25b7e29bea7f0fd75fcdbbdac5ec5fd5e4b56a57·...·]<br> |
138 | lock·#2<br> | ||
139 | ...<br> | ||
140 | ]<br> | ||
141 | [<br> | ||
142 | <span·class="htp-tag"><ELSE></span><br> | ||
143 | · ·block·#3<br> | ||
144 | ]<br> | ||
136 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/ | 145 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> |
146 | <br> | ||
137 | </code></p> | 147 | </code></p> |
138 | <p> | 148 | <p> |
139 | All·block·metatags·have·the·implicit·option·<a | 149 | All·block·metatags·have·the·implicit·option·<a |
140 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 150 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
141 | of·the·block·before·the·definition·is·expanded. | 151 | of·the·block·before·the·definition·is·expanded. |
142 | </p> | 152 | </p> |
143 | <p> | 153 | <p> |
Offset 1, 36 lines modified | Offset 1, 46 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·B\x8BL\x8LO\x8OC\x8CK\x8KD\x8DE\x8EF\x8F,\x8,·/\x8/B\x8BL\x8LO\x8OC\x8CK\x8KD\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·B\x8BL\x8LO\x8OC\x8CK\x8KD\x8DE\x8EF\x8F,\x8,·/\x8/B\x8BL\x8LO\x8OC\x8CK\x8KD\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_.[_.[_.r_.e_.f_.]_.]_.d_.e_.f·name=" | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_.[_.[_.r_.e_.f_.]_.]_.d_.e_.f·name="centered"> |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· | 5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· · ·<p·align=center> |
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | 6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> |
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e | 7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e |
8 | ·HTP·Tags·················· · ·<centered> | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T··············· · ·This·text·is·centered. | ||
8 | · | 10 | · ···_.B_.L_.O_.C_.K·················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
9 | · | 11 | ·[>]·_.B_.L_.O_.C_.K_.D_.E_.F··············B\x8BL\x8LO\x8OC\x8CK\x8KD\x8DE\x8EF\x8F·creates·block·_\x8m_\x8e_\x8t_\x8a_\x8t_\x8a_\x8g_\x8s,·which·is·a·fancy |
10 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················way·of·saying·it·creates·new·block·tags.·A·block |
11 | · | 13 | · ···_.F_.I_.L_.E··················tag·is·a·tag·that·takes·a·whole·block·as·additional |
12 | · ···_\x8 | 14 | · ···_\x8I_.F····················parameter.·This·block·is·surrounded·by·<tagname> |
13 | · ···_\x8 | 15 | · ···_\x8I_.N_.C···················and·</tagname>.·The·contents·of·this·block·are |
14 | · ···_\x8I_\x8 | 16 | · ···_\x8I_\x8M_.G···················automatically·stored·in·the·block·macro·named |
15 | · ···_\x8I_\x8 | 17 | · ···_\x8I_\x8M_.A_.G_.E_.U_.R_.L··············BLOCK. |
16 | · ···_\x8 | 18 | · ···_\x8O_.P_.T···················For·example: |
17 | · ···_\x8 | 19 | · ···_\x8O_.U_.T_.P_.U_.T················ · ·<EM>File·"<_.[_.[_.r_.e_.f_.]_.]_.F_.I_.L_.E·NAME>"·last·updated·<_.[ |
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·TIME>,·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·DATE></EM> | ||
18 | · ···_\x8 | 21 | · ···_\x8S_.E_.T···················lock·#2 |
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F·················... | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T·················] | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················[ | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E·················<ELSE> | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-················· · ·block·#3 | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y···················] | ||
19 | · | 28 | ·_.W_.i_.s_.h_.·_.l_.i_.s_.t·················<_.[_.[_.r_.e_.f_.]_.]_./_.I_.F> |
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················All·block·metatags·have·the·implicit·option·_\x8E_\x8X_\x8P_\x8A_\x8N_\x8D, | ||
21 | · ···_\x8S_\x8E_\x8T···················which·tells·htp·to·expand·the·contents·of·the·block | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F·················before·the·definition·is·expanded. | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T·················A·more·thorough·discussion·and·more·elaborate | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················examples·are·discussed·in·the·_\x8m_\x8e_\x8t_\x8a_\x8t_\x8a_\x8g·section. | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | ||
29 | ·_\x8B_\x8u_\x8g_\x8s | 29 | ·_\x8B_\x8u_\x8g_\x8s |
30 | ····························All·block·metatags·have·the·implicit·option·_\x8E_\x8X_\x8P_\x8A_\x8N_\x8D, | ||
31 | ····························which·tells·htp·to·expand·the·contents·of·the·block | ||
32 | ····························before·the·definition·is·expanded. | ||
33 | ····························A·more·thorough·discussion·and·more·elaborate | ||
34 | ····························examples·are·discussed·in·the·_\x8m_\x8e_\x8t_\x8a_\x8t_\x8a_\x8g·section. | ||
Offset 114, 48 lines modified | Offset 114, 47 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-strin | 121 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bigfont"</span>></span><br> |
122 | · ·<span·class="htp-tag"><font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | 123 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> |
123 | <br> | 124 | <br> |
125 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"/bigfont"</span>></span><br> | ||
126 | · ·<span·class="htp-tag"></font></span><br> | ||
127 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
128 | <br> | ||
129 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
124 | </code></p> | 130 | </code></p> |
125 | <h2>synopsis</h2> | 131 | <h2>synopsis</h2> |
126 | <p> | 132 | <p> |
127 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful | 133 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful |
128 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. | 134 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. |
129 | Example: | 135 | Example: |
130 | </p> | 136 | </p> |
131 | ··<p><code> | 137 | ··<p><code> |
138 | · ·a·is·expanded·at·time·1.<br> | ||
139 | · ·b·is·expanded·at·time·0.<br> | ||
140 | ·contents·of·a:· ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
141 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
142 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
143 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
144 | · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
132 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"title"</span>></span><br> | ||
133 | · <span·class="htp-tag"><h1></span><span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>></span><span·class="htp-tag"></h1></span><br> | ||
134 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
135 | · · <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> | ||
136 | · <span·class="htp-tag"></p></span><br> | ||
137 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
138 | <br> | ||
139 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
140 | · ·This·is·a·fancy·section.<br> | ||
141 | ·<span·class="htp-tag"></section></span><br> | ||
142 | </code></p> | 145 | </code></p> |
143 | <p> | 146 | <p> |
144 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you | 147 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you |
145 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something | 148 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something |
146 | like·this: | 149 | like·this: |
147 | </p> | 150 | </p> |
148 | ··<p><code> | 151 | ··<p><code> |
152 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
149 | · ·<span·class="htp-tag"><<a·href=" | 153 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> |
150 | · ·<span·class="htp-tag"><p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>></span><br> | ||
151 | · ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
152 | <br> | ||
153 | · ·<span·class="htp-tag"><centered></span><br> | ||
154 | · ·This·text·is·centered.<br> | ||
155 | </code></p> | 154 | </code></p> |
156 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the | 155 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the |
157 | reason·why·you·don't·want·to·include·this·block</p> | 156 | reason·why·you·don't·want·to·include·this·block</p> |
158 | <p> | 157 | <p> |
159 | </td> | 158 | </td> |
160 | </tr> | 159 | </tr> |
161 | <tr> | 160 | <tr> |
Offset 1, 38 lines modified | Offset 1, 41 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·<\x8<!\x8!-\x8--\x8--\x8-·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·<\x8<!\x8!-\x8--\x8--\x8-·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_.[_.[_.r_.e_.f_.]_.]_.d_.e_.f·name=" | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· ·<_.[_.[_.r_.e_.f_.]_.]_.d_.e_.f·name="bigfont"> |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· | 5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· · ·<font·size="+4"> |
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | 6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> |
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e | 7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e |
8 | ·HTP·Tags·················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="/bigfont"> | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T··············· · ·</font> | ||
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F | ||
12 | · ···_\x8D_\x8E_\x8F··················· ·<bigfont>Some·large·text</bigfont> | ||
8 | · | 13 | · ···_.F_.I_.L_.E··················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
9 | · ···_\x8 | 14 | · ···_\x8I_.F····················This·is·a·simple·comment·that·is·not·included·in |
10 | · ···_\x8 | 15 | · ···_\x8I_.N_.C···················the·output.·This·is·useful·when·commenting |
11 | · ···_\x8 | 16 | · ···_\x8I_.M_.G···················metatags,·since·the·metatags·do·not·appear·the |
12 | · ···_\x8 | 17 | · ···_\x8I_.M_.A_.G_.E_.U_.R_.L··············output·either.·Example: |
13 | · ···_\x8F_\x8I_\x8L_\x8E·················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·name="section"·option="title"> | ||
14 | · ···_\x8I_\x8F···················· · <h1><_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·title></h1> | ||
15 | · ···_\x8 | 18 | · ···_\x8O_.P_.T··················· · ·a·is·expanded·at·time·1. |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ · ·b·is·expanded·at·time·0. | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E················· ·contents·of·a:· ·a·is·expanded·at·time·<_\x8[ | ||
16 | · ···_\x8 | 21 | · ···_\x8S_.E_.T···················_.[_.r_.e_.f_.]_.]_.u_.s_.e·time>. |
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T················· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················time·1. | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E················· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at | ||
26 | ·[>]·_\x8<_\x8!_\x8-_\x8-_\x8-·················time·2. | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y··················· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L·············· · </p> | ||
18 | · ···_\x8O_\x8P_\x8T··················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f> | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E················· ·<section·title="My·Section"> | ||
21 | · ···_\x8S_\x8E_\x8T··················· · ·This·is·a·fancy·section. | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· ·</section> | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T·················Note·that·these·comments·should·not·include·<·or·>, | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················that·is·you·should·not·use·it·to·comment·out·htp | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E·················code.·For·that·purpose·use·something·like·this: | ||
26 | ·[>]·_\x8<_\x8!_\x8-_\x8-_\x8-················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="centered"> | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y··················· · ·<p·align=center> | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t················· | 28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t·················2nd·time·<_.[_.[_.r_.e_.f_.]_.]_.u_.s_.e·time>. |
29 | ·_\x8B_\x8u_\x8g_\x8s | ||
30 | ···························· · ·<centered> | ||
31 | ······················· | 29 | ·_.B_.u_.g_.s······················Note·that·these·comments·should·not·include·<·or·>, |
30 | ····························that·is·you·should·not·use·it·to·comment·out·htp | ||
31 | ····························code.·For·that·purpose·use·something·like·this: | ||
32 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·INCLUDE="include.hti"·name="Jim | ||
33 | ····························Nelson"·email="jnelson@crl.com"> | ||
34 | ···························· · ·This·tag·will·fail:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·name> | ||
32 | ····························Make·sure·that·the·variable·is·never·defined·and | 35 | ····························Make·sure·that·the·variable·is·never·defined·and |
33 | ····························xyz·should·be·the·reason·why·you·don't·want·to | 36 | ····························xyz·should·be·the·reason·why·you·don't·want·to |
34 | ····························include·this·block | 37 | ····························include·this·block |
Offset 114, 62 lines modified | Offset 114, 62 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="comment"><!---·comment·---></span><br> | ||
122 | <br> | ||
121 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">if</a>·<span·class="htp-attrib">disabled_because_xyz</span>></span><br> | ||
122 | ·...<br> | ||
123 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/if</a>></span><br> | ||
124 | </code></p> | 123 | </code></p> |
125 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
126 | <p> | 125 | <p> |
127 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a | 126 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a |
128 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to | 127 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to |
129 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> | 128 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> |
130 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. | 129 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. |
131 | For·example: | 130 | For·example: |
132 | </p> | 131 | </p> |
133 | ··<p><code> | 132 | ··<p><code> |
133 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="htp-attrib">(output</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>></span><br> | ||
134 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
134 | 135 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>></span><br> | |
135 | · ·<span·class="htp-tag"><p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>></span><br> | ||
136 | 136 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp[·...·truncated·by·diffoscope;·len:·255,·SHA:·ac56f1df81a2dd6c5474150ac4febb0defe4d7bab31e76e70da6231943f9223f·...·]>></span><br> | |
137 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">time[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
138 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">date[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
139 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
140 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
137 | <br> | 141 | <br> |
138 | · ·<span·class="htp-tag"><centered></span><br> | ||
139 | · ·This·text·is·centered.<br> | ||
140 | </code></p> | 142 | </code></p> |
141 | <P> | 143 | <P> |
142 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | 144 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to |
143 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | 145 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A |
144 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | 146 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster |
145 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | 147 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing |
146 | tag·with·a·preceding·slash.·For·example: | 148 | tag·with·a·preceding·slash.·For·example: |
147 | </P> | 149 | </P> |
148 | ··<p><code> | 150 | ··<p><code> |
151 | <span·class="comment"><!---··This·comment·doesn't·appear·in·the·HTML·file·---></span><br> | ||
149 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="htp-attrib">(output</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>></span><br> | ||
150 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
151 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>></span><br> | ||
152 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">size[</span>·=<span·class="htp-value"></span>·<span·class="htp-attrib">(byte|kbyte|mbyte|gbyte)</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[precision</span>=<span·class="htp-value">n]</span>></span><br> | ||
153 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">time[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
154 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">date[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
155 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
156 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
157 | <br> | ||
158 | </code></p> | 152 | </code></p> |
159 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, | 153 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, |
160 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> | 154 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> |
161 | <P> | 155 | <P> |
162 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were | 156 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were |
163 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with | 157 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with |
164 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 158 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
165 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | 159 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) |
166 | </P> | 160 | </P> |
167 | ··<p><code> | 161 | ··<p><code> |
168 | · · | 162 | · ·a·is·expanded·at·time·1.<br> |
163 | · ·b·is·expanded·at·time·0.<br> | ||
164 | ·contents·of·a:· ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
165 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
166 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
167 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
168 | · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
169 | </code></p> | 169 | </code></p> |
170 | <P> | 170 | <P> |
171 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 171 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
172 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are | 172 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are |
173 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 173 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
174 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a | 174 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a |
175 | parameter·is·required,·simply·expand·it·without·first·checking.··When | 175 | parameter·is·required,·simply·expand·it·without·first·checking.··When |
Offset 1, 54 lines modified | Offset 1, 58 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·D\x8DE\x8EF\x8F,\x8,·/\x8/D\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·D\x8DE\x8EF\x8F,\x8,·/\x8/D\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<!---·comment·---> | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e | ||
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8f·disabled_because_xyz> | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· ·... | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8i_\x8f> | ||
7 | ·_\x8 | 6 | ·_\x8T_.u_.t_.o_.r_.i_.a_.l··················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
8 | · | 7 | ·_.U_.s_.a_.g_.e·····················D\x8DE\x8EF\x8F·creates·_\x8m_\x8e_\x8t_\x8a_\x8t_\x8a_\x8g_\x8s,·which·is·a·fancy·way·of |
9 | · | 8 | ·HTP·Tags··················saying·it·creates·new·tags.·The·mechanism·is·very |
10 | · ···_\x8 | 9 | · ···_\x8A_.L_.T_.T_.E_.X_.T···············similar·to·_\x8B_\x8L_\x8O_\x8C_\x8K·macros,·except·that·the·_\x8U_\x8S_\x8E·tag·is |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K | 10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················not·used·to·expand·them.·Instead,·they·are·expanded |
12 | · | 11 | · ···_.B_.L_.O_.C_.K_.D_.E_.F··············by·their·own·name.·For·example: |
13 | · ···_\x8F_\x8I_\x8L_\x8E·················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="centered"> | ||
14 | · | 12 | ·[>]·_.D_.E_.F···················<_.[_.[_.r_.e_.f_.]_.]_.f_.i_.l_.e·execute="command-line" |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················(output="filename"·|·redirect)·[noerror]> | ||
14 | · ···_\x8I_\x8F····················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·include="includefilename"·[parameters | ||
15 | · ···_\x8I_\x8N_\x8C···················...]> | ||
15 | · ···_\x8I_\x8 | 16 | · ···_\x8I_\x8M_.G···················<_.[_.[_.r_.e_.f_.]_.]_.f_.i_.l_.e·name> |
16 | · ···_\x8I_\x8M_\x8G | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L·············· · ·<centered> | ||
18 | · ···_\x8 | 17 | · ···_\x8I_.M_.A_.G_.E_.U_.R_.L··············<_.[_.[_.r_.e_.f_.]_.]_.f_.i_.l_.e·[·name="filename"·]·size[·= |
18 | · ···_\x8O_\x8P_\x8T···················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·time[·="format"·]> | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·date[·="format"·]> | ||
21 | · ···_\x8S_\x8E_\x8T···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·search="searchpath"> | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F·················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·template="templatefilename"> | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T | ||
19 | · ···_\x8 | 24 | · ···_\x8U_.S_.E_.,_.·_.$················Some·metatags·will·require·an·opening·and·closing |
20 | · ···_\x8 | 25 | · ···_\x8W_.H_.I_.L_\x8E·················tag·(comparable·to |
21 | · ···_\x8 | 26 | · ···_\x8<_.!_.-_.-_.-·················and |
22 | · | 27 | ·_.H_.i_.s_.t_.o_.r_.y···················).·In·this·case,·you·should·use·the·_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F·macro. |
23 | · | 28 | ·_.W_.i_.s_.h_.·_.l_.i_.s_.t·················Another·slightly·faster·alternative·is·to·use·two |
24 | · | 29 | ·_.B_.u_.g_.s······················metatags,·the·opening·tag·and·the·closing·tag·with |
25 | 30 | ····························a·preceding·slash.·For·example: | |
31 | ····························<!---·This·comment·doesn't·appear·in·the·HTML·file | ||
32 | ····························---> | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-·················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·execute="command-line" | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y···················(output="filename"·|·redirect)·[noerror]> | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t·················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·include="includefilename"·[parameters | ||
29 | ·_\x8B_\x8u_\x8g_\x8s······················...]> | ||
30 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·name> | ||
31 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·size[·= | ||
32 | ····························(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
33 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·time[·="format"·]> | ||
34 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·date[·="format"·]> | ||
35 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·search="searchpath"> | ||
36 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·template="templatefilename"> | ||
37 | ····························You·should·really·use·_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F,·though,·as·it·will | 33 | ····························You·should·really·use·_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F,·though,·as·it·will |
38 | ····························check·for·matching·end·tag.·It·is·not·that·slower. | 34 | ····························check·for·matching·end·tag.·It·is·not·that·slower. |
39 | ····························Options·can·be·passed·to·a·metatag,·which·can·then | 35 | ····························Options·can·be·passed·to·a·metatag,·which·can·then |
40 | ····························expand·as·if·it·were·a·_\x8S_\x8E_\x8T·macro.·Option·names·are | 36 | ····························expand·as·if·it·were·a·_\x8S_\x8E_\x8T·macro.·Option·names·are |
41 | ····························parameterized·with·the·OPTION·attribute.·Multiple | 37 | ····························parameterized·with·the·OPTION·attribute.·Multiple |
42 | ····························options·can·be·listed·by·separating·their·name·with | 38 | ····························options·can·be·listed·by·separating·their·name·with |
43 | ····························a·space·(which·therefore·requires·they·be | 39 | ····························a·space·(which·therefore·requires·they·be |
44 | ····························surrounded·by·quotes.) | 40 | ····························surrounded·by·quotes.) |
45 | ···························· · ·<EM>File·"<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·NAME>"·last·updated·<_\x8[ | ||
46 | ···························· | 41 | ···························· · ·a·is·expanded·at·time·1. |
42 | ···························· · ·b·is·expanded·at·time·0. | ||
43 | ···························· ·contents·of·a:· ·a·is·expanded·at·time·<_\x8[ | ||
44 | ····························_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·time>. | ||
45 | ···························· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
46 | ···························· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at | ||
47 | ····························time·1. | ||
48 | ···························· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at | ||
49 | ····························time·2. | ||
50 | ···························· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the | ||
51 | ····························2nd·time·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·time>. | ||
47 | ····························htp·will·do·very·specific·checking·of·parameters | 52 | ····························htp·will·do·very·specific·checking·of·parameters |
48 | ····························when·a·metatag·is·invoked.·htp·assumes·that·all | 53 | ····························when·a·metatag·is·invoked.·htp·assumes·that·all |
49 | ····························parameter·options·to·the·metatag·are·optional.·This | 54 | ····························parameter·options·to·the·metatag·are·optional.·This |
50 | ····························is·why·the·HEADERIMG·definition·uses·IF·to·verify | 55 | ····························is·why·the·HEADERIMG·definition·uses·IF·to·verify |
51 | ····························the·SIZE·option·is·defined·before·expanding·it·in | 56 | ····························the·SIZE·option·is·defined·before·expanding·it·in |
52 | ····························the·block.·If·a·parameter·is·required,·simply | 57 | ····························the·block.·If·a·parameter·is·required,·simply |
53 | ····························expand·it·without·first·checking.·When·htp·expands | 58 | ····························expand·it·without·first·checking.·When·htp·expands |
Offset 98, 50 lines modified | Offset 98, 43 lines modified | ||
98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> | 98 | <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code> |
99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to | 99 | modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to |
100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of | 100 | store·something·in·a·block·macro,·that·depends·on·the·current·value·of |
101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value | 101 | another·macro.··This·other·macro·may·no·longer·have·the·correct·value |
102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when | 102 | when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when |
103 | the·htp·tags·are·expanded:·</P> | 103 | the·htp·tags·are·expanded:·</P> |
104 | ··<p><code> | 104 | ··<p><code> |
105 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="htp-attrib">(output</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>></span><br> | ||
106 | <font·size="-2"> | 105 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</s[·...·truncated·by·diffoscope;·len:·46,·SHA:·ffa205270aa09df992906a8500c8d5f23b1382cffb7b1281926f1387a0b48ba3·...·]</span>></span><br> |
106 | <font·size="-2"> 2.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
107 | <font·size="-2"> 3.·</font> · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
107 | <font·size="-2"> | 108 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> |
108 | <font·size="-2"> 4.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">size[</span>·=<span·class="htp-value"></span>·<span·class="htp-attrib">(byte|kbyte|mbyte|gbyte)</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[precision</span>=<span·class="htp-value">n]</span>></span><br> | ||
109 | <font·size="-2"> 5.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">time[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
110 | <font·size="-2"> 6.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">date[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
111 | <font·size="-2"> 7.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>></span><br> | ||
112 | <font·size="-2"> | 109 | <font·size="-2"> 5.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> |
110 | <font·size="-2"> 6.·</font> · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
111 | <font·size="-2"> 7.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
112 | <font·size="-2"> 8.·</font> · · · ·<span·class="htp-tag"></FONT></span><br> | ||
113 | <font·size="-2"> 9.·</font> · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
114 | <font·size="-2">10.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
113 | <font·size="-2"> | 115 | <font·size="-2">11.·</font><br> |
116 | <font·size="-2">12.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
117 | <font·size="-2">13.·</font><br> | ||
118 | <font·size="-2">14.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
119 | <font·size="-2">15.·</font><br> | ||
120 | <font·size="-2">16.·</font> ·This·will·fail:<br> | ||
121 | <font·size="-2">17.·</font> ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
122 | <font·size="-2">18.·</font><br> | ||
123 | <font·size="-2">19.·</font> ·Instead,·use·*·like·this:<br> | ||
124 | <font·size="-2">20.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
125 | <font·size="-2">21.·</font> · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
126 | <font·size="-2">22.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
127 | <font·size="-2">23.·</font> · ·<br> | ||
128 | <font·size="-2">24.·</font> ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
114 | </code></p> | 129 | </code></p> |
115 | This·produces·the·following: | 130 | This·produces·the·following: |
116 | ··<p><code> | 131 | ··<p><code> |
132 | <span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"imageurl"</span>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="htp-attrib">]</span>></span><br> | ||
117 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>></span><br> | ||
118 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
119 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
120 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
121 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
122 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>></span><br> | ||
123 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>></span><br> | ||
124 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
125 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
126 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
127 | <br> | 133 | <br> |
128 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>></span><br> | ||
129 | <br> | ||
130 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>></span><br> | ||
131 | <br> | ||
132 | ·This·will·fail:<br> | ||
133 | ·<span·class="htp-tag"><HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>></span><br> | ||
134 | <br> | ||
135 | ·Instead,·use·*·like·this:<br> | ||
136 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>></span><br> | ||
137 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>></span><br> | ||
138 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>></span><br> | ||
139 | · ·<br> | ||
140 | ·<span·class="htp-tag"><MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>></span><br> | ||
141 | </code></p> | 134 | </code></p> |
142 | <P> | 135 | <P> |
143 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | 136 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a |
144 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded | 137 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded |
145 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it | 138 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it |
146 | is·used,·while·the·contents·of·b·are·already·expanded. | 139 | is·used,·while·the·contents·of·b·are·already·expanded. |
147 | </P> | 140 | </P> |
Offset 24, 57 lines modified | Offset 24, 46 lines modified | ||
24 | ····························However,·if·the·block·tag·is·marked·with·the·expand | 24 | ····························However,·if·the·block·tag·is·marked·with·the·expand |
25 | ····························modifier·it·is·expanded·immediately.·This·is·useful | 25 | ····························modifier·it·is·expanded·immediately.·This·is·useful |
26 | ····························if·you·want·to·store·something·in·a·block·macro, | 26 | ····························if·you·want·to·store·something·in·a·block·macro, |
27 | ····························that·depends·on·the·current·value·of·another·macro. | 27 | ····························that·depends·on·the·current·value·of·another·macro. |
28 | ····························This·other·macro·may·no·longer·have·the·correct | 28 | ····························This·other·macro·may·no·longer·have·the·correct |
29 | ····························value·when·the·macro·is·expanded.·Here·is·some·code | 29 | ····························value·when·the·macro·is·expanded.·Here·is·some·code |
30 | ····························that·demonstrate·when·the·htp·tags·are·expanded: | 30 | ····························that·demonstrate·when·the·htp·tags·are·expanded: |
31 | ···························· 1.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·execute="command-line" | ||
32 | ····························(output="filename"·|·redirect)·[noerror]> | ||
33 | ···························· 2.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·include="includefilename" | ||
34 | ····························[parameters·...]> | ||
35 | ···························· 3.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·name> | ||
36 | ···························· 4.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·size[·= | ||
37 | ····························(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
38 | ···························· 5.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·time | ||
39 | ····························[·="format"·]> | ||
40 | ···························· 6.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·[·name="filename"·]·date | ||
41 | ····························[·="format"·]> | ||
42 | ···························· 7.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·search="searchpath"> | ||
43 | ···························· 8.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·template="templatefilename"> | ||
44 | ···························· 9. | ||
45 | ····························This·produces·the·following: | ||
46 | ···························· ·<_.[_.[_.r_.e_.f_.]_.]_.D_.E_.F·NAME="HEADERIMG"·OPTION="SRC | 31 | ···························· 1.· ·<_.[_.[_.r_.e_.f_.]_.]_.D_.E_.F·NAME="HEADERIMG"·OPTION="SRC |
47 | ····························SIZE"> | 32 | ····························TITLE·SIZE"> |
48 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·size> | 33 | ···························· 2.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·size> |
49 | ···························· · · · ·<FONT·SIZE=${size}> | 34 | ···························· 3.· · · · ·<FONT·SIZE=${size}> |
50 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | 35 | ···························· 4.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> |
51 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8M_\x8G·SRC=pics/${src}> | 36 | ···························· 5.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8M_\x8G·SRC=pics/${src}> |
52 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·title> | 37 | ···························· 6.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·title> |
53 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·size> | 38 | ···························· 7.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·size> |
54 | ···························· · · · ·</FONT> | 39 | ···························· 8.· · · · ·</FONT> |
55 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | 40 | ···························· 9.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> |
56 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> | 41 | ····························10.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> |
42 | ····························11. | ||
57 | ···························· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A | 43 | ····························12.· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A |
58 | ····························title"> | 44 | ····························title"> |
45 | ····························13. | ||
59 | ···························· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized | 46 | ····························14.· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized |
60 | ····························title"> | 47 | ····························title"> |
48 | ····························15. | ||
61 | ···························· ·This·will·fail: | 49 | ····························16.· ·This·will·fail: |
62 | ···························· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo" | 50 | ····························17.· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo" |
63 | ····························TITLE="Another·title"> | 51 | ····························TITLE="Another·title"> |
52 | ····························18. | ||
53 | ····························19.· ·Instead,·use·*·like·this: | ||
54 | ····························20.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8D_\x8E_\x8F·NAME="MYIMG"·OPTION="SRC·*"> | ||
55 | ····························21.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8M_\x8G·SRC="pics/${src}"·$*> | ||
56 | ····························22.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> | ||
57 | ····························23.· · | ||
58 | ····························24.· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
59 | ····························This·produces·the·following: | ||
60 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8a_\x8g_\x8e_\x8u_\x8r_\x8l·url="imageurl"·[·path="path/in/ | ||
61 | ····························local/filesystem"·]> | ||
64 | ···························· ·Instead,·use·*·like·this: | ||
65 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8D_\x8E_\x8F·NAME="MYIMG"·OPTION="SRC·*"> | ||
66 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8M_\x8G·SRC="pics/${src}"·$*> | ||
67 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8D_\x8E_\x8F> | ||
68 | ···························· · | ||
69 | ···························· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
70 | ····························When·block·a·and·block·b·are·defined·in·lines·2- | 62 | ····························When·block·a·and·block·b·are·defined·in·lines·2- |
71 | ····························7·the·contents·of·a·are·taken·literally,·however, | 63 | ····························7·the·contents·of·a·are·taken·literally,·however, |
72 | ····························the·contents·for·b·are·already·expanded·so·the | 64 | ····························the·contents·for·b·are·already·expanded·so·the |
73 | ····························macro·time·is·evaluated.·So·a·is·expanded·when·it | 65 | ····························macro·time·is·evaluated.·So·a·is·expanded·when·it |
74 | ····························is·used,·while·the·contents·of·b·are·already | 66 | ····························is·used,·while·the·contents·of·b·are·already |
75 | ····························expanded. | 67 | ····························expanded. |
76 | ····························In·line·10·and·12·the·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·tag·is·used·with | 68 | ····························In·line·10·and·12·the·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·tag·is·used·with |
Offset 114, 50 lines modified | Offset 114, 41 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="comment"><!---··This·comment·doesn't·appear·in·the·HTML·file·---></span><br> | ||
121 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
122 | · ·block·#1<br> | ||
123 | [<br> | ||
124 | <span·class="htp-tag"><ELSEIF·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
125 | · ·block·#2<br> | ||
126 | ...<br> | ||
127 | ]<br> | ||
128 | [<br> | ||
129 | <span·class="htp-tag"><ELSE></span><br> | ||
130 | · ·block·#3<br> | ||
131 | ]<br> | ||
132 | <span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
133 | <br> | ||
134 | </code></p> | 122 | </code></p> |
135 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
136 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 124 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
137 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 125 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
138 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 126 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
139 | added·to·the·output·file·as·well. | 127 | added·to·the·output·file·as·well. |
140 | <P> | 128 | <P> |
141 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the | 129 | As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
142 | following·is·perfectly·acceptable: | 130 | following·is·perfectly·acceptable: |
143 | ··<p><code> | 131 | ··<p><code> |
144 | <span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">...</span>></span><br> | ||
145 | <br> | 132 | · ·a·is·expanded·at·time·1.<br> |
133 | · ·b·is·expanded·at·time·0.<br> | ||
134 | ·contents·of·a:· ·a·is·expanded·at·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
135 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
136 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
137 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
138 | · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>></span>.<br> | ||
146 | </code></p> | 139 | </code></p> |
147 | <P> | 140 | <P> |
148 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 141 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
149 | <P> | 142 | <P> |
150 | To·include·information·about·another·file,·such·as·an·archive·file·or | 143 | To·include·information·about·another·file,·such·as·an·archive·file·or |
151 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the | 144 | graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
152 | type·of·information·to·be·displayed: | 145 | type·of·information·to·be·displayed: |
153 | ··<p><code> | 146 | ··<p><code> |
154 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | 147 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> |
155 | [macroname2="increment2"·...·]·[GLOBAL]><br> | ||
156 | <br> | ||
157 | </code></p> | 148 | </code></p> |
158 | <P> | 149 | <P> |
159 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | 150 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
160 | information·is·displayed.··In·anything·other·than·byte·format,·the·information | 151 | information·is·displayed.··In·anything·other·than·byte·format,·the·information |
161 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number | 152 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number |
162 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | 153 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
163 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no | 154 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no |
Offset 186, 16 lines modified | Offset 177, 22 lines modified | ||
186 | <P> | 177 | <P> |
187 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 178 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
188 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros | 179 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros |
189 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | 180 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
190 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer | 181 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer |
191 | available.··So: | 182 | available.··So: |
192 | ··<p><code> | 183 | ··<p><code> |
193 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
194 | 184 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(IMGXY|NOIMGXY)</span>></span><br> | |
185 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
186 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
187 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
188 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
189 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>></span><br> | ||
190 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>></span><br> | ||
191 | <br> | ||
195 | </code></p> | 192 | </code></p> |
196 | <P> | 193 | <P> |
197 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 194 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
198 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the | 195 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the |
199 | second·statement·will·fail.) | 196 | second·statement·will·fail.) |
200 | <P> | 197 | <P> |
201 | <h3><a·name="template">TEMPLATE</a></h3> | 198 | <h3><a·name="template">TEMPLATE</a></h3> |
Offset 1, 42 lines modified | Offset 1, 38 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·F\x8FI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············< | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<!---·This·comment·doesn't·appear·in·the·HTML·file |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· | 5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················---> |
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················[ | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················<ELSEIF·[NOT]·conditional> | ||
8 | ·HTP·Tags·················· · ·block·#2 | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············... | ||
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················] | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············[ | ||
12 | · ···_\x8D_\x8E_\x8F···················<ELSE> | ||
13 | ·[>]·_\x8F_\x8I_\x8L_\x8E·················· · ·block·#3 | ||
14 | · ···_\x8I_\x8F····················] | ||
15 | · ···_\x8I_\x8N_\x8C···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | ||
16 | · ···_\x8I_\x8M_\x8G | ||
17 | · | 6 | ·_.T_.u_.t_.o_.r_.i_.a_.l··················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
18 | · | 7 | ·_.U_.s_.a_.g_.e·····················F\x8FI\x8IL\x8LE\x8E·has·several·optional·parameters·of·differing |
19 | · | 8 | ·HTP·Tags··················purpose.·The·output·file's·name,·the·current·date |
20 | · ···_\x8 | 9 | · ···_\x8A_.L_.T_.T_.E_.X_.T···············and·time,·and·the·contents·of·another·file·may·be |
21 | · ···_\x8 | 10 | · ···_\x8B_.L_.O_.C_.K·················included.·Another·file's·time,·date,·or·size·may·be |
22 | · ···_\x8 | 11 | · ···_\x8B_.L_.O_.C_.K_.D_.E_.F··············added·to·the·output·file·as·well. |
23 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················As·with·all·HTML,·these·tags·do·not·have·to·be·on |
24 | · | 13 | ·[>]·_.F_.I_.L_.E··················their·own·line,·so·the·following·is·perfectly |
25 | · ···_\x8 | 14 | · ···_\x8I_.F····················acceptable: |
15 | · ···_\x8I_\x8N_\x8C··················· · ·a·is·expanded·at·time·1. | ||
16 | · ···_\x8I_\x8M_\x8G··················· · ·b·is·expanded·at·time·0. | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L·············· ·contents·of·a:· ·a·is·expanded·at·time·<_\x8[ | ||
18 | · ···_\x8O_\x8P_\x8T···················_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·time>. | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E················· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at | ||
21 | · ···_\x8S_\x8E_\x8T···················time·1. | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T·················time·2. | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················ · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the | ||
26 | · ···_\x8 | 25 | · ···_\x8W_.H_.I_.L_.E·················2nd·time·<_.[_.[_.r_.e_.f_.]_.]_.u_.s_.e·time>. |
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | ||
28 | · | 26 | · ···_.<_.!_.-_.-_.-·················*\x8**\x8**\x8**\x8*·N\x8NA\x8AM\x8ME\x8E,\x8,·T\x8TI\x8IM\x8ME\x8E,\x8,·S\x8SI\x8IZ\x8ZE\x8E·*\x8**\x8**\x8**\x8* |
29 | ·_\x8 | 27 | ·_\x8H_.i_.s_.t_.o_.r_.y···················To·include·information·about·another·file,·such·as |
30 | ·· | 28 | ·_.W_.i_.s_.h_.·_.l_.i_.s_.t·················an·archive·file·or·graphic·image,·specify·its·name |
31 | · | 29 | ·_.B_.u_.g_.s······················with·the·NAME·attribute·followed·by·the·type·of |
32 | ····························information·to·be·displayed: | 30 | ····························information·to·be·displayed: |
33 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·name="Jim">...<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | 31 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·name="Jim">...<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> |
34 | ···························· [macroname2="increment2"·...·]·[GLOBAL]> | ||
35 | ····························For·file·size·information,·the·value·BYTE,·KBYTE, | 32 | ····························For·file·size·information,·the·value·BYTE,·KBYTE, |
36 | ····························etc.·dictates·how·the·information·is·displayed.·In | 33 | ····························etc.·dictates·how·the·information·is·displayed.·In |
37 | ····························anything·other·than·byte·format,·the·information·is | 34 | ····························anything·other·than·byte·format,·the·information·is |
38 | ····························displayed·in·floating-point·notation.·The·amount·of | 35 | ····························displayed·in·floating-point·notation.·The·amount·of |
39 | ····························precision·(the·number·of·digits·to·the·right·of·the | 36 | ····························precision·(the·number·of·digits·to·the·right·of·the |
40 | ····························decimal·point)·can·be·set·with·the·optional | 37 | ····························decimal·point)·can·be·set·with·the·optional |
41 | ····························PRECISION·attribute.·The·default·precision·is·zero | 38 | ····························PRECISION·attribute.·The·default·precision·is·zero |
Offset 67, 17 lines modified | Offset 63, 22 lines modified | ||
67 | ····························Additional·parameters·can·be·set·in·the·FILE | 63 | ····························Additional·parameters·can·be·set·in·the·FILE |
68 | ····························INCLUDE·tag,·which·are·interpreted·as·macros·that | 64 | ····························INCLUDE·tag,·which·are·interpreted·as·macros·that |
69 | ····························are·"passed"·to·the·included·file.·The·macros·are | 65 | ····························are·"passed"·to·the·included·file.·The·macros·are |
70 | ····························available·only·to·the·include·file·(and·any·macros | 66 | ····························available·only·to·the·include·file·(and·any·macros |
71 | ····························or·included·files·it·holds).·After·the·file·is | 67 | ····························or·included·files·it·holds).·After·the·file·is |
72 | ····························completely·included,·the·macros·are·no·longer | 68 | ····························completely·included,·the·macros·are·no·longer |
73 | ····························available.·So: | 69 | ····························available.·So: |
74 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·INCLUDE="include.hti"·name="Jim | ||
75 | ····························Nelson"·email="jnelson@crl.com"> | ||
76 | ···························· | 70 | ····························<_.[_.[_.r_.e_.f_.]_.]_.O_.P_.T·(IMGXY|NOIMGXY)> |
71 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(QUIET|VERBOSE)> | ||
72 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(DEPEND|NODEPEND)> | ||
73 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(PRECIOUS|NOPRECIOUS)> | ||
74 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
75 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·DELIM=(HTML|SQUARE|CURLY)> | ||
76 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(XML|XML=FALSE)> | ||
77 | ····························Macros·named·"name"·and·"email"·are·set,·and | 77 | ····························Macros·named·"name"·and·"email"·are·set,·and |
78 | ····························available·inside·the·included·file.·They·are·not | 78 | ····························available·inside·the·included·file.·They·are·not |
79 | ····························available,·however,·past·the·tag·(which·is·why·the | 79 | ····························available,·however,·past·the·tag·(which·is·why·the |
80 | ····························second·statement·will·fail.) | 80 | ····························second·statement·will·fail.) |
81 | ····························*\x8**\x8**\x8**\x8*·T\x8TE\x8EM\x8MP\x8PL\x8LA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8* | 81 | ····························*\x8**\x8**\x8**\x8*·T\x8TE\x8EM\x8MP\x8PL\x8LA\x8AT\x8TE\x8E·*\x8**\x8**\x8**\x8* |
82 | ····························A·template·file·is·nothing·more·than·a·default | 82 | ····························A·template·file·is·nothing·more·than·a·default |
83 | ····························include·file,·one·that·is·included·once·the·input | 83 | ····························include·file,·one·that·is·included·once·the·input |
Offset 114, 38 lines modified | Offset 114, 53 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·File·image.gif·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>></span> kilobytes<br> | ||
122 | 121 | <span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"imageurl"</span>·<span·class="ebnf">[</span>·<span·class="ht[·...·truncated·by·diffoscope;·len:·101,·SHA:·81a8210952243a1b74d3e50a9954c5fbe4510401b508765113442da17abc1c90·...·]</span>></span><br> | |
122 | <br> | ||
123 | </code></p> | 123 | </code></p> |
124 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
125 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building | 125 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building |
126 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. | 126 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. |
127 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A | 127 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A |
128 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal | 128 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal |
129 | string: | 129 | string: |
130 | ··<p><code> | 130 | ··<p><code> |
131 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
132 | · | 131 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path<[·...·truncated·by·diffoscope;·len:·53,·SHA:·86c883bdee8402de4fb025e83a268d959894f39762ba8ab02b60f226172c9353·...·]</span>></span><br> |
132 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>></span><br> | ||
133 | <br> | ||
134 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>></span><br> | ||
135 | ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> | ||
136 | ·(no·URL·replacement).<br> | ||
137 | <br> | ||
138 | ·For·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>></span><br> | ||
139 | ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> | ||
140 | <br> | ||
141 | ·But·for·this·line:·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>></span><br> | ||
142 | ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> | ||
143 | ·will·not·be·added.<br> | ||
144 | <br> | ||
145 | ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> | ||
146 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>></span><br> | ||
147 | ·<span·class="htp-tag"><<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>></span><br> | ||
148 | <br> | ||
149 | ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>></span> and·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>></span> are·mapped·to<br> | ||
150 | ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> | ||
151 | ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> | ||
152 | ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> | ||
133 | </code></p> | 153 | </code></p> |
134 | <P> | 154 | <P> |
135 | and·a·defined·operator·is·a·test·of·a·macro's·existance: | 155 | and·a·defined·operator·is·a·test·of·a·macro's·existance: |
136 | <P> | 156 | <P> |
137 | ··<p><code> | 157 | ··<p><code> |
158 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>=<span·class="htp-string">"macrovalue2"</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[GLOBAL]</span>></span><br> | ||
138 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>></span><br> | ||
139 | · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
140 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> | ||
141 | · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
142 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> | ||
143 | <br> | 159 | <br> |
144 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
145 | </code></p> | 160 | </code></p> |
146 | <P> | 161 | <P> |
147 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 162 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
148 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 163 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
149 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 164 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
150 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 165 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
151 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. | 166 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
Offset 1, 36 lines modified | Offset 1, 63 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·I\x8IF\x8F,\x8,·E\x8EL\x8LS\x8SE\x8EI\x8IF\x8F,\x8,·E\x8EL\x8LS\x8SE\x8E,\x8,·/\x8/I\x8IF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·I\x8IF\x8F,\x8,·E\x8EL\x8LS\x8SE\x8EI\x8IF\x8F,\x8,·E\x8EL\x8LS\x8SE\x8E,\x8,·/\x8/I\x8IF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_.[_.[_.r_.e_.f_.]_.]_.i_.m_.a_.g_.e_.u_.r_.l·url="imageurl"·[·path="path/in/ |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· | 5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················local/filesystem"·]> |
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· · ·Last·modified·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·NAME="image.gif" | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················TIME>,·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·NAME="image.gif"·DATE> | ||
8 | · | 7 | ·_.U_.s_.a_.g_.e·····················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
9 | · | 8 | ·HTP·Tags··················I\x8IF\x8F,\x8,·N\x8NO\x8OT\x8T,\x8,·E\x8EL\x8LS\x8SE\x8EI\x8IF\x8F,\x8,·E\x8EL\x8LS\x8SE\x8E,\x8,·a\x8an\x8nd\x8d·/\x8/I\x8IF\x8F·are·the·building |
10 | · ···_\x8 | 9 | · ···_\x8A_.L_.T_.T_.E_.X_.T···············blocks·for·conditional·processing.·The·basic·form |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K | 10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················is·shown·above. |
12 | · ···_\x8 | 11 | · ···_\x8B_.L_.O_.C_.K_.D_.E_.F··············"Conditional"·is·either·a·"compare"·or·"is·defined" |
13 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················operation.·A·compare·operator·is·a·test·of·the |
14 | · | 13 | · ···_.F_.I_.L_.E··················value·of·a·macro·against·a·literal·string: |
15 | · ···_\x8I_\x8N_\x8C··················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·INCLUDE="include.hti"·name="Jim | ||
16 | · ···_\x8I_\x8M_\x8G···················Nelson"·email="jnelson@crl.com"> | ||
17 | · | 14 | ·[>]·_.I_.F···················· ·<_.[_.[_.r_.e_.f_.]_.]_.i_.m_.a_.g_.e_.u_.r_.l·url="http://my.domain.org/ |
15 | · ···_\x8I_\x8N_\x8C···················"·path="/var/www/my.domain/"> | ||
16 | · ···_\x8I_\x8M_\x8G··················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8a_\x8g_\x8e_\x8u_\x8r_\x8l·url="other.domain.org/"·path="/ | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············var/www/other.domain/"> | ||
18 | · ···_\x8O_\x8P_\x8T | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ ·For·this·line:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="logo.gif"> | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E················· ·the·local·filename·"logo.gif"·will·be·used·to | ||
21 | · ···_\x8S_\x8E_\x8T···················determine·image·dimensions | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· ·(no·URL·replacement). | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················ ·For·this·line:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="http:// | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E·················my.domain.org/logo.gif"> | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-················· ·the·local·filename·"/var/www/my.domain/logo.gif" | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y···················will·be·used. | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | ||
29 | ·_\x8B_\x8u_\x8g_\x8s······················ ·But·for·this·line:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="http:// | ||
30 | ····························other.domain.org/logo.gif"> | ||
31 | ···························· ·the·local·file·cannot·be·found·(no·prefix·match), | ||
32 | ····························so·the·image·dimensions | ||
33 | ···························· ·will·not·be·added. | ||
34 | ···························· ·Order·is·important;·last·IMAGEURL·tag·takes | ||
35 | ····························precedence: | ||
36 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8a_\x8g_\x8e_\x8u_\x8r_\x8l·url="/"·path="/var/www/htdocs/"> | ||
37 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8a_\x8g_\x8e_\x8u_\x8r_\x8l·url="/test/"·path="/var/www/ | ||
38 | ····························test/"> | ||
39 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="/image.gif"> and·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g | ||
40 | ····························src="/test/image.gif"> are·mapped·to | ||
41 | ···························· ·/var/www/htdocs/image.gif·and·/var/www/test/ | ||
42 | ····························image.gif,·resp. | ||
43 | ···························· ·If·the·order·of·the·imageurl·lines·would·be | ||
44 | ····························swapped,·the·second | ||
45 | ···························· ·image·would·be·mapped·to·/var/www/htdocs/test/ | ||
46 | ····························image.gif. | ||
18 | 47 | ····························and·a·defined·operator·is·a·test·of·a·macro's | |
48 | ····························existance: | ||
49 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8S_\x8E_\x8T·macroname1="macrovalue1" | ||
50 | ····························[macroname2="macrovalue2"·...]·[GLOBAL]> | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················existance: | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·name="bolditalic"> | ||
21 | · ···_\x8S_\x8E_\x8T··················· · ·<b><i> | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·block> | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T················· · ·</i></b> | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················ ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f> | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-················· ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
27 | 51 | ····························If·the·NOT·tag·is·present·in·the·IF·markup,·the | |
28 | 52 | ····························evaluation·of·the·conditional·is·reversed.·The | |
29 | 53 | ····························first·IF·or·ELSEIF·condition·that·evaluates·to·true | |
30 | ····························is·chosen.·If·none·of·the·conditions·is·true·the | 54 | ····························is·chosen.·If·none·of·the·conditions·is·true·the |
31 | ····························ELSE·block·is·taken·if·it·is·present.·A·conditional | 55 | ····························ELSE·block·is·taken·if·it·is·present.·A·conditional |
32 | ····························block·m\x8mu\x8us\x8st\x8t·be·closed·with·the·/IF·tag.·IF·tags·can | 56 | ····························block·m\x8mu\x8us\x8st\x8t·be·closed·with·the·/IF·tag.·IF·tags·can |
33 | ····························be·nested. | 57 | ····························be·nested. |
Offset 114, 22 lines modified | Offset 114, 16 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
122 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
121 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">IMGXY</span><span·class="ebnf">|</span><span·class="htp-attrib">NOIMGXY</span><span·class="ebnf">)</span>></span><br> | ||
122 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">QUIET</span><span·class="ebnf">|</span><span·class="htp-attrib">VERBOSE</span><span·class="ebnf">)</span>></span><br> | ||
123 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">DEPEND</span><span·class="ebnf">|</span><span·class="htp-attrib">NODEPEND</span><span·class="ebnf">)</span>></span><br> | ||
124 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">PRECIOUS</span><span·class="ebnf">|</span><span·class="htp-attrib">NOPRECIOUS</span><span·class="ebnf">)</span>></span><br> | ||
125 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">CONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">SEMICONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">NOCONDENSE</span><span·class="ebnf">)</span>></span><br> | ||
126 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="ebnf">(</span><span·class="htp-value">HTML<span·class="ebnf">|</span>SQUARE<span·class="ebnf">|</span>CURLY<span·class="ebnf">)</span></span>></span><br> | ||
127 | <span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">XML</span><span·class="ebnf">|</span><span·class="htp-attrib">XML</span>=<span·class="htp-value">FALSE<span·class="ebnf">)</span></span>></span><br> | ||
128 | <br> | ||
129 | </code></p> | 123 | </code></p> |
130 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
131 | <P> | 125 | <P> |
132 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local | 126 | <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local |
133 | file·system.··declares·an·URL·replacement·that·is·used·for | 127 | file·system.··declares·an·URL·replacement·that·is·used·for |
134 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions | 128 | size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions |
135 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is | 129 | takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is |
Offset 143, 19 lines modified | Offset 137, 21 lines modified | ||
143 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC | 137 | checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC |
144 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. | 138 | attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH. |
145 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and | 139 | If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and |
146 | looked·up·in·the·current·directory.</P> | 140 | looked·up·in·the·current·directory.</P> |
147 | <P> | 141 | <P> |
148 | For·example:</P> | 142 | For·example:</P> |
149 | ··<p><code> | 143 | ··<p><code> |
150 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-strin | 144 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>></span><br> |
151 | · ·<span·class="htp-tag">< | 145 | · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> |
146 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> | ||
147 | · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
152 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | 148 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> |
153 | <br> | 149 | <br> |
154 | · | 150 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> |
155 | </code></p> | 151 | </code></p> |
156 | <P> | 152 | <P> |
157 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | 153 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
158 | an·undefine,·and·is·removed.</P> | 154 | an·undefine,·and·is·removed.</P> |
159 | <P> | 155 | <P> |
160 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | 156 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout |
161 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | 157 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
Offset 1, 43 lines modified | Offset 1, 39 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·I\x8IM\x8MA\x8AG\x8GE\x8EU\x8UR\x8RL\x8L·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·I\x8IM\x8MA\x8AG\x8GE\x8EU\x8UR\x8RL\x8L·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·INCLUDE="include.hti"·name="Jim | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················Nelson"·email="jnelson@crl.com"> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· · ·This·tag·will·fail:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·name> | ||
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(IMGXY|NOIMGXY)> | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(QUIET|VERBOSE)> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(DEPEND|NODEPEND)> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(PRECIOUS|NOPRECIOUS)> | ||
8 | ·HTP·Tags··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·DELIM=(HTML|SQUARE|CURLY)> | ||
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(XML|XML=FALSE)> | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F | ||
12 | · | 7 | ·_.U_.s_.a_.g_.e·····················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
13 | · | 8 | ·HTP·Tags··················I\x8IM\x8MA\x8AG\x8GE\x8EU\x8UR\x8RL\x8L·tells·htp,·where·to·find·images·on·the |
14 | · ···_\x8 | 9 | · ···_\x8A_.L_.T_.T_.E_.X_.T···············local·file·system.·declares·an·URL·replacement·that |
15 | · ···_\x8 | 10 | · ···_\x8B_.L_.O_.C_.K·················is·used·for·size·lookups·in·any·_\x8I_\x8M_\x8G·tag.·This |
16 | · ···_\x8 | 11 | · ···_\x8B_.L_.O_.C_.K_.D_.E_.F··············definitions·takes·effect·only·if·the·_\x8I_\x8M_\x8G_\x8X_\x8Y·option |
17 | · | 12 | · ···_.D_.E_.F···················is·enabled.·Beacause·htp·can't·lookup·files·in·the |
18 | · ···_\x8 | 13 | · ···_\x8F_.I_.L_.E··················world·wide·web·you·have·to·map·absolute·image·URLs |
19 | · ···_\x8 | 14 | · ···_\x8I_.F····················to·a·directory·in·the·local·file·system. |
20 | · ···_\x8 | 15 | · ···_\x8I_.N_.C···················When·an·IMG·tag·is·encountered·where·htp·has·to |
21 | · ···_\x8 | 16 | · ···_\x8I_.M_.G···················insert·width·and·height·the·defined·URL |
22 | · | 17 | ·[>]·_.I_.M_.A_.G_.E_.U_.R_.L··············replacements·will·be·taken·into·account·(later |
23 | · ···_\x8 | 18 | · ···_\x8O_.P_.T···················definitions·take·precedence·to·earlier):·For·each |
24 | · ···_\x8 | 19 | · ···_\x8O_.U_.T_.P_.U_.T················defined·imageurl·it·checks·(case-insensitive)·if·it |
25 | · ···_\x8 | 20 | · ···_\x8Q_.U_.O_.T_\x8E·················is·a·prefix·of·the·image's·SRC·attribute.·If·it |
26 | · ···_\x8 | 21 | · ···_\x8S_.E_.T···················matches·this·prefix·is·replaced·by·the·given·PATH. |
27 | · | 22 | · ···_.U_.N_.D_.E_.F·················If·no·IMAGEURL·matches·the·SRC·is·considered·as |
28 | · | 23 | · ···_.U_.N_.S_.E_.T·················relative·link·and·looked·up·in·the·current |
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················directory. | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E·················For·example: | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·name="bolditalic"> | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y··················· · ·<b><i> | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·block> | ||
29 | ·_\x8B_\x8u_\x8g_\x8s······················ | 29 | ·_\x8B_\x8u_\x8g_\x8s······················ · ·</i></b> |
30 | ····························For·example: | ||
31 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="sharedimg"·option="name·alt"> | ||
32 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="/home/sharedimages/${name}" | ||
33 | ····························alt="${alt}">; | ||
34 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | 30 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_.l_.o_.c_.k_.d_\x8e_\x8f> |
35 | ···························· · | 31 | ···························· ·This·is·<bolditalic>bold·and·italic</bolditalic> |
36 | ····························If·IMAGEURL·is·specified·with·a·URL·but·no·PATH | 32 | ····························If·IMAGEURL·is·specified·with·a·URL·but·no·PATH |
37 | ····························attribute,·it·is·treated·as·an·undefine,·and·is | 33 | ····························attribute,·it·is·treated·as·an·undefine,·and·is |
38 | ····························removed. | 34 | ····························removed. |
39 | ····························Since·you·usually·need·the·url·mapping·for·a·number | 35 | ····························Since·you·usually·need·the·url·mapping·for·a·number |
40 | ····························of·images·used·throughout·a·set·of·documents, | 36 | ····························of·images·used·throughout·a·set·of·documents, |
41 | ····························IMAGEURL·is·most·appropriately·put·into·an·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e | 37 | ····························IMAGEURL·is·most·appropriately·put·into·an·_\x8i_\x8n_\x8c_\x8l_\x8u_\x8d_\x8e |
42 | ····························_\x8f_\x8i_\x8l_\x8e·or·the·_\x8h_\x8t_\x8p_\x8._\x8d_\x8e_\x8f·file. | 38 | ····························_\x8f_\x8i_\x8l_\x8e·or·the·_\x8h_\x8t_\x8p_\x8._\x8d_\x8e_\x8f·file. |
Offset 114, 17 lines modified | Offset 114, 16 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
122 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
121 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
122 | [macroname2="increment2"·...·]·[GLOBAL]><br> | ||
123 | <br> | ||
124 | </code></p> | 123 | </code></p> |
125 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
126 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified | 125 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified |
127 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage | 126 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage |
128 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially | 127 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially |
129 | useful·if·the·image·may·change·frequently.·</P> | 128 | useful·if·the·image·may·change·frequently.·</P> |
130 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup | 129 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·I\x8IM\x8MG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·I\x8IM\x8MG\x8G·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·name="Jim">...<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· [macroname2="increment2"·...·]·[GLOBAL]> | ||
6 | ·_\x8 | 4 | ·_\x8I_.n_.t_.r_.o_.d_.u_.c_.t_.i_.o_.n·············· · ·<_.[_.[_.r_.e_.f_.]_.]_.F_.I_.L_.E·INCLUDE="include.hti"·name="Jim |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················Nelson"·email="jnelson@crl.com"> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· · ·This·tag·will·fail:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·name> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* | 7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
8 | ·HTP·Tags··················i\x8im\x8mg\x8g·is·a·standard·HTML·tag.·htp·can·add·the | 8 | ·HTP·Tags··················i\x8im\x8mg\x8g·is·a·standard·HTML·tag.·htp·can·add·the |
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············specified·image's·width·and·height·to·the·tag | 9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············specified·image's·width·and·height·to·the·tag |
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················automatically.·This·has·the·advantage·of·not·having | 10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················automatically.·This·has·the·advantage·of·not·having |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············to·determine·each·image's·size·manually,·which·is | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············to·determine·each·image's·size·manually,·which·is |
12 | · ···_\x8D_\x8E_\x8F···················especially·useful·if·the·image·may·change | 12 | · ···_\x8D_\x8E_\x8F···················especially·useful·if·the·image·may·change |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················frequently. | 13 | · ···_\x8F_\x8I_\x8L_\x8E··················frequently. |
Offset 114, 35 lines modified | Offset 114, 31 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | · ·<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>></span>...<span·class="htp-tag"><<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>></span><br> | ||
121 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
122 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
123 | </code></p> | 122 | </code></p> |
124 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
125 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a | 124 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a |
126 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. | 125 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. |
127 | <P> | 126 | <P> |
128 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a | 127 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a |
129 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The | 128 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The |
130 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an | 129 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an |
131 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. | 130 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. |
132 | The·effect·of·this·operation·is·that·the·macro·is·redefined | 131 | The·effect·of·this·operation·is·that·the·macro·is·redefined |
133 | to·contain·the·sum·of·its·previous·value·and·its·increment. | 132 | to·contain·the·sum·of·its·previous·value·and·its·increment. |
134 | <P> | 133 | <P> |
135 | To·increment·or·decrement·a·variable·you·can·use·this·form: | 134 | To·increment·or·decrement·a·variable·you·can·use·this·form: |
136 | ··<p><code> | 135 | ··<p><code> |
136 | · ·<span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
137 | · ·This·tag·will·fail:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>></span><br> | ||
137 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>></span><br> | ||
138 | · ·<span·class="htp-tag"><<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>></span>;<br> | ||
139 | ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>></span><br> | ||
140 | <br> | ||
141 | ·<span·class="htp-tag"><sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>></span><br> | ||
142 | </code></p> | 138 | </code></p> |
143 | <p> | 139 | <p> |
144 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It | 140 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It |
145 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer | 141 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer |
146 | values·are·limited·to·the·range·-2^31..2^31. | 142 | values·are·limited·to·the·range·-2^31..2^31. |
147 | <P> | 143 | <P> |
148 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. | 144 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. |
Offset 1, 41 lines modified | Offset 1, 36 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·I\x8IN\x8NC\x8C·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·I\x8IN\x8NC\x8C·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·name="Jim">...<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8I_\x8F> | ||
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·INCLUDE="include.hti"·name="Jim | ||
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················Nelson"·email="jnelson@crl.com"> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· · ·This·tag·will·fail:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·name> | ||
7 | ·_\x8 | 5 | ·_\x8L_.i_.c_.e_.n_.s_.e···················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
8 | · | 6 | ·_.T_.u_.t_.o_.r_.i_.a_.l··················The·I\x8IN\x8NC\x8C·can·be·used·for·incrementing/decrementing·a |
9 | · | 7 | ·_.U_.s_.a_.g_.e·····················variable·or·for·variable·addition.·The·basic·form |
10 | · | 8 | ·HTP·Tags··················is·shown·above. |
11 | · ···_\x8 | 9 | · ···_\x8A_.L_.T_.T_.E_.X_.T···············The·"increment"·is·anything·that·evaluates·to·a |
12 | · ···_\x8 | 10 | · ···_\x8B_.L_.O_.C_.K·················integer.·It·can·be·a·literal·string·or·a·macro |
13 | · ···_\x8 | 11 | · ···_\x8B_.L_.O_.C_.K_.D_.E_.F··············preceeded·by·the·'$'-operator.·The·macroname·must |
14 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················be·the·name·of·a·defined·macro·that·contains·an |
15 | · | 13 | · ···_.F_.I_.L_.E··················integer.·If·the·increment·is·ommitted·it·defaults |
16 | · ···_\x8I_\x8 | 14 | · ···_\x8I_\x8F····················to·1.·The·effect·of·this·operation·is·that·the |
17 | · | 15 | ·[>]·_.I_.N_.C···················macro·is·redefined·to·contain·the·sum·of·its |
18 | · ···_\x8 | 16 | · ···_\x8I_.M_.G···················previous·value·and·its·increment. |
19 | · ···_\x8 | 17 | · ···_\x8I_.M_.A_.G_.E_.U_.R_.L··············To·increment·or·decrement·a·variable·you·can·use |
20 | · ···_\x8 | 18 | · ···_\x8O_.P_.T···················this·form: |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8F_\x8I_\x8L_\x8E·INCLUDE="include.hti"·name="Jim | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················Nelson"·email="jnelson@crl.com"> | ||
21 | · ···_\x8S_\x8E_\x8T··················· · ·This·tag·will·fail:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8S_\x8E·name> | ||
21 | · ···_\x8S_\x8E_\x8T··················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="sharedimg"·option="name·alt"> | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="/home/sharedimages/${name}" | ||
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T·················alt="${alt}">; | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················ ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8d_\x8e_\x8f> | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-················· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> | ||
27 | · | 22 | · ···_.U_.N_.D_.E_.F·················Note·that·INC·doesn't·check·if·the·strings·really |
28 | · | 23 | · ···_.U_.N_.S_.E_.T·················denote·integers.·It·may·give·weired·results·when |
29 | ·_. | 24 | · ···_.U_.S_.E_.,_.·_.$················used·on·arbitrary·strings.·The·integer·values·are |
30 | ···· | 25 | · ···_.W_.H_.I_.L_.E·················limited·to·the·range·-2^31..2^31. |
31 | ···· | 26 | · ···_.<_.!_.-_.-_.-·················Note·further·that·htp·wasn't·designed·to·do |
32 | · | 27 | ·_.H_.i_.s_.t_.o_.r_.y···················extensive·calculations.·The·INC·tag·is·useful·in |
33 | ·· | 28 | ·_.W_.i_.s_.h_.·_.l_.i_.s_.t·················conjunction·with·WHILE·to·iterate·over·the·defined |
34 | · | 29 | ·_.B_.u_.g_.s······················blocks. |
Offset 88, 22 lines modified | Offset 88, 16 lines modified | ||
88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and | 88 | <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and |
89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> | 89 | undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P> |
90 | <P> | 90 | <P> |
91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a | 91 | As·an·example·we·show·how·to·define·a·tag·that·builds·a |
92 | fancy·horizontal·rule·out·of·several·images. | 92 | fancy·horizontal·rule·out·of·several·images. |
93 | </P> | 93 | </P> |
94 | ··<p><code> | 94 | ··<p><code> |
95 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
95 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(IMGXY|NOIMGXY)</span>></span><br> | ||
96 | <font·size="-2"> 2.·</font><span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>></span><br> | ||
97 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>></span><br> | ||
98 | <font·size="-2"> 4.·</font><span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>></span><br> | ||
99 | <font·size="-2"> 5.·</font><span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>></span><br> | ||
100 | <font·size="-2"> 6.·</font><span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>></span><br> | ||
101 | <font·size="-2"> 7.·</font><span·class="htp-tag"><<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>></span><br> | ||
102 | <font·size="-2"> | 96 | <font·size="-2"> 2.·</font><br> |
103 | </code></p> | 97 | </code></p> |
104 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | 98 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. |
105 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. | 99 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. |
106 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and | 100 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and |
107 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this | 101 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this |
108 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to | 102 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to |
109 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> | 103 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> |
Offset 113, 44 lines modified | Offset 107, 44 lines modified | ||
113 | file</a>.··</p> | 107 | file</a>.··</p> |
114 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 108 | <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
115 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp | 109 | variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp |
116 | encounters·a·blockdef·tag·it·will·automatically·search·for·the | 110 | encounters·a·blockdef·tag·it·will·automatically·search·for·the |
117 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block | 111 | matching·closing·tag·and·put·everything·between·these·tags·in·a·block |
118 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> | 112 | macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P> |
119 | ··<p><code> | 113 | ··<p><code> |
120 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>></span><br> | ||
121 | <font·size="-2"> | 114 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> |
115 | <font·size="-2"> 2.·</font> · ·...<br> | ||
122 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href=" | 116 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> |
123 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
124 | <font·size="-2"> | 117 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> |
125 | <font·size="-2"> 6.·</font><br> | ||
126 | <font·size="-2"> 7.·</font> ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
127 | </code></p> | 118 | </code></p> |
128 | <h2>Using·parameters</h2> | 119 | <h2>Using·parameters</h2> |
129 | <p>·More·sophisticated·tags·accept·parameters.··The | 120 | <p>·More·sophisticated·tags·accept·parameters.··The |
130 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 121 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
131 | named·and·expanded·inside·the·<code>def</code>·or | 122 | named·and·expanded·inside·the·<code>def</code>·or |
132 | <code>blockdef</code>·block:·</p> | 123 | <code>blockdef</code>·block:·</p> |
133 | ··<p><code> | 124 | ··<p><code> |
134 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>></span><br> | ||
135 | <font·size="-2"> | 125 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>></span><br> |
126 | <font·size="-2"> 2.·</font> ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
136 | <font·size="-2"> 3.·</font> | 127 | <font·size="-2"> 3.·</font><span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
137 | <font·size="-2"> 4.·</font><br> | 128 | <font·size="-2"> 4.·</font><br> |
138 | <font·size="-2"> 5.·</font> | 129 | <font·size="-2"> 5.·</font><span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> |
130 | <font·size="-2"> 6.·</font><br> | ||
131 | <font·size="-2"> 7.·</font>This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
132 | <font·size="-2"> 8.·</font>But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
133 | <font·size="-2"> 9.·</font>And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
139 | </code></p> | 134 | </code></p> |
140 | <h2>Saving·blocks·for·later</h2> | 135 | <h2>Saving·blocks·for·later</h2> |
141 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by | 136 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by |
142 | the·template·file.··The·normal·htp·files·should·just·define·macros | 137 | the·template·file.··The·normal·htp·files·should·just·define·macros |
143 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block | 138 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block |
144 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this | 139 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this |
145 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | 140 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
146 | do·this:</p> | 141 | do·this:</p> |
147 | ··<p><code> | 142 | ··<p><code> |
143 | <font·size="-2"> 1.·</font> · ·<span·class="htp-tag"><<span·class="htp-macro">${tagName}</span>·<span·class="htp-attrib"><span·class="htp-macro">${attrName}</span></span>=<span·class="htp-value"><span·class="htp-macro">${value$ctr}</span></span>></span><br> | ||
148 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
149 | <font·size="-2"> 2.·</font><br> | ||
150 | </code></p> | 144 | </code></p> |
151 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a | 145 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a |
152 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is | 146 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is |
153 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is | 147 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is |
154 | build·from·this·counter.··So·the·first·section·is·stored·in·block | 148 | build·from·this·counter.··So·the·first·section·is·stored·in·block |
155 | sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag | 149 | sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag |
156 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally | 150 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally |
Offset 169, 16 lines modified | Offset 163, 21 lines modified | ||
169 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be | 163 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be |
170 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the | 164 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the |
171 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you | 165 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you |
172 | use·expand·in·a·block·around·it.</p> | 166 | use·expand·in·a·block·around·it.</p> |
173 | <p>To·close·this·example·we·show·how·to·expand·the | 167 | <p>To·close·this·example·we·show·how·to·expand·the |
174 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> | 168 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> |
175 | ··<p><code> | 169 | ··<p><code> |
176 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>=<span·class="htp-string">"macrovalue2"</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[GLOBAL]</span>></span><br> | ||
177 | <font·size="-2"> | 170 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"header.hti"</span>></span><br> |
171 | <font·size="-2"> 2.·</font> ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"1"</span>></span><br> | ||
172 | <font·size="-2"> 3.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
173 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
174 | <font·size="-2"> 5.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
175 | <font·size="-2"> 6.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>></span><br> | ||
176 | <font·size="-2"> 7.·</font><span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
178 | </code></p> | 177 | </code></p> |
179 | <p> | 178 | <p> |
180 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether | 179 | The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether |
181 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is | 180 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is |
182 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards | 181 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards |
183 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This | 182 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This |
184 | repeats·until·sect-${sect-ctr}·is·not·defined. | 183 | repeats·until·sect-${sect-ctr}·is·not·defined. |
Offset 9, 22 lines modified | Offset 9, 16 lines modified | ||
9 | · ···_\x8T_\x8e_\x8m_\x8p_\x8l_\x8a_\x8t_\x8e_\x8s·············functionality. | 9 | · ···_\x8T_\x8e_\x8m_\x8p_\x8l_\x8a_\x8t_\x8e_\x8s·············functionality. |
10 | · ···_\x8F_\x8i_\x8l_\x8e_\x8s·················Metatags·are·defined·with·the·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·and·_\x8[ | 10 | · ···_\x8F_\x8i_\x8l_\x8e_\x8s·················Metatags·are·defined·with·the·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·and·_\x8[ |
11 | ·[>]·_\x8M_\x8e_\x8t_\x8a_\x8t_\x8a_\x8g_\x8s··············_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·tags·and·undefined·with·the·_\x8[ | 11 | ·[>]·_\x8M_\x8e_\x8t_\x8a_\x8t_\x8a_\x8g_\x8s··············_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·tags·and·undefined·with·the·_\x8[ |
12 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8n_\x8d_\x8e_\x8f·tag. | 12 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8n_\x8d_\x8e_\x8f·tag. |
13 | ·_\x8H_\x8T_\x8P_\x8·_\x8T_\x8a_\x8g_\x8s··················As·an·example·we·show·how·to·define·a·tag·that | 13 | ·_\x8H_\x8T_\x8P_\x8·_\x8T_\x8a_\x8g_\x8s··················As·an·example·we·show·how·to·define·a·tag·that |
14 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y···················builds·a·fancy·horizontal·rule·out·of·several | 14 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y···················builds·a·fancy·horizontal·rule·out·of·several |
15 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t·················images. | 15 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t·················images. |
16 | ·_\x8B_\x8u_\x8g_\x8s······················ 1.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_. | 16 | ·_\x8B_\x8u_\x8g_\x8s······················ 1.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8Q_.U_.O_.T_.E·TAG·[ATTRIBUTE=VALUE·...]> |
17 | ···························· 2.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(QUIET|VERBOSE)> | ||
18 | ···························· 3.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(DEPEND|NODEPEND)> | ||
19 | ···························· 4.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(PRECIOUS|NOPRECIOUS)> | ||
20 | ···························· 5.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
21 | ···························· 6.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·DELIM=(HTML|SQUARE|CURLY)> | ||
22 | ···························· 7.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8O_\x8P_\x8T·(XML|XML=FALSE)> | ||
23 | ···························· | 17 | ···························· 2. |
24 | ····························In·line·1·of·the·above·example·a·new·tag·named | 18 | ····························In·line·1·of·the·above·example·a·new·tag·named |
25 | ····························imghr·is·defined.·The·html·code·which·implements | 19 | ····························imghr·is·defined.·The·html·code·which·implements |
26 | ····························this·rule·is·following·in·lines·2-8.·between·the·_\x8[ | 20 | ····························this·rule·is·following·in·lines·2-8.·between·the·_\x8[ |
27 | ····························_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f_\x8·_\x8a_\x8n_\x8d_\x8·_\x8/_\x8d_\x8e_\x8f·tags.·You·don't·have·to | 21 | ····························_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f_\x8·_\x8a_\x8n_\x8d_\x8·_\x8/_\x8d_\x8e_\x8f·tags.·You·don't·have·to |
28 | ····························understand·this·html·code,·but·you·should | 22 | ····························understand·this·html·code,·but·you·should |
29 | ····························understand·that·this·is·just·pure·html·to·draw·the | 23 | ····························understand·that·this·is·just·pure·html·to·draw·the |
30 | ····························fancy·rule.·Every·time·you·write·<imghr>·as·in·line | 24 | ····························fancy·rule.·Every·time·you·write·<imghr>·as·in·line |
Offset 35, 45 lines modified | Offset 29, 43 lines modified | ||
35 | ····························Often·you·want·to·define·tags·that·have·an·opening | 29 | ····························Often·you·want·to·define·tags·that·have·an·opening |
36 | ····························and·a·closing·variant.·For·this·purpose·you·should | 30 | ····························and·a·closing·variant.·For·this·purpose·you·should |
37 | ····························use·the·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·tag.·When·htp·encounters·a | 31 | ····························use·the·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f·tag.·When·htp·encounters·a |
38 | ····························blockdef·tag·it·will·automatically·search·for·the | 32 | ····························blockdef·tag·it·will·automatically·search·for·the |
39 | ····························matching·closing·tag·and·put·everything·between | 33 | ····························matching·closing·tag·and·put·everything·between |
40 | ····························these·tags·in·a·block·macro·named·block.·Here·is·an | 34 | ····························these·tags·in·a·block·macro·named·block.·Here·is·an |
41 | ····························example·for·this. | 35 | ····························example·for·this. |
42 | ···························· 1.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8 | 36 | ···························· 1.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8W_.H_.I_.L_.E·NOT·i="10"> |
43 | ···························· 2.· · · | 37 | ···························· 2.· · ·... |
44 | ···························· 3.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8 | 38 | ···························· 3.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_.N_.C·i> |
45 | ···························· 4.· · ·</i></b> | ||
46 | ···························· | 39 | ···························· 4.· ·<_.[_.[_.r_.e_.f_.]_.]_./_.W_.H_.I_.L_.E> |
47 | ···························· 6. | ||
48 | ···························· 7.· ·This·is·<bolditalic>bold·and·italic</ | ||
49 | ····························bolditalic> | ||
50 | ····························*\x8**\x8**\x8**\x8**\x8*·U\x8Us\x8si\x8in\x8ng\x8g·p\x8pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8* | 40 | ····························*\x8**\x8**\x8**\x8**\x8*·U\x8Us\x8si\x8in\x8ng\x8g·p\x8pa\x8ar\x8ra\x8am\x8me\x8et\x8te\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8* |
51 | ····························More·sophisticated·tags·accept·parameters.·The | 41 | ····························More·sophisticated·tags·accept·parameters.·The |
52 | ····························option·parameter·lets·multiple·metatag·parameters | 42 | ····························option·parameter·lets·multiple·metatag·parameters |
53 | ····························be·named·and·expanded·inside·the·def·or·blockdef | 43 | ····························be·named·and·expanded·inside·the·def·or·blockdef |
54 | ····························block: | 44 | ····························block: |
45 | ···························· 1.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k·stuff> | ||
46 | ···························· 2.· ·<a·href=$email>send·email</a> | ||
55 | ···························· 1.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8d_\x8e_\x8f·name="sharedimg"·option="name | ||
56 | ····························alt"> | ||
57 | ···························· 2.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8m_\x8g·src="/home/sharedimages/$ | ||
58 | ····························{name}"·alt="${alt}">; | ||
59 | ···························· 3.· | 47 | ···························· 3.·<_.[_.[_.r_.e_.f_.]_.]_./_.b_.l_.o_.c_.k> |
60 | ···························· 4. | 48 | ···························· 4. |
61 | ···························· 5.· | 49 | ···························· 5.·<_.[_.[_.r_.e_.f_.]_.]_.s_.e_.t·morestuff=$email> |
62 | ···························· | 50 | ···························· 6. |
51 | ···························· 7.·This·works:· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·stuff | ||
52 | ····························email="jnelson@crl.com"> | ||
53 | ···························· 8.·But·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·email> | ||
54 | ···························· 9.·And·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·morestuff | ||
55 | ····························email="jnelson@crl.com"> | ||
63 | ····························*\x8**\x8**\x8**\x8**\x8*·S\x8Sa\x8av\x8vi\x8in\x8ng\x8g·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s·f\x8fo\x8or\x8r·l\x8la\x8at\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* | 56 | ····························*\x8**\x8**\x8**\x8**\x8*·S\x8Sa\x8av\x8vi\x8in\x8ng\x8g·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s·f\x8fo\x8or\x8r·l\x8la\x8at\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8* |
64 | ····························When·you·are·using·templates,·the·html·should·only | 57 | ····························When·you·are·using·templates,·the·html·should·only |
65 | ····························be·written·by·the·template·file.·The·normal·htp | 58 | ····························be·written·by·the·template·file.·The·normal·htp |
66 | ····························files·should·just·define·macros·that·are·used·later | 59 | ····························files·should·just·define·macros·that·are·used·later |
67 | ····························in·the·template.·So·you·may·want·to·write·block | 60 | ····························in·the·template.·So·you·may·want·to·write·block |
68 | ····························tags·that·just·save·the·block·in·a·macro·for·later | 61 | ····························tags·that·just·save·the·block·in·a·macro·for·later |
69 | ····························use.·Although·this·is·possible·with·htp·it·is·quite | 62 | ····························use.·Although·this·is·possible·with·htp·it·is·quite |
70 | ····························tricky,·so·here·we·present·the·way·to·do·this: | 63 | ····························tricky,·so·here·we·present·the·way·to·do·this: |
64 | ···························· 1.· · ·<${tagName}·${attrName}=${value$ctr}> | ||
71 | ···························· 1.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8Q_\x8U_\x8O_\x8T_\x8E·TAG·[ATTRIBUTE=VALUE·...]> | ||
72 | ···························· 2. | ||
73 | ····························This·defines·a·block·macro·named·section.·This | 65 | ····························This·defines·a·block·macro·named·section.·This |
74 | ····························macro·uses·a·counter·sect-ctr·that·enumerates·the | 66 | ····························macro·uses·a·counter·sect-ctr·that·enumerates·the |
75 | ····························sections.·It·is·increased·for·every·section·(line | 67 | ····························sections.·It·is·increased·for·every·section·(line |
76 | ····························3)·and·then·the·block·macro·name·is·build·from·this | 68 | ····························3)·and·then·the·block·macro·name·is·build·from·this |
77 | ····························counter.·So·the·first·section·is·stored·in·block | 69 | ····························counter.·So·the·first·section·is·stored·in·block |
78 | ····························sect-1,·the·second·in·sect-2·and·so·on.·The·_\x8[ | 70 | ····························sect-1,·the·second·in·sect-2·and·so·on.·The·_\x8[ |
79 | ····························_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8g_\x8l_\x8o_\x8b_\x8a_\x8l·flag·in·line·4·tells·htp·that·these | 71 | ····························_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8g_\x8l_\x8o_\x8b_\x8a_\x8l·flag·in·line·4·tells·htp·that·these |
Offset 96, 17 lines modified | Offset 88, 21 lines modified | ||
96 | ····························block·to·be·expanded·twice.·If·you·omit·it,·it | 88 | ····························block·to·be·expanded·twice.·If·you·omit·it,·it |
97 | ····························would·be·expanded·when·defining·the·sect-1·macro | 89 | ····························would·be·expanded·when·defining·the·sect-1·macro |
98 | ····························and·when·using·it·later·in·the·template.·Generally | 90 | ····························and·when·using·it·later·in·the·template.·Generally |
99 | ····························it·is·a·good·idea·to·use·noexpand·whenever·you·use | 91 | ····························it·is·a·good·idea·to·use·noexpand·whenever·you·use |
100 | ····························expand·in·a·block·around·it. | 92 | ····························expand·in·a·block·around·it. |
101 | ····························To·close·this·example·we·show·how·to·expand·the | 93 | ····························To·close·this·example·we·show·how·to·expand·the |
102 | ····························sect-${sect-ctr}·blocks·in·the·template: | 94 | ····························sect-${sect-ctr}·blocks·in·the·template: |
95 | ···························· 1.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·include="header.hti"> | ||
103 | ···························· | 96 | ···························· 2.· ·<_.[_.[_.r_.e_.f_.]_.]_.s_.e_.t·sect-ctr="1"> |
104 | ····························[macroname2="macrovalue2"·...]·[GLOBAL]> | ||
105 | ···························· | 97 | ···························· 3.· ·<_.[_.[_.r_.e_.f_.]_.]_.w_.h_.i_.l_.e·sect-${sect-ctr}> |
98 | ···························· 4.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·sect-${sect-ctr}> | ||
99 | ···························· 5.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8n_\x8c·sect-ctr> | ||
100 | ···························· 6.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8w_\x8h_\x8i_\x8l_\x8e> | ||
101 | ···························· 7.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·include="footer.hti"> | ||
106 | ····························The·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8w_\x8h_\x8i_\x8l_\x8e·tag·in·line·3·checks·whether·the | 102 | ····························The·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8w_\x8h_\x8i_\x8l_\x8e·tag·in·line·3·checks·whether·the |
107 | ····························macro·sect-${sect-ctr}·is·defined.·If·it·is·defined | 103 | ····························macro·sect-${sect-ctr}·is·defined.·If·it·is·defined |
108 | ····························the·body·is·evaluated,·which·expands·the·macro·and | 104 | ····························the·body·is·evaluated,·which·expands·the·macro·and |
109 | ····························increases·sect-ctr.·Afterwards·the·while·condition | 105 | ····························increases·sect-ctr.·Afterwards·the·while·condition |
110 | ····························is·checked·again·to·check·for·sect-2·macro.·This | 106 | ····························is·checked·again·to·check·for·sect-2·macro.·This |
111 | ····························repeats·until·sect-${sect-ctr}·is·not·defined. | 107 | ····························repeats·until·sect-${sect-ctr}·is·not·defined. |
112 | ····························*\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8on\x8nc\x8cl\x8lu\x8us\x8si\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8* | 108 | ····························*\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8on\x8nc\x8cl\x8lu\x8us\x8si\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8* |
Offset 114, 15 lines modified | Offset 114, 17 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href=" | 121 | <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">][·...·truncated·by·diffoscope;·len:·68,·SHA:·fcdd9bde4faf4af64155c93fa7325687dd7ea9a3e880421fedc94b48ba0a6d2e·...·]</span><span·class="ebnf">]</span>></span><br> |
122 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
123 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
122 | <br> | 124 | <br> |
123 | </code></p> | 125 | </code></p> |
124 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
125 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary | 127 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary |
126 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the | 128 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the |
127 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> | 129 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> |
128 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you | 130 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you |
Offset 1, 26 lines modified | Offset 1, 26 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·O\x8OU\x8UT\x8TP\x8PU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·O\x8OU\x8UT\x8TP\x8PU\x8UT\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8Q_\x8U_\x8O_\x8T_\x8E·TAG·[ATTRIBUTE=VALUE·...]> | ||
5 | ·_\x8 | 4 | ·_\x8I_.n_.t_.r_.o_.d_.u_.c_.t_.i_.o_.n··············<_.[_.[_.r_.e_.f_.]_.]_.u_.s_.e·macroname·[parameters·...]·[noexpand]> |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················<...·$macroname·...> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<...·${macroname}·...> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e | ||
6 | · | 8 | ·HTP·Tags··················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
7 | ·_. | 9 | · ···_.A_.L_.T_.T_.E_.X_.T···············The·O\x8OU\x8UT\x8TP\x8PU\x8UT\x8T·tag·can·be·used·to·create·auxillary |
8 | · | 10 | · ···_.B_.L_.O_.C_.K·················files·besides·the·main·HTML·file.·The·text·between |
9 | · ···_\x8 | 11 | · ···_\x8B_.L_.O_.C_.K_.D_.E_.F··············this·tag·and·the·corresponding·</OUTPUT>·tag·is |
10 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················written·to·output·file. |
11 | · ···_\x8 | 13 | · ···_\x8F_.I_.L_.E··················Normally·the·outputfile·is·cleared·before·writing |
12 | · ···_\x8 | 14 | · ···_\x8I_.F····················to·it,·but·you·can·use·the·APPEND·attribute·to |
13 | · ···_\x8 | 15 | · ···_\x8I_.N_.C···················extend·an·existing·file.·The·text·written·to·the |
14 | · ···_\x8I_\x8 | 16 | · ···_\x8I_\x8M_.G···················file·is·normally·not·expanded,·i.e.·all·tags·inside |
15 | · ···_\x8I_\x8 | 17 | · ···_\x8I_\x8M_.A_.G_.E_.U_.R_.L··············this·block·are·not·executed·but·written·unmodified |
16 | · ···_\x8 | 18 | · ···_\x8O_.P_.T···················to·the·file.·However,·you·can·use·the·_\x8E_\x8X_\x8P_\x8A_\x8N_\x8D |
17 | · | 19 | ·[>]·_.O_.U_.T_.P_.U_.T················attribute·to·override·this·behaviour. |
18 | · ···_\x8O_\x8P_\x8T | ||
19 | ·[>]·_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E | 20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E |
21 | · ···_\x8S_\x8E_\x8T | 21 | · ···_\x8S_\x8E_\x8T |
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F | 22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F |
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T | 23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T |
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ | 24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ |
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | 25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E |
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | 26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- |
Offset 30, 14 lines modified | Offset 30, 16 lines modified | ||
30 | ·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 30 | ·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
31 | ·_\x8h_\x8t_\x8p_\x8·_\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t | 31 | ·_\x8h_\x8t_\x8p_\x8·_\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t |
32 | ·_\x8h_\x8t_\x8p_\x8·_\x8h_\x8o_\x8m_\x8e_\x8p_\x8a_\x8g_\x8e | 32 | ·_\x8h_\x8t_\x8p_\x8·_\x8h_\x8o_\x8m_\x8e_\x8p_\x8a_\x8g_\x8e |
33 | hosted·by | 33 | hosted·by |
34 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8f_\x8o_\x8r_\x8g_\x8e | 34 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8f_\x8o_\x8r_\x8g_\x8e |
35 | HTML·coding_\x8[_\x8P_\x8o_\x8w_\x8e_\x8r_\x8e_\x8d_\x8·_\x8b_\x8y | 35 | HTML·coding_\x8[_\x8P_\x8o_\x8w_\x8e_\x8r_\x8e_\x8d_\x8·_\x8b_\x8y |
Offset 114, 21 lines modified | Offset 114, 21 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href=" | 121 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>></span><br> |
122 | · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
122 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"1"</span>></span><br> | ||
123 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
124 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
125 | · ·<span·class="htp-tag"><<a·href=" | 123 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>></span><br> |
124 | · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
126 | ·<span·class="htp-tag"><<a·href=" | 125 | ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> |
127 | < | 126 | <br> |
127 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
128 | </code></p> | 128 | </code></p> |
129 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
130 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise | 130 | <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise |
131 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a | 131 | be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a |
132 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early | 132 | surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early |
133 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still | 133 | expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still |
134 | done·inside·a·quote·block. | 134 | done·inside·a·quote·block. |
Offset 1, 17 lines modified | Offset 1, 17 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·Q\x8QU\x8UO\x8OT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·Q\x8QU\x8UO\x8OT\x8TE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_.[_.[_.r_.e_.f_.]_.]_. | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· ·<_.[_.[_.r_.e_.f_.]_.]_.b_.l_.o_.c_.k_.d_.e_.f·name="bolditalic"> |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· · | 5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· · ·<b><i> |
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· ·<_.[_.[_.r_.e_.f_.]_.] | 6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l·················· · ·<_.[_.[_.r_.e_.f_.]_.]_.u_.s_.e·block> |
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e····················· · ·< | 7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e····················· · ·</i></b> |
8 | ·HTP·Tags·················· · | 8 | ·HTP·Tags·················· ·<_.[_.[_.r_.e_.f_.]_.]_./_.b_.l_.o_.c_.k_.d_.e_.f> |
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T··············· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8w_\x8h_\x8i_\x8l_\x8e> | ||
10 | · ···_\x8 | 9 | · ···_\x8A_.L_.T_.T_.E_.X_.T |
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K················· ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
12 | · ···_\x8D_\x8E_\x8F···················Q\x8QU\x8UO\x8OT\x8TE\x8E·is·used·to·quote·a·macro·that·would·otherwise | 12 | · ···_\x8D_\x8E_\x8F···················Q\x8QU\x8UO\x8OT\x8TE\x8E·is·used·to·quote·a·macro·that·would·otherwise |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················be·interpreted·by·HTP.·It·may·be·useful·in | 13 | · ···_\x8F_\x8I_\x8L_\x8E··················be·interpreted·by·HTP.·It·may·be·useful·in |
14 | · ···_\x8I_\x8F····················conjunction·with·a·surrounding·_\x8E_\x8X_\x8P_\x8A_\x8N_\x8Ded·block·to | 14 | · ···_\x8I_\x8F····················conjunction·with·a·surrounding·_\x8E_\x8X_\x8P_\x8A_\x8N_\x8Ded·block·to |
15 | · ···_\x8I_\x8N_\x8C···················prevent·early·expansion·of·some·contained·blocks. | 15 | · ···_\x8I_\x8N_\x8C···················prevent·early·expansion·of·some·contained·blocks. |
16 | · ···_\x8I_\x8M_\x8G···················Note·that·'$'·evaluation·is·still·done·inside·a | 16 | · ···_\x8I_\x8M_\x8G···················Note·that·'$'·evaluation·is·still·done·inside·a |
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············quote·block. | 17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············quote·block. |
Offset 114, 31 lines modified | Offset 114, 31 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="un | 121 | · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>></span><br> |
122 | 122 | ers·...]·[noexpand]><br> | |
123 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
124 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
123 | <br> | 125 | <br> |
124 | </code></p> | 126 | </code></p> |
125 | <h2>synopsis</h2> | 127 | <h2>synopsis</h2> |
126 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 128 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
127 | anywhere·in·the·HTML·document.··To·create·a·macro: | 129 | anywhere·in·the·HTML·document.··To·create·a·macro: |
128 | ··<p><code> | 130 | ··<p><code> |
131 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"header.hti"</span>></span><br> | ||
132 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"1"</span>></span><br> | ||
133 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
134 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
129 | <span·class="htp-tag"><<a·href=" | 135 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> |
130 | ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
131 | <span·class="htp-tag"><<a·href=" | 136 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>></span><br> |
137 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
132 | <br> | ||
133 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
134 | <br> | ||
135 | This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
136 | But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
137 | And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
138 | </code></p> | 138 | </code></p> |
139 | <P> | 139 | <P> |
140 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> | 140 | The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html"> |
141 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular | 141 | USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular |
142 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the | 142 | text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the |
143 | <A·HREF="use.html">'$'</A>·operator. | 143 | <A·HREF="use.html">'$'</A>·operator. |
144 | <P> | 144 | <P> |
Offset 1, 38 lines modified | Offset 1, 36 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·S\x8SE\x8ET\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·S\x8SE\x8ET\x8T·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_.[_.[_.r_.e_.f_.]_.]_. | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· · ·<_.[_.[_.r_.e_.f_.]_.]_.u_.n_.s_.e_.t·email_addr> |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8U_\x8N_\x8D_\x8E_\x8F·tagname1·tagname2·...·> | ||
6 | ·_\x8 | 5 | ·_\x8L_.i_.c_.e_.n_.s_.e···················ers·...]·[noexpand]> |
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<...·$macroname·...> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e·····················<...·${macroname}·...> | ||
8 | ·HTP·Tags | ||
7 | ·_. | 9 | · ···_.A_.L_.T_.T_.E_.X_.T···············*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
8 | · | 10 | · ···_.B_.L_.O_.C_.K·················S\x8SE\x8ET\x8T·creates·a·macro·definition·that·can·later·be |
9 | · ···_\x8 | 11 | · ···_\x8B_.L_.O_.C_.K_.D_.E_.F··············expanded·anywhere·in·the·HTML·document.·To·create·a |
10 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················macro: |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k·stuff> | ||
12 | · ···_\x8D_\x8E_\x8F··················· ·<a·href=$email>send·email</a> | ||
13 | · ···_\x8F_\x8I_\x8L_\x8E··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8 | 13 | · ···_\x8F_\x8I_\x8L_\x8E··················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_.i_.l_.e·include="header.hti"> |
14 | · ···_\x8I_\x8F | ||
15 | · ···_\x8I_\x8 | 14 | · ···_\x8I_\x8F···················· ·<_.[_.[_.r_.e_.f_.]_.]_.s_.e_.t·sect-ctr="1"> |
16 | · ···_\x8I_\x8 | 15 | · ···_\x8I_\x8N_.C··················· ·<_.[_.[_.r_.e_.f_.]_.]_.w_.h_.i_.l_.e·sect-${sect-ctr}> |
16 | · ···_\x8I_\x8M_\x8G··················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·sect-${sect-ctr}> | ||
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L·············· | 17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L·············· · ·<_.[_.[_.r_.e_.f_.]_.]_.i_.n_.c·sect-ctr> |
18 | · ···_\x8O_\x8P_\x8T···················e | 18 | · ···_\x8O_\x8P_\x8T··················· ·<_.[_.[_.r_.e_.f_.]_.]_./_.w_.h_.i_.l_.e> |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ | 19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················<_.[_.[_.r_.e_.f_.]_.]_.f_.i_.l_.e·include="footer.hti"> |
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················And·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·morestuff | ||
21 | ·[>]·_\x8S_\x8E_\x8T···················email="jnelson@crl.com"> | ||
22 | · ···_\x8 | 20 | · ···_\x8Q_.U_.O_.T_.E·················The·macro·"emailaddr"·can·then·be·expanded·later. |
23 | · | 21 | ·[>]·_.S_.E_.T···················The·_\x8U_\x8S_\x8E·tag·is·used·to·expand·the·macro·outside·a |
24 | · ···_\x8U_\x8 | 22 | · ···_\x8U_\x8N_.D_.E_.F·················tag·(i.e.,·into·the·regular·text).·If·the·macro |
25 | · ···_\x8 | 23 | · ···_\x8U_.N_.S_.E_.T·················needs·to·be·expanded·inside·a·markup·tag,·use·the |
26 | · ···_\x8 | 24 | · ···_\x8U_.S_.E_.,_.·_.$················_\x8'_\x8$_\x8'·operator. |
27 | · | 25 | · ···_.W_.H_.I_.L_.E·················Multiple·macros·can·be·declared·in·a·single·markup |
28 | · | 26 | · ···_.<_.!_.-_.-_.-·················tag,·as·the·second·syntax·line·shows. |
29 | ·_\x8 | 27 | ·_\x8H_.i_.s_.t_.o_.r_.y···················SET·should·only·be·used·for·a·single·line's·worth |
30 | ·· | 28 | ·_.W_.i_.s_.h_.·_.l_.i_.s_.t·················of·text.·Multi-line·macros·can·be·defined·with·the |
31 | · | 29 | ·_.B_.u_.g_.s······················_\x8B_\x8L_\x8O_\x8C_\x8K·tag.·The·_\x8B_\x8L_\x8O_\x8C_\x8K·tag·is·also·useful·if·the |
32 | ····························macro·contains·a·quotation·character·and·you·don't | 30 | ····························macro·contains·a·quotation·character·and·you·don't |
33 | ····························want·to·fool·around·with·special·escape·characters. | 31 | ····························want·to·fool·around·with·special·escape·characters. |
34 | ····························Macros·can·be·redefined·by·using·another·SET | 32 | ····························Macros·can·be·redefined·by·using·another·SET |
35 | ····························command·with·the·same·macro·name.·The·prior | 33 | ····························command·with·the·same·macro·name.·The·prior |
36 | ····························definition·will·be·destroyed,·however.·Also,·the | 34 | ····························definition·will·be·destroyed,·however.·Also,·the |
37 | ····························macro·can·be·removed·(destroyed)·with·the·_\x8U_\x8N_\x8S_\x8E_\x8T | 35 | ····························macro·can·be·removed·(destroyed)·with·the·_\x8U_\x8N_\x8S_\x8E_\x8T |
38 | ····························tag. | 36 | ····························tag. |
Offset 16, 10 lines modified | Offset 16, 10 lines modified | ||
16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> | 16 | <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr> |
17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> | 17 | <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr> |
18 | </table> | 18 | </table> |
19 | ···</td></tr> | 19 | ···</td></tr> |
20 | ··</table> | 20 | ··</table> |
21 | ··<hr> | 21 | ··<hr> |
22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 22 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
23 | ··last·updated· | 23 | ··last·updated·Thu·Dec·19,·2024 |
24 | ·</body> | 24 | ·</body> |
25 | </html> | 25 | </html> |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | ···············*\x8**\x8**\x8**\x8**\x8**\x8*·J\x8Jo\x8oc\x8ch\x8he\x8en\x8n·H\x8Ho\x8oe\x8en\x8ni\x8ic\x8ck\x8ke\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 1 | ···············*\x8**\x8**\x8**\x8**\x8**\x8*·J\x8Jo\x8oc\x8ch\x8he\x8en\x8n·H\x8Ho\x8oe\x8en\x8ni\x8ic\x8ck\x8ke\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
2 | Navigation·bar·[Photo] | 2 | Navigation·bar·[Photo] |
3 | _\x8M_\x8a_\x8i_\x8n···········R\x8Ro\x8oo\x8om\x8m:\x8:··Bld.52·00-020 | 3 | _\x8M_\x8a_\x8i_\x8n···········R\x8Ro\x8oo\x8om\x8m:\x8:··Bld.52·00-020 |
4 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e········P\x8Ph\x8ho\x8on\x8ne\x8e:\x8:·+49·761·203-8243 | 4 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e········P\x8Ph\x8ho\x8on\x8ne\x8e:\x8:·+49·761·203-8243 |
5 | ···············F\x8Fa\x8ax\x8x:\x8:···+49·761·203-8242 | 5 | ···············F\x8Fa\x8ax\x8x:\x8:···+49·761·203-8242 |
6 | =============================================================================== | 6 | =============================================================================== |
7 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. | 7 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. |
8 | last·updated· | 8 | last·updated·Thu·Dec·19,·2024 |
Offset 5, 9 lines modified | Offset 5, 9 lines modified | ||
5 | <meta·name="Generator"·content="htp·1.19"> | 5 | <meta·name="Generator"·content="htp·1.19"> |
6 | </head> | 6 | </head> |
7 | <body> | 7 | <body> |
8 | This·page·was·produced·by·htp. | 8 | This·page·was·produced·by·htp. |
9 | <hr> | 9 | <hr> |
10 | Copyright·by·Joe·Doe, | 10 | Copyright·by·Joe·Doe, |
11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, | 11 | <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>, |
12 | last·updated· | 12 | last·updated·Thu·Dec·19,·2024 |
13 | </body> | 13 | </body> |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | This·page·was·produced·by·htp. | 1 | This·page·was·produced·by·htp. |
2 | =============================================================================== | 2 | =============================================================================== |
3 | Copyright·by·Joe·Doe,·_\x8w_\x8e_\x8b_\x8m_\x8a_\x8s_\x8t_\x8e_\x8r_\x8@_\x8d_\x8o_\x8m_\x8a_\x8i_\x8n_\x8._\x8c_\x8o_\x8m,·last·updated· | 3 | Copyright·by·Joe·Doe,·_\x8w_\x8e_\x8b_\x8m_\x8a_\x8s_\x8t_\x8e_\x8r_\x8@_\x8d_\x8o_\x8m_\x8a_\x8i_\x8n_\x8._\x8c_\x8o_\x8m,·last·updated·Thu·Dec·19,·2024 |
Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
13 | <p> | 13 | <p> |
14 | As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | As·you·can·see·the·file·contains·almost·only·the·contents. |
15 | </p> | 15 | </p> |
16 | ···</td></tr> | 16 | ···</td></tr> |
17 | ··</table> | 17 | ··</table> |
18 | ··<hr> | 18 | ··<hr> |
19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br> |
20 | ··last·updated· | 20 | ··last·updated·Thu·Dec·19,·2024 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*\x8**\x8**\x8**\x8**\x8*·H\x8He\x8er\x8re\x8e·i\x8is\x8s·t\x8th\x8he\x8e·c\x8co\x8on\x8nt\x8te\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* | 1 | Navigation·bar·*\x8**\x8**\x8**\x8**\x8*·H\x8He\x8er\x8re\x8e·i\x8is\x8s·t\x8th\x8he\x8e·c\x8co\x8on\x8nt\x8te\x8en\x8nt\x8t·*\x8**\x8**\x8**\x8**\x8* |
2 | _\x8M_\x8a_\x8i_\x8n···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | _\x8M_\x8a_\x8i_\x8n···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e | 3 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. | 5 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. |
6 | last·updated· | 6 | last·updated·Thu·Dec·19,·2024 |
Offset 13, 10 lines modified | Offset 13, 10 lines modified | ||
13 | ·<p> | 13 | ·<p> |
14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. | 14 | ·As·you·can·see·the·file·contains·almost·only·the·contents. |
15 | ·</p> | 15 | ·</p> |
16 | ···</td></tr> | 16 | ···</td></tr> |
17 | ··</table> | 17 | ··</table> |
18 | ··<hr> | 18 | ··<hr> |
19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> | 19 | ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br> |
20 | ··last·updated· | 20 | ··last·updated·Thu·Dec·19,·2024 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*\x8**\x8**\x8**\x8**\x8*·H\x8He\x8er\x8re\x8e·a\x8ar\x8re\x8e·t\x8th\x8he\x8e·c\x8co\x8on\x8nt\x8te\x8en\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8* | 1 | Navigation·bar·*\x8**\x8**\x8**\x8**\x8*·H\x8He\x8er\x8re\x8e·a\x8ar\x8re\x8e·t\x8th\x8he\x8e·c\x8co\x8on\x8nt\x8te\x8en\x8nt\x8ts\x8s·*\x8**\x8**\x8**\x8**\x8* |
2 | _\x8M_\x8a_\x8i_\x8n···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | _\x8M_\x8a_\x8i_\x8n···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e | 3 | _\x8E_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. | 5 | Copyright·by·_\x8J_\x8o_\x8e_\x8·_\x8D_\x8o_\x8e. |
6 | last·updated· | 6 | last·updated·Thu·Dec·19,·2024 |
Offset 114, 15 lines modified | Offset 114, 18 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | 121 | <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-att[·...·truncated·by·diffoscope;·len:·130,·SHA:·250c2a1f29fa52e66c4b3a49cc16b915275b17d13297434323383066d3c4045e·...·]</span>></span><br> | |
122 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
123 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
124 | <br> | ||
122 | </code></p> | 125 | </code></p> |
123 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
124 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags | 127 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags |
125 | created·by·<A·HREF="def.html">DEF</A>·and·<A | 128 | created·by·<A·HREF="def.html">DEF</A>·and·<A |
126 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF | 129 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF |
127 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by | 130 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by |
128 | htp·until·it·is·reassigned.··</P> | 131 | htp·until·it·is·reassigned.··</P> |
Offset 1, 21 lines modified | Offset 1, 21 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8UN\x8ND\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8UN\x8ND\x8DE\x8EF\x8F·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_.[_.[_.r_.e_.f_.]_.]_.u_.s_.e·macroname·[parameters·...]·[noexpand]> |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················<...·$macroname·...> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<...·${macroname}·...> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e | ||
5 | · | 8 | ·HTP·Tags··················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
6 | · | 9 | · ···_.A_.L_.T_.T_.E_.X_.T···············U\x8UN\x8ND\x8DE\x8EF\x8F·removes·a·metatag·definition.·Metatags |
7 | · | 10 | · ···_.B_.L_.O_.C_.K·················created·by·_\x8D_\x8E_\x8F·and·_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F·can·be·removed·with·the |
8 | · | 11 | · ···_.B_.L_.O_.C_.K_.D_.E_.F··············UNDEF·command.·Once·removed,·the·metatag·will·no |
9 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················longer·be·recognized·by·htp·until·it·is·reassigned. |
10 | · ···_\x8 | 13 | · ···_\x8F_.I_.L_.E··················Multiple·metatags·can·be·removed·by·placing·each |
11 | · ···_\x8 | 14 | · ···_\x8I_.F····················name·as·an·attribute. |
12 | · ···_\x8D_\x8E_\x8F | ||
13 | · ···_\x8F_\x8I_\x8L_\x8E | ||
14 | · ···_\x8I_\x8F | ||
15 | · ···_\x8I_\x8N_\x8C | 15 | · ···_\x8I_\x8N_\x8C |
16 | · ···_\x8I_\x8M_\x8G | 16 | · ···_\x8I_\x8M_\x8G |
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L | 17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L |
18 | · ···_\x8O_\x8P_\x8T | 18 | · ···_\x8O_\x8P_\x8T |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T | 19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T |
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E | 20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E |
21 | · ···_\x8S_\x8E_\x8T | 21 | · ···_\x8S_\x8E_\x8T |
Offset 25, 14 lines modified | Offset 25, 17 lines modified | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | 25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E |
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | 26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- |
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | 27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y |
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | 28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t |
29 | ·_\x8B_\x8u_\x8g_\x8s | 29 | ·_\x8B_\x8u_\x8g_\x8s |
30 | ·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 30 | ·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
31 | ·_\x8h_\x8t_\x8p_\x8·_\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t | 31 | ·_\x8h_\x8t_\x8p_\x8·_\x8p_\x8r_\x8o_\x8j_\x8e_\x8c_\x8t |
32 | ·_\x8h_\x8t_\x8p_\x8·_\x8h_\x8o_\x8m_\x8e_\x8p_\x8a_\x8g_\x8e | 32 | ·_\x8h_\x8t_\x8p_\x8·_\x8h_\x8o_\x8m_\x8e_\x8p_\x8a_\x8g_\x8e |
33 | hosted·by | 33 | hosted·by |
34 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8f_\x8o_\x8r_\x8g_\x8e | 34 | _\x8S_\x8o_\x8u_\x8r_\x8c_\x8e_\x8f_\x8o_\x8r_\x8g_\x8e |
35 | HTML·coding_\x8[_\x8P_\x8o_\x8w_\x8e_\x8r_\x8e_\x8d_\x8·_\x8b_\x8y | 35 | HTML·coding_\x8[_\x8P_\x8o_\x8w_\x8e_\x8r_\x8e_\x8d_\x8·_\x8b_\x8y |
36 | _\x8h_\x8t_\x8p_\x8] | 36 | _\x8h_\x8t_\x8p_\x8] |
Offset 128, 20 lines modified | Offset 128, 31 lines modified | ||
128 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. | 128 | The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files. |
129 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or | 129 | (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or |
130 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The | 130 | <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The |
131 | old·macro·definition·will·be·removed·automatically.) | 131 | old·macro·definition·will·be·removed·automatically.) |
132 | <P> | 132 | <P> |
133 | For·example: | 133 | For·example: |
134 | ··<p><code> | 134 | ··<p><code> |
135 | · | 135 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> |
136 | · ·...<br> | ||
137 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | ||
138 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
136 | </code></p> | 139 | </code></p> |
137 | <P> | 140 | <P> |
138 | More·than·one·macro·may·be·removed·in·the·same·tag: | 141 | More·than·one·macro·may·be·removed·in·the·same·tag: |
139 | ··<p><code> | 142 | ··<p><code> |
143 | <span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>></span><br> | ||
144 | ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
145 | <span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> | ||
146 | <br> | ||
147 | <span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
148 | <br> | ||
149 | This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
140 | 150 | But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | |
151 | And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
141 | </code></p> | 152 | </code></p> |
142 | <p> | 153 | <p> |
143 | </td> | 154 | </td> |
144 | </tr> | 155 | </tr> |
145 | <tr> | 156 | <tr> |
146 | <td·width="20%"·bgcolor="white"·valign="bottom"> | 157 | <td·width="20%"·bgcolor="white"·valign="bottom"> |
147 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> | 158 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> |
Offset 10, 27 lines modified | Offset 10, 40 lines modified | ||
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················definition.·The·macro·is·subsequently·not·available | 10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················definition.·The·macro·is·subsequently·not·available |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············for·use·in·the·pre-processed·files.·(Note·that | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············for·use·in·the·pre-processed·files.·(Note·that |
12 | · ···_\x8D_\x8E_\x8F···················simply·redefining·the·macro·with·another·_\x8S_\x8E_\x8T·or | 12 | · ···_\x8D_\x8E_\x8F···················simply·redefining·the·macro·with·another·_\x8S_\x8E_\x8T·or |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················_\x8B_\x8L_\x8O_\x8C_\x8K·definition·with·the·same·name·is·acceptable. | 13 | · ···_\x8F_\x8I_\x8L_\x8E··················_\x8B_\x8L_\x8O_\x8C_\x8K·definition·with·the·same·name·is·acceptable. |
14 | · ···_\x8I_\x8F····················The·old·macro·definition·will·be·removed | 14 | · ···_\x8I_\x8F····················The·old·macro·definition·will·be·removed |
15 | · ···_\x8I_\x8N_\x8C···················automatically.) | 15 | · ···_\x8I_\x8N_\x8C···················automatically.) |
16 | · ···_\x8I_\x8M_\x8G···················For·example: | 16 | · ···_\x8I_\x8M_\x8G···················For·example: |
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L·············· · | 17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L·············· ·<_.[_.[_.r_.e_.f_.]_.]_.W_.H_.I_.L_.E·NOT·i="10"> |
18 | · ···_\x8O_\x8P_\x8T··················· · ·... | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8N_\x8C·i> | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8W_\x8H_\x8I_\x8L_\x8E> | ||
18 | · ···_\x8 | 21 | · ···_\x8S_.E_\x8T···················More·than·one·macro·may·be·removed·in·the·same·tag: |
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F·················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8b_\x8l_\x8o_\x8c_\x8k·stuff> | ||
23 | ·[>]·_\x8U_\x8N_\x8S_\x8E_\x8T················· ·<a·href=$email>send·email</a> | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k> | ||
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8n_\x8s_\x8e_\x8t·email_addr·home_url·login_name> | ||
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E | ||
21 | · ···_\x8S_\x8E_\x8T | ||
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F | ||
23 | ·[>]·_\x8U_\x8N_\x8S_\x8E_\x8T | ||
24 | · ···_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$ | ||
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E | 25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E |
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | 26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-·················<_.[_.[_.r_.e_.f_.]_.]_.s_.e_.t·morestuff=$email> |
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | 27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y |
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | ||
29 | ·_\x8 | 28 | ·_\x8W_.i_.s_.h_.·_.l_.i_.s_.t·················This·works:· · ·<_.[_.[_.r_.e_.f_.]_.]_.u_.s_.e·stuff |
29 | ·_\x8B_\x8u_\x8g_\x8s······················email="jnelson@crl.com"> | ||
30 | ····························But·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·email> | ||
31 | ····························And·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·morestuff | ||
32 | ····························email="jnelson@crl.com"> | ||
Offset 114, 18 lines modified | Offset 114, 18 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noexpand</span><span·class="ebnf">]</span>></span><br> | ||
122 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
123 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
124 | <br> | 121 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> |
122 | · ·...<br> | ||
123 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | ||
124 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
125 | </code></p> | 125 | </code></p> |
126 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
127 | <strong>USE</strong>·will·expand·macros·that·have·been·previously | 127 | <strong>USE</strong>·will·expand·macros·that·have·been·previously |
128 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A | 128 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A |
129 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other | 129 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other |
130 | markup·tags. | 130 | markup·tags. |
131 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will | 131 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will |
Offset 135, 23 lines modified | Offset 135, 21 lines modified | ||
135 | attribute·to·prevent·further·expansion.··</p> | 135 | attribute·to·prevent·further·expansion.··</p> |
136 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros | 136 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros |
137 | for·the·expanded·macro.··This·is·only·valid·for·<A | 137 | for·the·expanded·macro.··This·is·only·valid·for·<A |
138 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A | 138 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A |
139 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For | 139 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For |
140 | example:</p> | 140 | example:</p> |
141 | ··<p><code> | 141 | ··<p><code> |
142 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>></span><br> | ||
143 | <font·size="-2"> 2.·</font> ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>></span><br> | ||
144 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
145 | <font·size="-2"> 4.·</font> · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>></span><br> | ||
146 | <font·size="-2"> 5.·</font> · · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
142 | <font·size="-2"> | 147 | <font·size="-2"> 6.·</font> · ·<span·class="htp-tag"><<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>></span><br> |
143 | <font·size="-2"> 2.·</font> ·<span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span>send·email<span·class="htp-tag"></a></span><br> | ||
144 | <font·size="-2"> | 148 | <font·size="-2"> 7.·</font> ·<span·class="htp-tag"><<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>></span><br> |
145 | <font·size="-2"> 4.·</font><br> | ||
146 | <font·size="-2"> 5.·</font><span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>></span><br> | ||
147 | <font·size="-2"> 6.·</font><br> | ||
148 | <font·size="-2"> 7.·</font>This·works:· · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
149 | <font·size="-2"> 8.·</font>But·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>></span><br> | ||
150 | <font·size="-2"> 9.·</font>And·this·fails:·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
151 | </code></p> | 149 | </code></p> |
152 | <P> | 150 | <P> |
153 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on | 151 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on |
154 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and | 152 | line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and |
155 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 | 153 | the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8 |
156 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is | 154 | fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is |
157 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. | 155 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. |
Offset 162, 18 lines modified | Offset 160, 16 lines modified | ||
162 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or | 160 | Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or |
163 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. | 161 | any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used. |
164 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or | 162 | The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or |
165 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it | 163 | may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it |
166 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further | 164 | replaces·the·macro·name·by·the·contents·of·the·macro·without·further |
167 | processing·the·contents. | 165 | processing·the·contents. |
168 | ··<p><code> | 166 | ··<p><code> |
167 | <font·size="-2"> 1.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | ||
168 | <font·size="-2"> 2.·</font><span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
169 | <font·size="-2"> 1.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>></span><br> | ||
170 | <font·size="-2"> 2.·</font> · ·...<br> | ||
171 | <font·size="-2"> 3.·</font> · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | ||
172 | <font·size="-2"> 4.·</font> ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
173 | </code></p> | 169 | </code></p> |
174 | <P> | 170 | <P> |
175 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and | 171 | The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and |
176 | should·never·cause·confusion·with·surrounding·text.··If·no·curly | 172 | should·never·cause·confusion·with·surrounding·text.··If·no·curly |
177 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation | 173 | braces·are·used·the·macro·name·consists·either·of·a·single·punctuation |
178 | character·or·the·maximum·sequence·of·letters,·digits,·"-" | 174 | character·or·the·maximum·sequence·of·letters,·digits,·"-" |
179 | and·"_"·that·follows·it. | 175 | and·"_"·that·follows·it. |
Offset 187, 15 lines modified | Offset 183, 21 lines modified | ||
187 | delimiting·the·text·as·if·it·were·additional·markup·attributes. | 183 | delimiting·the·text·as·if·it·were·additional·markup·attributes. |
188 | If·the·'$'·macro·is·surrounded·by·other·text·(as·in·the·two·examples·above), | 184 | If·the·'$'·macro·is·surrounded·by·other·text·(as·in·the·two·examples·above), |
189 | quotation·marks·are·not·automatically·supplied. | 185 | quotation·marks·are·not·automatically·supplied. |
190 | <P> | 186 | <P> |
191 | Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and·can | 187 | Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and·can |
192 | be·nested.··This·is·valid: | 188 | be·nested.··This·is·valid: |
193 | ··<p><code> | 189 | ··<p><code> |
194 | 190 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"header.hti"</span>></span><br> | |
191 | ·<span·class="htp-tag"><<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"1"</span>></span><br> | ||
192 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
193 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></span>></span><br> | ||
194 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>></span><br> | ||
195 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>></span><br> | ||
196 | <span·class="htp-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
195 | </code></p> | 197 | </code></p> |
196 | <P>·The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined | 198 | <P>·The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined |
197 | metatag.··Note·that·<code>$ctr</code>·is·expanded·before·the·valueX | 199 | metatag.··Note·that·<code>$ctr</code>·is·expanded·before·the·valueX |
198 | macro·is·expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand | 200 | macro·is·expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand |
199 | value1. | 201 | value1. |
200 | <p> | 202 | <p> |
201 | </td> | 203 | </td> |
Offset 1, 39 lines modified | Offset 1, 36 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8US\x8SE\x8E,\x8,·$\x8$·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·U\x8US\x8SE\x8E,\x8,·$\x8$·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_.[_.[_.r_.e_.f_.]_.]_. | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· ·<_.[_.[_.r_.e_.f_.]_.]_.W_.H_.I_.L_.E·sect-$i> |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· | 5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e··················· · ·... |
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<...·${macroname}·...> | ||
7 | ·_\x8 | 6 | ·_\x8T_.u_.t_.o_.r_.i_.a_.l·················· · ·<_.[_.[_.r_.e_.f_.]_.]_.I_.N_.C·i> |
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e····················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8W_\x8H_\x8I_\x8L_\x8E> | ||
8 | ·HTP·Tags··················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* | 8 | ·HTP·Tags··················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············U\x8US\x8SE\x8E·will·expand·macros·that·have·been·previously | 9 | · ···_\x8A_\x8L_\x8T_\x8T_\x8E_\x8X_\x8T···············U\x8US\x8SE\x8E·will·expand·macros·that·have·been·previously |
10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················declared·with·either·_\x8S_\x8E_\x8T·or·_\x8B_\x8L_\x8O_\x8C_\x8K.·USE·can·only·be | 10 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K·················declared·with·either·_\x8S_\x8E_\x8T·or·_\x8B_\x8L_\x8O_\x8C_\x8K.·USE·can·only·be |
11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············used·outside·of·other·markup·tags. | 11 | · ···_\x8B_\x8L_\x8O_\x8C_\x8K_\x8D_\x8E_\x8F··············used·outside·of·other·markup·tags. |
12 | · ···_\x8D_\x8E_\x8F···················If·you·USE·a·block·macro·the·value·of·expanded | 12 | · ···_\x8D_\x8E_\x8F···················If·you·USE·a·block·macro·the·value·of·expanded |
13 | · ···_\x8F_\x8I_\x8L_\x8E··················block·macros·will·be·further·parsed·by·htp.·This·is | 13 | · ···_\x8F_\x8I_\x8L_\x8E··················block·macros·will·be·further·parsed·by·htp.·This·is |
14 | · ···_\x8I_\x8F····················maybe·not·what·you·want,·for·example,·if·the·use·is | 14 | · ···_\x8I_\x8F····················maybe·not·what·you·want,·for·example,·if·the·use·is |
15 | · ···_\x8I_\x8N_\x8C···················inside·a·block·which·_\x8e_\x8x_\x8p_\x8a_\x8n_\x8d_\x8s·itself.·You·can·use | 15 | · ···_\x8I_\x8N_\x8C···················inside·a·block·which·_\x8e_\x8x_\x8p_\x8a_\x8n_\x8d_\x8s·itself.·You·can·use |
16 | · ···_\x8I_\x8M_\x8G···················the·noexpand·attribute·to·prevent·further | 16 | · ···_\x8I_\x8M_\x8G···················the·noexpand·attribute·to·prevent·further |
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············expansion. | 17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············expansion. |
18 | · ···_\x8O_\x8P_\x8T···················USE·will·accept·additional·parameters,·which·are | 18 | · ···_\x8O_\x8P_\x8T···················USE·will·accept·additional·parameters,·which·are |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················"local"·macros·for·the·expanded·macro.·This·is·only | 19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················"local"·macros·for·the·expanded·macro.·This·is·only |
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················valid·for·_\x8B_\x8L_\x8O_\x8C_\x8K·macros.·Macros·created·using·_\x8S_\x8E_\x8T | 20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················valid·for·_\x8B_\x8L_\x8O_\x8C_\x8K·macros.·Macros·created·using·_\x8S_\x8E_\x8T |
21 | · ···_\x8S_\x8E_\x8T···················cannot·have·parameters·passed.·For·example: | 21 | · ···_\x8S_\x8E_\x8T···················cannot·have·parameters·passed.·For·example: |
22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· 1.·<_.[_.[_.r_.e_.f_.]_.]_. | 22 | · ···_\x8U_\x8N_\x8D_\x8E_\x8F················· 1.· ·<_.[_.[_.r_.e_.f_.]_.]_.s_.e_.t·sect-ctr="0"> |
23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T················· 2.· ·< | 23 | · ···_\x8U_\x8N_\x8S_\x8E_\x8T················· 2.· ·<_.[_.[_.r_.e_.f_.]_.]_.b_.l_.o_.c_.k_.d_.e_.f·name="section"> |
24 | ·[>]·_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················ 3.·<_.[_.[_.r_.e_.f_.]_.]_. | 24 | ·[>]·_\x8U_\x8S_\x8E_\x8,_\x8·_\x8$················ 3.· · ·<_.[_.[_.r_.e_.f_.]_.]_.i_.n_.c·sect-ctr> |
25 | · ···_\x8W_\x8H_\x8I_\x8L_\x8E················· 4. | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-················· 5.·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8s_\x8e_\x8t·morestuff=$email> | ||
27 | · | 25 | · ···_.W_.H_.I_.L_.E················· 4.· · ·<_.[_.[_.r_.e_.f_.]_.]_.b_.l_.o_.c_.k·name="sect-${sect-ctr}" |
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8-·················expand·global> | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y··················· 5.· · · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·block·noexpand> | ||
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t················· | 28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t················· 6.· · ·<_.[_.[_.r_.e_.f_.]_.]_./_.b_.l_.o_.c_.k> |
29 | ·_\x8B_\x8u_\x8g_\x8s······················ 7.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8b_\x8l_\x8o_\x8c_\x8k_\x8d_\x8e_\x8f> | ||
29 | ·_\x8B_\x8u_\x8g_\x8s······················email="jnelson@crl.com"> | ||
30 | ···························· 8.·But·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·email> | ||
31 | ···························· 9.·And·this·fails:·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·morestuff | ||
32 | ····························email="jnelson@crl.com"> | ||
33 | ····························(See·below·for·a·description·of·the·'$'·operator.) | 30 | ····························(See·below·for·a·description·of·the·'$'·operator.) |
34 | ····························The·example·on·line·7·works·because·"stuff"·has | 31 | ····························The·example·on·line·7·works·because·"stuff"·has |
35 | ····························been·declared·as·a·block·macro,·and·the·tag·is | 32 | ····························been·declared·as·a·block·macro,·and·the·tag·is |
36 | ····························passing·the·"email"·macro·to·the·"stuff"·macro. | 33 | ····························passing·the·"email"·macro·to·the·"stuff"·macro. |
37 | ····························Line·8·fails·because·the·"email"·macro·is | 34 | ····························Line·8·fails·because·the·"email"·macro·is |
38 | ····························unavailable·once·the·block·macro·is·completely | 35 | ····························unavailable·once·the·block·macro·is·completely |
39 | ····························expanded,·and·cannot·be·passed·to·a·SET·macro. | 36 | ····························expanded,·and·cannot·be·passed·to·a·SET·macro. |
Offset 43, 18 lines modified | Offset 40, 17 lines modified | ||
43 | ····························Inside·a·markup·tag,·like·_\x8I_\x8M_\x8G,·A·(anchor),·or·any | 40 | ····························Inside·a·markup·tag,·like·_\x8I_\x8M_\x8G,·A·(anchor),·or·any |
44 | ····························other·standard·HTML·or·htp·tag,·the·'$'·operator | 41 | ····························other·standard·HTML·or·htp·tag,·the·'$'·operator |
45 | ····························must·be·used.·The·'$'·should·be·immediately | 42 | ····························must·be·used.·The·'$'·should·be·immediately |
46 | ····························followed·by·the·macro·name,·which·may·or·may·not·be | 43 | ····························followed·by·the·macro·name,·which·may·or·may·not·be |
47 | ····························surrounded·by·curly·braces.·When·htp·encounters | 44 | ····························surrounded·by·curly·braces.·When·htp·encounters |
48 | ····························this·it·replaces·the·macro·name·by·the·contents·of | 45 | ····························this·it·replaces·the·macro·name·by·the·contents·of |
49 | ····························the·macro·without·further·processing·the·contents. | 46 | ····························the·macro·without·further·processing·the·contents. |
47 | ···························· 1.·<a·href="mailto:$email">mailto·hyperlink</a> | ||
48 | ···························· 2.·<a·href="http://$domain/~${username}/">another | ||
49 | ····························hyperlink</a> | ||
50 | ···························· 1.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8W_\x8H_\x8I_\x8L_\x8E·sect-$i> | ||
51 | ···························· 2.· · ·... | ||
52 | ···························· 3.· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8N_\x8C·i> | ||
53 | ···························· 4.· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8W_\x8H_\x8I_\x8L_\x8E> | ||
54 | ····························The·use·of·curly·braces·is·encouraged,·since·it·is | 50 | ····························The·use·of·curly·braces·is·encouraged,·since·it·is |
55 | ····························more·robust·and·should·never·cause·confusion·with | 51 | ····························more·robust·and·should·never·cause·confusion·with |
56 | ····························surrounding·text.·If·no·curly·braces·are·used·the | 52 | ····························surrounding·text.·If·no·curly·braces·are·used·the |
57 | ····························macro·name·consists·either·of·a·single·punctuation | 53 | ····························macro·name·consists·either·of·a·single·punctuation |
58 | ····························character·or·the·maximum·sequence·of·letters, | 54 | ····························character·or·the·maximum·sequence·of·letters, |
59 | ····························digits,·"-"·and·"_"·that·follows·it. | 55 | ····························digits,·"-"·and·"_"·that·follows·it. |
60 | ····························If·a·'$'·character·needs·to·be·kept·in·the·final | 56 | ····························If·a·'$'·character·needs·to·be·kept·in·the·final |
Offset 66, 15 lines modified | Offset 62, 21 lines modified | ||
66 | ····························it·with·quotation·marks·to·prevent·spaces·from | 62 | ····························it·with·quotation·marks·to·prevent·spaces·from |
67 | ····························delimiting·the·text·as·if·it·were·additional·markup | 63 | ····························delimiting·the·text·as·if·it·were·additional·markup |
68 | ····························attributes.·If·the·'$'·macro·is·surrounded·by·other | 64 | ····························attributes.·If·the·'$'·macro·is·surrounded·by·other |
69 | ····························text·(as·in·the·two·examples·above),·quotation | 65 | ····························text·(as·in·the·two·examples·above),·quotation |
70 | ····························marks·are·not·automatically·supplied. | 66 | ····························marks·are·not·automatically·supplied. |
71 | ····························Note·that·a·'$'·macro·can·be·placed·anywhere·in·a | 67 | ····························Note·that·a·'$'·macro·can·be·placed·anywhere·in·a |
72 | ····························markup·tag·and·can·be·nested.·This·is·valid: | 68 | ····························markup·tag·and·can·be·nested.·This·is·valid: |
73 | ···························· | 69 | ····························<_.[_.[_.r_.e_.f_.]_.]_.f_.i_.l_.e·include="header.hti"> |
70 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8s_\x8e_\x8t·sect-ctr="1"> | ||
71 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8w_\x8h_\x8i_\x8l_\x8e·sect-${sect-ctr}> | ||
72 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8u_\x8s_\x8e·sect-${sect-ctr}> | ||
73 | ···························· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8i_\x8n_\x8c·sect-ctr> | ||
74 | ···························· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8/_\x8w_\x8h_\x8i_\x8l_\x8e> | ||
75 | ····························<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8f_\x8i_\x8l_\x8e·include="footer.hti"> | ||
74 | ····························The·tagName·macro·can·contain·any·tag·name,·even·a | 76 | ····························The·tagName·macro·can·contain·any·tag·name,·even·a |
75 | ····························self-defined·metatag.·Note·that·$ctr·is·expanded | 77 | ····························self-defined·metatag.·Note·that·$ctr·is·expanded |
76 | ····························before·the·valueX·macro·is·expanded,·so·assuming | 78 | ····························before·the·valueX·macro·is·expanded,·so·assuming |
77 | ····························that·ctr·was·set·to·1·it·will·expand·value1. | 79 | ····························that·ctr·was·set·to·1·it·will·expand·value1. |
Offset 114, 35 lines modified | Offset 114, 36 lines modified | ||
114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> | 114 | ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr> |
115 | ··</table> | 115 | ··</table> |
116 | ··</div> | 116 | ··</div> |
117 | </td> | 117 | </td> |
118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> | 118 | <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top"> |
119 | <h2>syntax</h2> | 119 | <h2>syntax</h2> |
120 | ··<p><code> | 120 | ··<p><code> |
121 | 121 | <span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-att[·...·truncated·by·diffoscope;·len:·130,·SHA:·250c2a1f29fa52e66c4b3a49cc16b915275b17d13297434323383066d3c4045e·...·]</span>></span><br> | |
122 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
123 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>></span><br> | ||
124 | <br> | ||
122 | </code></p> | 125 | </code></p> |
123 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
124 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. | 127 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. |
125 | The·basic·form·is·shown·above. | 128 | The·basic·form·is·shown·above. |
126 | <P> | 129 | <P> |
127 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 130 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
128 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 131 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
129 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the | 132 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the |
130 | conditional·is·reversed: | 133 | conditional·is·reversed: |
131 | ··<p><code> | 134 | ··<p><code> |
135 | · ·<span·class="htp-tag"><<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>></span><br> | ||
132 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>></span><br> | ||
133 | · ·...<br> | ||
134 | · ·<span·class="htp-tag"><<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>></span><br> | ||
135 | ·<span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>></span><br> | ||
136 | </code></p> | 136 | </code></p> |
137 | <P> | 137 | <P> |
138 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a | 138 | Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a |
139 | macro's·existance: | 139 | macro's·existance: |
140 | ··<p><code> | 140 | ··<p><code> |
141 | 141 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>></span>mailto·hyperlink<span·class="htp-tag"></a></span><br> | |
142 | <span·class="htp-tag"><a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>></span>another·hyperlink<span·class="htp-tag"></a></span><br> | ||
142 | </code></p> | 143 | </code></p> |
143 | <P> | 144 | <P> |
144 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the | 145 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the |
145 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the | 146 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the |
146 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. | 147 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. |
147 | <P> | 148 | <P> |
148 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. | 149 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. |
Offset 1, 43 lines modified | Offset 1, 45 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·W\x8WH\x8HI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* | 2 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tp\x8p·o\x8on\x8n-\x8-l\x8li\x8in\x8ne\x8e·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·:\x8:·W\x8WH\x8HI\x8IL\x8LE\x8E·*\x8**\x8**\x8**\x8**\x8**\x8* |
3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* | 3 | _\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s···········*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8nt\x8ta\x8ax\x8x·*\x8**\x8**\x8**\x8**\x8* |
4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n·············· | 4 | ·_\x8I_\x8n_\x8t_\x8r_\x8o_\x8d_\x8u_\x8c_\x8t_\x8i_\x8o_\x8n··············<_.[_.[_.r_.e_.f_.]_.]_.u_.s_.e·macroname·[parameters·...]·[noexpand]> |
5 | ·_\x8L_\x8i_\x8c_\x8e_\x8n_\x8s_\x8e···················<...·$macroname·...> | ||
6 | ·_\x8T_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l··················<...·${macroname}·...> | ||
7 | ·_\x8U_\x8s_\x8a_\x8g_\x8e | ||
5 | · | 8 | ·HTP·Tags··················*\x8**\x8**\x8**\x8**\x8*·s\x8sy\x8yn\x8no\x8op\x8ps\x8si\x8is\x8s·*\x8**\x8**\x8**\x8**\x8* |
6 | · | 9 | · ···_.A_.L_.T_.T_.E_.X_.T···············W\x8WH\x8HI\x8IL\x8LE\x8E·is·the·building·block·for·repeated |
7 | · | 10 | · ···_.B_.L_.O_.C_.K·················processing.·The·basic·form·is·shown·above. |
8 | · | 11 | · ···_.B_.L_.O_.C_.K_.D_.E_.F··············"Conditional"·is·either·a·"compare"·or·"is·defined" |
9 | · ···_\x8 | 12 | · ···_\x8D_.E_.F···················operation.·A·compare·operator·is·a·test·of·the |
10 | · ···_\x8 | 13 | · ···_\x8F_.I_.L_.E··················value·of·a·macro·against·a·literal·string.·If·the |
11 | · ···_\x8 | 14 | · ···_\x8I_.F····················NOT·tag·is·present·in·the·WHILE·markup,·the |
12 | · ···_\x8 | 15 | · ···_\x8I_.N_.C···················evaluation·of·the·conditional·is·reversed: |
13 | · ···_\x8F_\x8I_\x8L_\x8E·················· ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8W_\x8H_\x8I_\x8L_\x8E·NOT·i="10"> | ||
14 | · ···_\x8I_\x8F···················· · ·... | ||
15 | · ···_\x8I_\x8N_\x8C··················· · ·<_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8N_\x8C·i> | ||
16 | · ···_\x8I_\x8M_\x8G··················· ·<_.[_.[_.r_.e_.f_.]_.]_. | 16 | · ···_\x8I_\x8M_\x8G··················· · ·<_.[_.[_.r_.e_.f_.]_.]_.u_.n_.s_.e_.t·email_addr·home_url·login_name> |
17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············Just·as·with·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·you·can·also·check·for·a | 17 | · ···_\x8I_\x8M_\x8A_\x8G_\x8E_\x8U_\x8R_\x8L··············Just·as·with·_\x8[_\x8[_\x8r_\x8e_\x8f_\x8]_\x8]_\x8I_\x8F·you·can·also·check·for·a |
18 | · ···_\x8O_\x8P_\x8T···················macro's·existance: | 18 | · ···_\x8O_\x8P_\x8T···················macro's·existance: |
19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················ | 19 | · ···_\x8O_\x8U_\x8T_\x8P_\x8U_\x8T················<a·href="mailto:$email">mailto·hyperlink</a> |
20 | · ···_\x8Q_\x8U_\x8O_\x8T_\x8E·················<a·href="http://$domain/~${username}/">another | ||
21 | · ···_\x8S_\x8E_\x8T···················hyperlink</a> | ||
20 | · ···_\x8 | 22 | · ···_\x8U_.N_.D_.E_.F·················If·the·condition·is·true,·the·block·is·evaluated |
21 | · ···_\x8S_.E_.T | 23 | · ···_\x8U_.N_.S_.E_.T·················and·afterwards·the·WHILE·tag·is·evaluated·again.·If |
22 | · ···_\x8U_\x8 | 24 | · ···_\x8U_\x8S_.E_.,_.·_.$················the·'$'-operator·is·used·in·the·WHILE·tag·it·is |
23 | · | 25 | ·[>]·_.W_.H_.I_.L_.E·················also·reevaluated·on·each·iteration. |
24 | · ···_\x8 | 26 | · ···_\x8<_.!_.-_.-_.-·················A·loop·block·m\x8mu\x8us\x8st\x8t·be·closed·with·the·/WHILE·tag. |
25 | ·[>]·_\x8W_\x8H_\x8I_\x8L_\x8E | ||
26 | · ···_\x8<_\x8!_\x8-_\x8-_\x8- | ||
27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y | 27 | ·_\x8H_\x8i_\x8s_\x8t_\x8o_\x8r_\x8y |
28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t | 28 | ·_\x8W_\x8i_\x8s_\x8h_\x8·_\x8l_\x8i_\x8s_\x8t |
29 | ·_\x8B_\x8u_\x8g_\x8s | 29 | ·_\x8B_\x8u_\x8g_\x8s |