Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·0ad6ccd2293d393baa985aa3d824693a·69956·debug·optional·htp-dbgsym_1.19-8_arm64.deb | 1 | ·0ad6ccd2293d393baa985aa3d824693a·69956·debug·optional·htp-dbgsym_1.19-8_arm64.deb |
2 | ·d | 2 | ·3580d1b9668d3b67c172ca871757f08b·119132·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···11 | 3 | -rw-r--r--···0········0········0···115324·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:·674 |
6 | Depends:·libc6·(>=·2.17) | 6 | Depends:·libc6·(>=·2.17) |
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)····67800·2020-06-14·23:21:19.000000·./usr/bin/htp | 4 | -rwxr-xr-x···0·root·········(0)·root·········(0)····67800·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)····14523·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)····14129·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)···· | 12 | -rw-r--r--···0·root·········(0)·root·········(0)····10143·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)·····3273·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz | 16 | -rw-r--r--···0·root·········(0)·root·········(0)·····3273·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz |
17 | -rw-r--r--···0·root·········(0)·root·········(0)····1 | 17 | -rw-r--r--···0·root·········(0)·root·········(0)····10397·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)····17542·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)····11658·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)····1 | 41 | -rw-r--r--···0·root·········(0)·root·········(0)····18829·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)····13218·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)···· | 50 | -rw-r--r--···0·root·········(0)·root·········(0)·····9751·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)····· | 52 | -rw-r--r--···0·root·········(0)·root·········(0)·····8277·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)···· | 54 | -rw-r--r--···0·root·········(0)·root·········(0)····13893·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)····1 | 67 | -rw-r--r--···0·root·········(0)·root·········(0)····15681·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)····· | 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)·····8690·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)·····8416·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html | 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)·····9 | 88 | -rw-r--r--···0·root·········(0)·root·········(0)·····9306·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)·····7804·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)····1 | 111 | -rw-r--r--···0·root·········(0)·root·········(0)····10449·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)····12 | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····12954·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)····1 | 117 | -rw-r--r--···0·root·········(0)·root·········(0)····10243·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 | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/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, 30 lines modified | Offset 114, 56 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=" | 121 | ·<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">time</span>=<span·class="htp-string">"0"</span>></span><br> |
122 | ·<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-value">a</span>></span><br> | ||
123 | · ·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> | ||
124 | ·<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> | ||
125 | ·<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-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
126 | · ·b·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> | ||
127 | ·<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> | ||
128 | ·<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">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
129 | ·<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">a</span>></span><br> | ||
130 | ·<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">b</span>></span><br> | ||
131 | ·contents·of·a:·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
132 | ·contents·of·b:·<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">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
133 | ·<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-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
134 | · ·c·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>;·<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">a</span>></span><br> | ||
135 | ·<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> | ||
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-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
137 | · ·d·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><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 | ·<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-value">e</span>></span><br> | ||
140 | · ·e·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
141 | ·<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> | ||
142 | ·<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">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
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">name</span>=<span·class="htp-value">a</span>></span><br> | ||
144 | · ·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> | ||
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 | ·<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">c</span>></span><br> | ||
147 | ·<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">d</span>></span><br> | ||
148 | ·<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">e</span>></span><br> | ||
122 | </code></p> | 149 | </code></p> |
123 | <h2>synopsis</h2> | 150 | <h2>synopsis</h2> |
124 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A | 151 | <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A |
125 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. | 152 | HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME. |
126 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the | 153 | Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the |
127 | filename·is·considered·in·all·comparisons. | 154 | filename·is·considered·in·all·comparisons. |
128 | <p> | 155 | <p> |
129 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT | 156 | When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT |
130 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to | 157 | attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to |
131 | be·overridden·on·specific·images·and·default·text·on·all·others. | 158 | be·overridden·on·specific·images·and·default·text·on·all·others. |
132 | <p> | 159 | <p> |
133 | For·example: | 160 | For·example: |
134 | ··<p><code> | 161 | ··<p><code> |
162 | <span·class="comment"><!---··This·comment·doesn't·appear·in·the·HTML·file·---></span><br> | ||
135 | <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> | ||
136 | <br> | ||
137 | </code></p> | 163 | </code></p> |
138 | <p> | 164 | <p> |
139 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | 165 | An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT |
140 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not | 166 | mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not |
141 | changed. | 167 | changed. |
142 | <p> | 168 | <p> |
143 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, | 169 | Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, |
Offset 1, 37 lines modified | Offset 1, 57 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·ALTTEXT·****** | 2 | ******·htp·on-line·reference·:·ALTTEXT·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· ·<[[ref]]set·time="0"> | ||
5 | Introduction· ·<[[ref]]block·name=a> | ||
6 | License······ · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· ·<[[ref]]/block> | ||
8 | Usage········ ·<[[ref]]block·name=b·expand> | ||
9 | HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
10 | [>]·ALTTEXT·· ·<[[ref]]/block> | ||
11 | ··BLOCK···· ·<[[ref]]set·time="1"> | ||
12 | ··BLOCKDEF· ·<[[ref]]use·a> | ||
13 | ··DEF······ ·<[[ref]]use·b> | ||
14 | ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
15 | ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
16 | ··INC······ ·<[[ref]]block·name=c·expand> | ||
17 | ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]block·name=d·expand> | ||
20 | ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
21 | ··QUOTE···· ·<[[ref]]/block> | ||
22 | ··SET······ ·<[[ref]]block·name=e> | ||
23 | ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]/block> | ||
25 | ··USE,_$··· ·<[[ref]]set·time="2"> | ||
26 | ··WHILE···· ·<[[ref]]block·name=a> | ||
27 | ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
28 | History······ ·<[[ref]]/block> | ||
29 | Wish_list···· ·<[[ref]]use·c> | ||
30 | Bugs········· ·<[[ref]]use·d> | ||
31 | ··············· ·<[[ref]]use·e> | ||
32 | ···············*****·synopsis·***** | ||
33 | ···············ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag·with·a·SRC·matching | ||
34 | ···············the·ALTTEXT·NAME.·Since·relative·paths·can·be·used·to·point·to·the | ||
35 | ···············same·image,·only·the·filename·is·considered·in·all·comparisons. | ||
36 | ···············When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an | ||
37 | ···············ALT·attribute·only·if·one·is·not·already·present.·This·allows·for·ALT | ||
38 | ···············text·to·be·overridden·on·specific·images·and·default·text·on·all | ||
39 | ···············others. | ||
40 | ···············For·example: | ||
4 | 41 | ···············<!---·This·comment·doesn't·appear·in·the·HTML·file·---> | |
5 | License····················---> | ||
6 | Tutorial···················*****·synopsis·***** | ||
7 | Usage······················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag | ||
8 | HTP·Tags···················with·a·SRC·matching·the·ALTTEXT·NAME.·Since | ||
9 | [>]·ALTTEXT················relative·paths·can·be·used·to·point·to·the·same | ||
10 | ··BLOCK··················image,·only·the·filename·is·considered·in·all | ||
11 | ··BLOCKDEF···············comparisons. | ||
12 | ··DEF····················When·an·IMG·tag·with·a·matching·source·is | ||
13 | ··FILE···················encountered,·htp·will·add·an·ALT·attribute·only·if | ||
14 | ··IF·····················one·is·not·already·present.·This·allows·for·ALT | ||
15 | ··INC····················text·to·be·overridden·on·specific·images·and | ||
16 | ··IMG····················default·text·on·all·others. | ||
17 | ··IMAGEURL···············For·example: | ||
18 | ··OPT····················<[[ref]]imageurl·url="imageurl"·[·path="path/in/ | ||
19 | ··OUTPUT·················local/filesystem"·]> | ||
20 | ··QUOTE | ||
21 | 42 | ···············An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT | |
22 | ··UNDEF··················removes·any·ALT·mapping·for·this·image.·Successing | ||
23 | 43 | ···············mapping·for·this·image.·Successing·IMG·tags·with·a·matching·SRC·name | |
44 | ···············are·not·changed. | ||
24 | 45 | ···············Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents, | |
46 | ···············ALTTEXT·is·most·appropriate·in·an·include_file·or·a·default_file. | ||
25 | ··WHILE··················a·set·of·documents,·ALTTEXT·is·most·appropriate·in | ||
26 | ··<!---··················an·include_file·or·a·default_file. | ||
27 | 47 | ···············In·addition·to·ALTTEXT,·htp·can·also·automatically·add·WIDTH·and | |
28 | 48 | ···············HEIGHT·attributes·to·IMG·tags. | |
29 | Bugs | ||
Offset 48, 17 lines modified | Offset 68, 18 lines modified | ||
48 | page_source | 68 | page_source |
49 | htp_project | 69 | htp_project |
50 | htp_homepage | 70 | htp_homepage |
51 | hosted·by | 71 | hosted·by |
52 | Sourceforge | 72 | Sourceforge |
53 | HTML·coding | 73 | HTML·coding |
74 | [Powered_by | ||
54 | htp] | 75 | htp] |
55 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 76 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
56 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 77 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
57 | ·····Maintainers:·Jochen_Hoenicke. | 78 | ·····Maintainers:·Jochen_Hoenicke. |
58 | Copyright·©·1995–96·Jim·Nelson. | 79 | Copyright·©·1995–96·Jim·Nelson. |
59 | Copyright·©·2001–2014·Jochen_Hoenicke. | 80 | Copyright·©·2001–2014·Jochen_Hoenicke. |
60 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 81 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
61 | 82 | terms·described·in·the·License_section. | |
62 | last·updated·Sat·May·16,·2015 | 83 | last·updated·Sat·May·16,·2015 |
Offset 114, 20 lines modified | Offset 114, 42 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="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">time</span>=<span·class="htp-string">"0"</span>></span><br> |
122 | · | 122 | ·<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-value">a</span>></span><br> |
123 | · ·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> | ||
123 | · | 124 | ·<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> |
124 | <br> | ||
125 | · ·<span·class="htp-tag"><centered></span><br> | ||
126 | · | 125 | ·<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-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> |
126 | · ·b·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> | ||
127 | ·<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> | ||
128 | ·<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">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
129 | ·<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">a</span>></span><br> | ||
130 | ·<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">b</span>></span><br> | ||
131 | ·contents·of·a:·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
132 | ·contents·of·b:·<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">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
133 | ·<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-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
134 | · ·c·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>;·<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">a</span>></span><br> | ||
135 | ·<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> | ||
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-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
137 | · ·d·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><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 | ·<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-value">e</span>></span><br> | ||
140 | · ·e·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
141 | ·<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> | ||
142 | ·<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">time</span>=<span·class="htp-string">"2"</span>></span><br> | ||
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">name</span>=<span·class="htp-value">a</span>></span><br> | ||
144 | · ·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> | ||
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 | ·<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">c</span>></span><br> | ||
147 | ·<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">d</span>></span><br> | ||
148 | ·<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">e</span>></span><br> | ||
127 | </code></p> | 149 | </code></p> |
128 | <h2>synopsis</h2> | 150 | <h2>synopsis</h2> |
129 | <P> | 151 | <P> |
130 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which | 152 | <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which |
131 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be | 153 | are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be |
132 | multi-line·definitions. | 154 | multi-line·definitions. |
133 | </P> | 155 | </P> |
Offset 1, 37 lines modified | Offset 1, 56 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** | 2 | ******·htp·on-line·reference·:·BLOCK,·/BLOCK·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]def·name="centered"> | ||
5 | License···················· · ·<p·align=center> | ||
6 | Tutorial··················· · ·<[[ref]]/def> | ||
7 | Usage | ||
8 | HTP·Tags··················· · ·<centered> | ||
9 | 4 | Contents······· ·<[[ref]]set·time="0"> | |
5 | Introduction· ·<[[ref]]block·name=a> | ||
6 | License······ · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· ·<[[ref]]/block> | ||
8 | Usage········ ·<[[ref]]block·name=b·expand> | ||
9 | HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
10 | ··ALTTEXT·· ·<[[ref]]/block> | ||
11 | [>]·BLOCK···· ·<[[ref]]set·time="1"> | ||
12 | ··BLOCKDEF· ·<[[ref]]use·a> | ||
13 | ··DEF······ ·<[[ref]]use·b> | ||
14 | ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
15 | ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
16 | ··INC······ ·<[[ref]]block·name=c·expand> | ||
17 | ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]block·name=d·expand> | ||
20 | ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
21 | ··QUOTE···· ·<[[ref]]/block> | ||
22 | ··SET······ ·<[[ref]]block·name=e> | ||
23 | ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]/block> | ||
25 | ··USE,_$··· ·<[[ref]]set·time="2"> | ||
26 | ··WHILE···· ·<[[ref]]block·name=a> | ||
27 | ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
28 | History······ ·<[[ref]]/block> | ||
29 | Wish_list···· ·<[[ref]]use·c> | ||
30 | Bugs········· ·<[[ref]]use·d> | ||
31 | ··············· ·<[[ref]]use·e> | ||
10 | 32 | ···············*****·synopsis·***** | |
11 | 33 | ···············BLOCK·and·/BLOCK·are·used·to·create·block·macros,·which·are·similar·in | |
34 | ···············use·to·SET·macros,·but·can·be·multi-line·definitions. | ||
12 | ··DEF····················which·are·similar·in·use·to·SET·macros,·but·can·be | ||
13 | ··FILE···················multi-line·definitions. | ||
14 | 35 | ···············Any·text·and·formatting·may·be·set·inside·the·block.·You·can·use·any | |
15 | ··INC····················block.·You·can·use·any·htp·or·user·defined·metatag | ||
16 | 36 | ···············htp·or·user·defined·metatag·including·FILE_INCLUDE.·The·metatags·won't | |
17 | 37 | ···············be·expanded·before·the·block·is·USEd·except·if·you·give·the·EXPAND | |
18 | 38 | ···············parameter. | |
19 | 39 | ···············The·block·macro·is·dereferenced·(expanded)·with·the·USE_tag_or_the_'$' | |
20 | ··QUOTE··················the·USE_tag_or_the_'$'_operator.·See·the·notes·on | ||
21 | 40 | ···············operator.·See·the·notes·on·the·USE·tag·on·how·to·pass·parameters·to·a | |
22 | ··UNDEF··················macro. | ||
23 | ··UNSET | ||
24 | ··USE,_$ | ||
25 | ··WHILE | ||
26 | ··<!--- | ||
27 | History | ||
28 | Wish_list | ||
29 | 41 | ···············block·macro. | |
Offset 42, 17 lines modified | Offset 61, 18 lines modified | ||
42 | page_source | 61 | page_source |
43 | htp_project | 62 | htp_project |
44 | htp_homepage | 63 | htp_homepage |
45 | hosted·by | 64 | hosted·by |
46 | Sourceforge | 65 | Sourceforge |
47 | HTML·coding | 66 | HTML·coding |
67 | [Powered_by | ||
48 | htp] | 68 | htp] |
49 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 69 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
50 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 70 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
51 | ·····Maintainers:·Jochen_Hoenicke. | 71 | ·····Maintainers:·Jochen_Hoenicke. |
52 | Copyright·©·1995–96·Jim·Nelson. | 72 | Copyright·©·1995–96·Jim·Nelson. |
53 | Copyright·©·2001–2014·Jochen_Hoenicke. | 73 | Copyright·©·2001–2014·Jochen_Hoenicke. |
54 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 74 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
55 | 75 | terms·described·in·the·License_section. | |
56 | last·updated·Sat·May·16,·2015 | 76 | last·updated·Sat·May·16,·2015 |
Offset 114, 34 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 | 121 | <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="ebnf">[</span><span·class="htp-att[·...·truncated·by·diffoscope;·len:·131,·SHA:·dfa8e31a602e3b7fb0fc8f3762f98811de3345b03298106f8b86bbbcb87fe011·...·]</span>></span><br> | |
122 | text·block<br> | ||
123 | <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> | ||
122 | <br> | 124 | <br> |
123 | ·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> | ||
124 | ·becomes·this·after·processing:·<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·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
125 | <br> | ||
126 | ·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">"../image/logo.gif"</span>></span><br> | ||
127 | ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
128 | <br> | ||
129 | ·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·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>></span><br> | ||
130 | ·remains·unchanged.<br> | ||
131 | </code></p> | 125 | </code></p> |
132 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
133 | <strong>BLOCKDEF</strong>·creates·block·<A | 127 | <strong>BLOCKDEF</strong>·creates·block·<A |
134 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it | 128 | HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it |
135 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block | 129 | creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block |
136 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and | 130 | as·additional·parameter.··This·block·is·surrounded·by·<tagname>·and |
137 | </tagname>.··The·contents·of·this·block·are·automatically·stored | 131 | </tagname>.··The·contents·of·this·block·are·automatically·stored |
138 | in·the·block·macro·named·BLOCK. | 132 | in·the·block·macro·named·BLOCK. |
139 | <P>·For·example:</P> | 133 | <P>·For·example:</P> |
140 | ··<p><code> | 134 | ··<p><code> |
135 | · ·<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> | ||
136 | · ·<span·class="htp-tag"><p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</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><br> | ||
138 | <br> | ||
139 | · ·<span·class="htp-tag"><centered></span><br> | ||
140 | · ·This·text·is·centered.<br> | ||
141 | er·processing:·<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·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
142 | <br> | ||
143 | ·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">"../image/logo.gif"</span>></span><br> | ||
144 | ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
145 | <br> | ||
146 | ·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·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>></span><br> | ||
147 | ·remains·unchanged.<br> | ||
141 | </code></p> | 148 | </code></p> |
142 | <p> | 149 | <p> |
143 | All·block·metatags·have·the·implicit·option·<a | 150 | All·block·metatags·have·the·implicit·option·<a |
144 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents | 151 | href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents |
145 | of·the·block·before·the·definition·is·expanded. | 152 | of·the·block·before·the·definition·is·expanded. |
146 | </p> | 153 | </p> |
147 | <p> | 154 | <p> |
Offset 1, 38 lines modified | Offset 1, 45 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** | 2 | ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> | ||
5 | Introduction | ||
6 | 4 | Contents·······<[[ref]]BLOCK·NAME="blockname"·[GLOBAL]·[EXPAND]> | |
5 | Introduction·text·block | ||
6 | License······<[[ref]]/BLOCK> | ||
7 | Tutorial | ||
8 | Usage········*****·synopsis·***** | ||
9 | HTP·Tags·····BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying | ||
10 | ··ALTTEXT··it·creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a | ||
11 | ··BLOCK····whole·block·as·additional·parameter.·This·block·is·surrounded·by | ||
12 | [>]·BLOCKDEF·<tagname>·and·</tagname>.·The·contents·of·this·block·are | ||
13 | ··DEF······automatically·stored·in·the·block·macro·named·BLOCK. | ||
14 | ··FILE·····For·example: | ||
15 | ··IF······· · ·<[[ref]]def·name="centered"> | ||
16 | ··INC······ · ·<p·align=center> | ||
17 | ··IMG······ · ·<[[ref]]/def> | ||
18 | ··IMAGEURL | ||
19 | ··OPT······ · ·<centered> | ||
20 | ··OUTPUT··· · ·This·text·is·centered. | ||
7 | | 21 | ··QUOTE····er·processing:·<[[ref]]img·src="logo.gif"·alt="Company·logo"> |
22 | ··SET | ||
8 | Usage········logo"> | ||
9 | HTP·Tags | ||
10 | ·· | 23 | ··UNDEF···· ·this·line:·<[[ref]]img·src="../image/logo.gif"> |
11 | ·· | 24 | ··UNSET···· ·will·also·have·an·ALT·attribute·appended·to·it |
12 | | 25 | ··USE,_$ |
13 | ·· | 26 | ··WHILE···· ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more |
14 | ·· | 27 | ··<!---····information!"> |
15 | | 28 | History······ ·remains·unchanged. |
16 | ··INC······*****·synopsis·***** | ||
17 | ··IMG······BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it | ||
18 | ··IMAGEURL·creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block·as | ||
19 | ··OPT······additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</ | ||
20 | ··OUTPUT···tagname>.·The·contents·of·this·block·are·automatically·stored·in·the | ||
21 | ··QUOTE····block·macro·named·BLOCK. | ||
22 | ··SET······For·example: | ||
23 | | 29 | Wish_list····All·block·metatags·have·the·implicit·option·EXPAND,·which·tells |
24 | | 30 | Bugs·········htp·to·expand·the·contents·of·the·block·before·the·definition·is |
31 | ···············expanded. | ||
25 | 32 | ···············A·more·thorough·discussion·and·more·elaborate·examples·are | |
26 | ··WHILE····the·metatag·section. | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | ||
30 | 33 | ···············discussed·in·the·metatag·section. | |
Offset 54, 10 lines modified | Offset 61, 10 lines modified | ||
54 | [Powered_by | 61 | [Powered_by |
55 | htp] | 62 | htp] |
56 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 63 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
57 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 64 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
58 | ·····Maintainers:·Jochen_Hoenicke. | 65 | ·····Maintainers:·Jochen_Hoenicke. |
59 | Copyright·©·1995–96·Jim·Nelson. | 66 | Copyright·©·1995–96·Jim·Nelson. |
60 | Copyright·©·2001–2014·Jochen_Hoenicke. | 67 | Copyright·©·2001–2014·Jochen_Hoenicke. |
61 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according | 68 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
62 | terms·described·in·the·License_section. | 69 | to·terms·described·in·the·License_section. |
63 | last·updated·Sat·May·16,·2015 | 70 | last·updated·Sat·May·16,·2015 |
Offset 114, 41 lines modified | Offset 114, 44 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> | ||
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=" | 121 | ·<span·class="htp-tag"><<a·href="alttext.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">alttext</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">text</span>=[·...·truncated·by·diffoscope;·len:·38,·SHA:·c02bd40b3f291a31f78d4f483bcf6b5822c560c0d562499478b931d39d24fb85·...·]"</span>></span><br> |
122 | <br> | ||
123 | ·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> | ||
124 | ·becomes·this·after·processing:·<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·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
125 | <br> | ||
126 | ·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">"../image/logo.gif"</span>></span><br> | ||
127 | ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
128 | <br> | ||
129 | ·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·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>></span><br> | ||
130 | ·remains·unchanged.<br> | ||
131 | mplatefilename"><br> | ||
129 | <br> | 132 | <br> |
130 | </code></p> | 133 | </code></p> |
131 | <h2>synopsis</h2> | 134 | <h2>synopsis</h2> |
132 | <p> | 135 | <p> |
133 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful | 136 | This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful |
134 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. | 137 | when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either. |
135 | Example: | 138 | Example: |
136 | </p> | 139 | </p> |
137 | ··<p><code> | 140 | ··<p><code> |
141 | · ·<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-tag"><<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">TIME</span>></span>,·<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">DATE</span>></span><span·class="htp-tag"></EM></span><br> | ||
138 | <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> | ||
139 | <br> | ||
140 | </code></p> | 142 | </code></p> |
141 | <p> | 143 | <p> |
142 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you | 144 | Note·that·these·comments·should·not·include·<·or·>,·that·is·you |
143 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something | 145 | should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something |
144 | like·this: | 146 | like·this: |
145 | </p> | 147 | </p> |
146 | ··<p><code> | 148 | ··<p><code> |
147 | 149 | <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">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="htp-attrib">[macroname2</span>=[·...·truncated·by·diffoscope;·len:·154,·SHA:·8dd6af61524486f20e2336702e9f9043e30ac32765ce4e8abd2c3b7829975cad·...·]>></span><br> | |
150 | <br> | ||
148 | </code></p> | 151 | </code></p> |
149 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the | 152 | <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the |
150 | reason·why·you·don't·want·to·include·this·block</p> | 153 | reason·why·you·don't·want·to·include·this·block</p> |
151 | <p> | 154 | <p> |
152 | </td> | 155 | </td> |
153 | </tr> | 156 | </tr> |
154 | <tr> | 157 | <tr> |
Offset 1, 41 lines modified | Offset 1, 39 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·<!---·****** | 2 | ******·htp·on-line·reference·:·<!---·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction···············<[[ref]]file·execute="command-line" | ||
5 | License····················(output="filename"·|·redirect)·[noerror]> | ||
6 | Tutorial···················<[[ref]]file·include="includefilename"·[parameters | ||
7 | Usage······················...]> | ||
8 | HTP·Tags···················<[[ref]]file·name> | ||
9 | ··ALTTEXT················<[[ref]]file·[·name="filename"·]·size[·= | ||
10 | ··BLOCK··················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> | ||
11 | ··BLOCKDEF···············<[[ref]]file·[·name="filename"·]·time[·="format" | ||
12 | ··DEF····················]> | ||
13 | ··FILE···················<[[ref]]file·[·name="filename"·]·date[·="format" | ||
14 | ··IF·····················]> | ||
15 | ··INC····················<[[ref]]file·search="searchpath"> | ||
16 | ··IMG····················<[[ref]]file·template="templatefilename"> | ||
17 | ··IMAGEURL | ||
18 | 4 | Contents······· ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> | |
5 | Introduction | ||
6 | License······ ·this·line:·<[[ref]]img·src="logo.gif"> | ||
7 | Tutorial····· ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company | ||
8 | Usage········logo"> | ||
9 | HTP·Tags | ||
10 | ··ALTTEXT·· ·this·line:·<[[ref]]img·src="../image/logo.gif"> | ||
11 | ··BLOCK···· ·will·also·have·an·ALT·attribute·appended·to·it | ||
12 | ··BLOCKDEF | ||
13 | ··DEF······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
14 | ··FILE·····information!"> | ||
15 | ··IF······· ·remains·unchanged. | ||
16 | ··INC······mplatefilename"> | ||
17 | ··IMG | ||
18 | ··IMAGEURL·*****·synopsis·***** | ||
19 | ··O | 19 | ··OPT······This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is |
20 | ··OUTPUT···useful·when·commenting·metatags,·since·the·metatags·do·not·appear·the | ||
20 | ··QUOTE··················the·output.·This·is·useful·when·commenting | ||
21 | ··SET····················metatags,·since·the·metatags·do·not·appear·the | ||
22 | ··U | 21 | ··QUOTE····output·either.·Example: |
22 | ··SET······ · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ | ||
23 | ··UNDEF····[ref]]FILE·DATE></EM> | ||
24 | ··UNSET····Note·that·these·comments·should·not·include·<·or·>,·that·is·you·should | ||
25 | ··USE,_$···not·use·it·to·comment·out·htp·code.·For·that·purpose·use·something·like | ||
26 | ··WHILE····this: | ||
27 | [>]·<!---····<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·] | ||
28 | History······[GLOBAL]> | ||
29 | Wish_list | ||
30 | Bugs·········Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the·reason | ||
31 | ···············why·you·don't·want·to·include·this·block | ||
23 | ··UNSET··················<[[ref]]imageurl·url="imageurl"·[·path="path/in/ | ||
24 | ··USE,_$·················local/filesystem"·]> | ||
25 | ··WHILE | ||
26 | [>]·<!---··················Note·that·these·comments·should·not·include·<·or | ||
27 | History····················>,·that·is·you·should·not·use·it·to·comment·out | ||
28 | Wish_list··················htp·code.·For·that·purpose·use·something·like | ||
29 | Bugs·······················this: | ||
30 | ····························· · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
31 | ·····························Make·sure·that·the·variable·is·never·defined·and | ||
32 | ·····························xyz·should·be·the·reason·why·you·don't·want·to | ||
33 | ·····························include·this·block | ||
Offset 53, 17 lines modified | Offset 51, 18 lines modified | ||
53 | page_source | 51 | page_source |
54 | htp_project | 52 | htp_project |
55 | htp_homepage | 53 | htp_homepage |
56 | hosted·by | 54 | hosted·by |
57 | Sourceforge | 55 | Sourceforge |
58 | HTML·coding | 56 | HTML·coding |
57 | [Powered_by | ||
59 | htp] | 58 | htp] |
60 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 59 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
61 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 60 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
62 | ·····Maintainers:·Jochen_Hoenicke. | 61 | ·····Maintainers:·Jochen_Hoenicke. |
63 | Copyright·©·1995–96·Jim·Nelson. | 62 | Copyright·©·1995–96·Jim·Nelson. |
64 | Copyright·©·2001–2014·Jochen_Hoenicke. | 63 | Copyright·©·2001–2014·Jochen_Hoenicke. |
65 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 64 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to |
66 | 65 | terms·described·in·the·License_section. | |
67 | last·updated·Sat·May·16,·2015 | 66 | last·updated·Sat·May·16,·2015 |
Offset 114, 23 lines modified | Offset 114, 42 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=" | 121 | ·<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">time</span>=<span·class="htp-string">"0"</span>></span><br> |
122 | ·<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-value">a</span>></span><br> | ||
123 | · ·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> | ||
124 | ·<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> | ||
125 | ·<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-value">b</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
126 | · ·b·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> | ||
127 | ·<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> | ||
128 | ·<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">time</span>=<span·class="htp-string">"1"</span>></span><br> | ||
123 | <span·class="htp-tag"><<a·href=" | 129 | ·<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">a</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=" | 130 | ·<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">b</span>></span><br> |
131 | ·contents·of·a:·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
132 | ·contents·of·b:·<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">b</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
133 | ·<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-value">c</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
134 | · ·c·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>;·<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">a</span>></span><br> | ||
135 | ·<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> | ||
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-value">d</span>·<span·class="htp-attrib">expand</span>></span><br> | ||
137 | · ·d·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><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 | ·<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-value">e</span>></span><br> | ||
140 | · ·e·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>></span><br> | ||
141 | ·<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> | ||
127 | <span·class="htp-tag"><<a·href=" | 142 | ·<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">time</span>=<span·class="htp-string">"2"</span>></span><br> |
128 | <span·class="htp-tag"><<a·href=" | 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">name</span>=<span·class="htp-value">a</span>></span><br> |
129 | <br> | 144 | · ·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> |
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 | ·<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">c</span>></span><br> | ||
147 | ·<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">d</span>></span><br> | ||
148 | ·<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">e</span>></span><br> | ||
130 | </code></p> | 149 | </code></p> |
131 | <h2>synopsis</h2> | 150 | <h2>synopsis</h2> |
132 | <p> | 151 | <p> |
133 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a | 152 | <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a |
134 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to | 153 | fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to |
135 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> | 154 | <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a> |
136 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. | 155 | tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name. |
Offset 144, 27 lines modified | Offset 163, 27 lines modified | ||
144 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | 163 | Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to |
145 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A | 164 | <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A |
146 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster | 165 | HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster |
147 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing | 166 | alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing |
148 | tag·with·a·preceding·slash.·For·example: | 167 | tag·with·a·preceding·slash.·For·example: |
149 | </P> | 168 | </P> |
150 | ··<p><code> | 169 | ··<p><code> |
170 | · ·<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>...<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> | ||
151 | · ·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> | ||
152 | · ·Last·modified·<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">TIME</span>></span>,·<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">DATE</span>></span><br> | ||
153 | </code></p> | 171 | </code></p> |
154 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, | 172 | <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though, |
155 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> | 173 | as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p> |
156 | <P> | 174 | <P> |
157 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were | 175 | Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were |
158 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with | 176 | a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with |
159 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their | 177 | the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their |
160 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | 178 | name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) |
161 | </P> | 179 | </P> |
162 | ··<p><code> | 180 | ··<p><code> |
163 | · ·<span·class="htp-tag"><<a·href="i | 181 | · ·<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"</spa[·...·truncated·by·diffoscope;·len:·89,·SHA:·6e9688a5d5e0aa6f5dc5e2257138cbb4a329e6cce13a529637101b9ed8114922·...·]>></span><br> |
182 | · ·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> | ||
164 | </code></p> | 183 | </code></p> |
165 | <P> | 184 | <P> |
166 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 185 | htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
167 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are | 186 | invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are |
168 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 187 | optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
169 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a | 188 | SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a |
170 | parameter·is·required,·simply·expand·it·without·first·checking.··When | 189 | parameter·is·required,·simply·expand·it·without·first·checking.··When |
Offset 1, 63 lines modified | Offset 1, 82 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** | 2 | ******·htp·on-line·reference·:·DEF,·/DEF·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents·······<[[ref]]file·execute="command-line"·(output="filename"·|·redirect) | ||
5 | Introduction·[noerror]> | ||
6 | 4 | Contents······· ·<[[ref]]set·time="0"> | |
5 | Introduction· ·<[[ref]]block·name=a> | ||
6 | License······ · ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial·····<[[ref]] | 7 | Tutorial····· ·<[[ref]]/block> |
8 | Usage········<[[ref]]file·[·name="filename"·]·size[·=·(byte|kbyte|mbyte|gbyte)·] | ||
9 | HTP·Tags·····[precision=n]> | ||
10 | ··ALTTEXT··<[[ref]]file·[·name="filename"·]·time[·="format"·]> | ||
11 | ··BLOCK····<[[ref]]file·[·name="filename"·]·date[·="format"·]> | ||
12 | ··BLOCKDEF·<[[ref]]file·search="searchpath"> | ||
13 | [>]·DEF······<[[ref]]file·template="templatefilename"> | ||
14 | ·· | 8 | Usage········ ·<[[ref]]block·name=b·expand> |
9 | HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>. | ||
10 | ··ALTTEXT·· ·<[[ref]]/block> | ||
11 | ··BLOCK···· ·<[[ref]]set·time="1"> | ||
12 | ··BLOCKDEF· ·<[[ref]]use·a> | ||
13 | [>]·DEF······ ·<[[ref]]use·b> | ||
14 | ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand> | ||
15 | ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand> | ||
16 | ··INC······ ·<[[ref]]block·name=c·expand> | ||
17 | ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> | ||
18 | ··IMAGEURL· ·<[[ref]]/block> | ||
19 | ··OPT······ ·<[[ref]]block·name=d·expand> | ||
20 | ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
21 | ··QUOTE···· ·<[[ref]]/block> | ||
22 | ··SET······ ·<[[ref]]block·name=e> | ||
23 | ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> | ||
24 | ··UNSET···· ·<[[ref]]/block> | ||
25 | ··USE,_$··· ·<[[ref]]set·time="2"> | ||
26 | ··WHILE···· ·<[[ref]]block·name=a> | ||
27 | ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. | ||
28 | History······ ·<[[ref]]/block> | ||
29 | Wish_list···· ·<[[ref]]use·c> | ||
30 | Bugs········· ·<[[ref]]use·d> | ||
31 | ··············· ·<[[ref]]use·e> | ||
15 | 32 | ···············*****·synopsis·***** | |
16 | 33 | ···············DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new | |
17 | 34 | ···············tags.·The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the | |
18 | ··IMAGEURL·not·used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name. | ||
19 | 35 | ···············USE·tag·is·not·used·to·expand·them.·Instead,·they·are·expanded·by | |
36 | ···············their·own·name.·For·example: | ||
20 | 37 | ···············<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]> | |
21 | ··QUOTE | ||
22 | 38 | ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to | |
23 | 39 | ···············and | |
24 | 40 | ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly | |
25 | 41 | ···············faster·alternative·is·to·use·two·metatags,·the·opening·tag·and·the | |
26 | 42 | ···············closing·tag·with·a·preceding·slash.·For·example: | |
27 | ··<!---···· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
28 | History······ · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
29 | Wish_list····NAME="image.gif"·DATE> | ||
30 | Bugs·········You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end | ||
31 | ···············tag.·It·is·not·that·slower. | ||
32 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a | ||
33 | ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute. | ||
34 | ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space | ||
35 | ···············(which·therefore·requires·they·be·surrounded·by·quotes.) | ||
36 | ··············· · ·<[[ref]]IF·name>...<[[ref]]/IF> | 43 | ··············· · ·<[[ref]]IF·name>...<[[ref]]/IF> |
44 | ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching | ||
45 | ···············end·tag.·It·is·not·that·slower. | ||
46 | ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it | ||
47 | ···············were·a·SET·macro.·Option·names·are·parameterized·with·the·OPTION | ||
48 | ···············attribute.·Multiple·options·can·be·listed·by·separating·their·name | ||
49 | ···············with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.) | ||
50 | ··············· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
51 | ···············email="jnelson@crl.com"> | ||
52 | ··············· · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
37 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is | 53 | ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is |
38 | ···············invoked.·htp·assumes·that·all·parameter·options·to·the·metatag·are | 54 | ···············invoked.·htp·assumes·that·all·parameter·options·to·the·metatag·are |
39 | ···············optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the | 55 | ···············optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the |
40 | ···············option·is·defined·before·expanding·it·in·the·block.·If | 56 | ···············SIZE·option·is·defined·before·expanding·it·in·the·block.·If·a |
41 | ···············required,·simply·expand·it·without·first·checking.·W | 57 | ···············parameter·is·required,·simply·expand·it·without·first·checking.·When |
42 | ···············metatag·and·the·macro·is·not·defined,·it·will·halt | 58 | ···············htp·expands·the·metatag·and·the·macro·is·not·defined,·it·will·halt |
43 | ···············complain·with·an·error·message·and·the·required·macr | 59 | ···············processing·and·complain·with·an·error·message·and·the·required·macro |
44 | ···············will·not·allow·parameters·not·listed·in·the·OPTION | 60 | ···············name.·Normally·htp·will·not·allow·parameters·not·listed·in·the·OPTION |
45 | ···············to·the·tag.·This·is·why·the·third·invocation·o | 61 | ···············attribute·to·be·added·to·the·tag.·This·is·why·the·third·invocation·of |
46 | ···············There·is·no·ALT·parameter·specified·in·the·OPTION | 62 | ···············HEADERIMG·will·fail.·There·is·no·ALT·parameter·specified·in·the·OPTION |
47 | ···············there·is·the·special·option·*,·which·matches·every | 63 | ···············attribute.·However,·there·is·the·special·option·*,·which·matches·every |
48 | ···············should·be·used·to·pass·all·other·options·t | 64 | ···············other·parameter.·It·should·be·used·to·pass·all·other·options·to |
65 | ···············another·tag. | ||
49 | ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both·open | 66 | ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both·open |
50 | ···············close·tags·must·be·removed·with·UNDEF.·Removing·one·will·n | 67 | ···············and·close·tags·must·be·removed·with·UNDEF.·Removing·one·will·not |
68 | ···············remove·both. | ||
51 | ···············Warning:·Although·possible,·def·should·not·be·used·to·override | 69 | ···············Warning:·Although·possible,·def·should·not·be·used·to·override |
52 | ···············HTML·and·htp·tag·names,·as·this·can·cause·much·confusion·a | 70 | ···············standard·HTML·and·htp·tag·names,·as·this·can·cause·much·confusion·and |
53 | ···············results.·The·def·tag·can·even·be·used·to·override·its·ow | 71 | ···············unexpected·results.·The·def·tag·can·even·be·used·to·override·its·own |
54 | ···············Because·of·the·problems·this·can·cause,·its·highly | 72 | ···············tag·name.·Because·of·the·problems·this·can·cause,·its·highly |
55 | ···············override·known·tag·names. | 73 | ···············recommended·to·not·override·known·tag·names. |
56 | ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of·the | 74 | ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of·the |
57 | ···············tutorial. | 75 | ···············tutorial. |
Offset 98, 28 lines modified | Offset 98, 33 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> | 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>=<sp[·...·truncated·by·diffoscope;·len:·150,·SHA:·5c1a64da34e196da682f00f9a1b875161254f608c4bc7c9dc14a3953ff4bf9b1·...·]</span>></span><br> |
106 | <font·size="-2"> 2.·</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">"includefilename"</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>></span><br> | ||
107 | <font·size="-2"> 3.·</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">name</span>></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"> 8.·</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">template</span>=<span·class="htp-string">"templatefilename"</span>></span><br> | ||
106 | <font·size="-2"> | 113 | <font·size="-2"> 9.·</font><br> |
107 | <font·size="-2"> 3.·</font> ·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> | ||
108 | <font·size="-2"> 4.·</font> ·becomes·this·after·processing:·<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·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>></span><br> | ||
109 | <font·size="-2"> 5.·</font><br> | ||
110 | <font·size="-2"> 6.·</font> ·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">"../image/logo.gif"</span>></span><br> | ||
111 | <font·size="-2"> 7.·</font> ·will·also·have·an·ALT·attribute·appended·to·it<br> | ||
112 | <font·size="-2"> 8.·</font><br> | ||
113 | <font·size="-2"> 9.·</font> ·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·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>></span><br> | ||
114 | <font·size="-2">10.·</font> ·remains·unchanged.<br> | ||
115 | </code></p> | 114 | </code></p> |
116 | This·produces·the·following: | 115 | This·produces·the·following: |
117 | ··<p><code> | 116 | ··<p><code> |
118 | 117 | <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·cla[·...·truncated·by·diffoscope;·len:·119,·SHA:·c0332c96dce159bd1f406c85b5c323ebcaf46fc22a0e77bc85c2a9d392d1f8f7·...·]>></span><br> | |
118 | <br> | ||
119 | me="/bigfont"><br> | ||
120 | · ·<span·class="htp-tag"></font></span><br> | ||
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><br> | ||
122 | <br> | ||
123 | ·<span·class="htp-tag"><bigfont></span>Some·large·text<span·class="htp-tag"></bigfont></span><br> | ||
119 | </code></p> | 124 | </code></p> |
120 | <P> | 125 | <P> |
121 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a | 126 | When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a |
122 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded | 127 | are·taken·literally,·however,·the·contents·for·b·are·already·expanded |
123 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it | 128 | so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it |
124 | is·used,·while·the·contents·of·b·are·already·expanded. | 129 | is·used,·while·the·contents·of·b·are·already·expanded. |
125 | </P> | 130 | </P> |
Offset 1, 56 lines modified | Offset 1, 63 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·global·and·expand·****** | 2 | ******·htp·on-line·reference·:·global·and·expand·****** |
3 | Table_of·········*****·The·global·attribute·***** | 3 | Table_of·········*****·The·global·attribute·***** |
4 | Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current | 4 | Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current |
5 | Introduction···scope·is·for·example·the·definition·of·a·metatag.·Once·th | 5 | Introduction···scope.·A·scope·is·for·example·the·definition·of·a·metatag.·Once·the |
6 | License········expanded·and·the·metatag·has·finished·the·macro·is | 6 | License········definition·is·expanded·and·the·metatag·has·finished·the·macro·is |
7 | Tutorial·······some·cases·you·want·to·define·a·macro·inside·a·metatag·and·use·it·later.·You | ||
8 | Usage··········can·do·this·with·the·global·attribute·that·you·can·add·to·[[ref]]set,·[ | ||
9 | | 7 | Tutorial·······automatically·removed.·In·some·cases·you·want·to·define·a·macro·inside·a |
8 | Usage··········metatag·and·use·it·later.·You·can·do·this·with·the·global·attribute·that | ||
9 | ··Command-···you·can·add·to·[[ref]]set,·[[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[ | ||
10 | ······line·······[ref]]blockdef·tags. | ||
10 | 11 | ··Options····*****·The·expand·attribute·***** | |
11 | ·· | 12 | ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all |
12 | 13 | ······macros·····block·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp | |
13 | ······macros·····evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and·macros·when·the | ||
14 | [>]·global_and·HTML·document·is·written·not·when·they're·stored·into·block·macros.·When·you | ||
15 | ······expand·····use·a·macro·defined·with·the·blockdef·tag·the·html·code·between·the·tags·is | ||
16 | HTP_Tags·······just·copied·literally·into·the·macro·named·block,·without·any·expansion·going | ||
17 | | 14 | [>]·global_and·uses·a·lazy·evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and |
15 | ······expand·····macros·when·the·HTML·document·is·written·not·when·they're·stored·into | ||
16 | HTP_Tags·······block·macros.·When·you·use·a·macro·defined·with·the·blockdef·tag·the | ||
17 | History········html·code·between·the·tags·is·just·copied·literally·into·the·macro·named | ||
18 | Wish_list······block,·without·any·expansion·going·on. | ||
18 | | 19 | Bugs···········However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is |
19 | 20 | ·················expanded·immediately.·This·is·useful·if·you·want·to·store·something·in·a | |
20 | ·················that·depends·on·the·current·value·of·another·macro.·This | 21 | ·················block·macro,·that·depends·on·the·current·value·of·another·macro.·This |
21 | ·················longer·have·the·correct·value·when·the·macro·is·expanded.·Here·is·some·code | ||
22 | ·················that·demonstrate·when·the·htp·tags·are·expanded: | ||
23 | ················· | 22 | ·················other·macro·may·no·longer·have·the·correct·value·when·the·macro·is |
23 | ·················expanded.·Here·is·some·code·that·demonstrate·when·the·htp·tags·are | ||
24 | ·················expanded: | ||
25 | ················· 1.<[[ref]]file·execute="command-line"·(output="filename"·|·redirect) | ||
26 | ·················[noerror]> | ||
27 | ················· 2.<[[ref]]file·include="includefilename"·[parameters·...]> | ||
28 | ················· 3.<[[ref]]file·name> | ||
29 | ················· 4.<[[ref]]file·[·name="filename"·]·size[·=·(byte|kbyte|mbyte|gbyte)·] | ||
30 | ·················[precision=n]> | ||
31 | ················· 5.<[[ref]]file·[·name="filename"·]·time[·="format"·]> | ||
32 | ················· 6.<[[ref]]file·[·name="filename"·]·date[·="format"·]> | ||
33 | ················· 7.<[[ref]]file·search="searchpath"> | ||
34 | ················· 8.<[[ref]]file·template="templatefilename"> | ||
24 | ················· | 35 | ················· 9. |
25 | ················· 3. ·this·line:·<[[ref]]img·src="logo.gif"> | ||
26 | ················· 4. ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company | ||
27 | ·················logo"> | ||
28 | ················· 5. | ||
29 | ················· 6. ·this·line:·<[[ref]]img·src="../image/logo.gif"> | ||
30 | ················· 7. ·will·also·have·an·ALT·attribute·appended·to·it | ||
31 | ················· 8. | ||
32 | ················· 9. ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more | ||
33 | ·················information!"> | ||
34 | ·················10. ·remains·unchanged. | ||
35 | ·················This·produces·the·following: | 36 | ·················This·produces·the·following: |
36 | ················· | 37 | ·················<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]> |
38 | ·················me="/bigfont"> | ||
39 | ················· · ·</font> | ||
40 | ················· ·<[[ref]]/def> | ||
41 | ················· ·<bigfont>Some·large·text</bigfont> | ||
37 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are | 42 | ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are |
38 | ·················literally,·however,·the·contents·for·b·are·already·expanded·so·th | 43 | ·················taken·literally,·however,·the·contents·for·b·are·already·expanded·so·the |
39 | ·················is·evaluated.·So·a·is·expanded·when·it·is·used,·while·th | 44 | ·················macro·time·is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the |
40 | ·················already·expanded. | 45 | ·················contents·of·b·are·already·expanded. |
41 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute | 46 | ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute |
42 | ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show | 47 | ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show |
43 | ·················what·the·value·of·the·block·macros·really·is. | 48 | ·················you·what·the·value·of·the·block·macros·really·is. |
44 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent | 49 | ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent |
45 | ·················expansion·and·to·restore·the·original·lazy·expansion·policy·when | 50 | ·················double·expansion·and·to·restore·the·original·lazy·expansion·policy·when |
46 | ·················use·the·expand·attribute·as·for·block·d·in·the·exampl | 51 | ·················you·have·to·use·the·expand·attribute·as·for·block·d·in·the·example |
47 | ·················example·in·the·[[ref]]metatag_tutorial.·Rule·of | 52 | ·················above.·See·the·section·example·in·the·[[ref]]metatag_tutorial.·Rule·of |
48 | ·················expanded·block·should·be·tagged·with·noexpand. | 53 | ·················thumb:·The·use·tags·in·an·expanded·block·should·be·tagged·with·noexpand. |
Offset 114, 26 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 | · ·a·is·expanded·at·time·1.<br> | ||
122 | · ·b·is·expanded·at·time·0.<br> | ||
123 | ·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> | ||
124 | ·contents·of·b:· ·b·is·expanded·at·time·0.<br> | ||
125 | · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.<br> | ||
126 | · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.<br> | ||
127 | · ·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> | ||
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-string">"filename"</span>·<span·class="htp-attrib">...</span>></span><br> | ||
122 | <br> | ||
123 | option="title"><br> | ||
124 | · <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> | ||
125 | · <span·class="htp-tag"><p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>></span><br> | ||
126 | · · <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> | ||
127 | · <span·class="htp-tag"></p></span><br> | ||
128 | ·<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> | ||
129 | <br> | ||
130 | ·<span·class="htp-tag"><section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>></span><br> | ||
131 | · ·This·is·a·fancy·section.<br> | ||
132 | ·<span·class="htp-tag"></section></span><br> | ||
133 | </code></p> | 128 | </code></p> |
134 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
135 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. | 130 | <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose. |
136 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of | 131 | The·output·file's·name,·the·current·date·and·time,·and·the·contents·of |
137 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be | 132 | another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be |
138 | added·to·the·output·file·as·well. | 133 | added·to·the·output·file·as·well. |
139 | <P> | 134 | <P> |
Offset 145, 27 lines modified | Offset 140, 38 lines modified | ||
145 | <P> | 140 | <P> |
146 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> | 141 | <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3> |
147 | <P> | 142 | <P> |
148 | 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 |
149 | 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 |
150 | type·of·information·to·be·displayed: | 145 | type·of·information·to·be·displayed: |
151 | ··<p><code> | 146 | ··<p><code> |
147 | ·<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> | ||
152 | <span·class="htp-tag"><<a·href=" | 148 | · ·<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> |
153 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">"0"</span>></span><br> | ||
154 | · <span·class="htp-tag"><tr></span><br> | ||
155 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
156 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
157 | · ·<span·class="htp-tag">< | 149 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> |
150 | · ·<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> | ||
151 | · ·<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> | ||
152 | · ·<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> | ||
153 | · ·<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> | ||
158 | · <span·class="htp-tag"></ | 154 | · · · ·<span·class="htp-tag"></FONT></span><br> |
159 | · <span·class="htp-tag"></ | 155 | · ·<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> |
160 | <span·class="htp-tag"><<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/ | 156 | ·<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> |
161 | <br> | 157 | <br> |
162 | paragraph<br> | ||
163 | <span·class="htp-tag"><imghr></span><br> | ||
164 | paragraph<br> | 158 | ·<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·[·...·truncated·by·diffoscope;·len:·24,·SHA:·aaa53532e2980e395c0c2528b77cd5835aa19805cd5a4d6344801a670cad77b6·...·]<br> |
159 | <br> | ||
160 | ·<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> | ||
161 | <br> | ||
162 | ·This·will·fail:<br> | ||
163 | ·<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> | ||
164 | <br> | ||
165 | ·Instead,·use·*·like·this:<br> | ||
166 | ·<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> | ||
167 | · ·<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> | ||
168 | ·<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> | ||
169 | · ·<br> | ||
170 | ·<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> | ||
165 | </code></p> | 171 | </code></p> |
166 | <P> | 172 | <P> |
167 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | 173 | For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the |
168 | information·is·displayed.··In·anything·other·than·byte·format,·the·information | 174 | information·is·displayed.··In·anything·other·than·byte·format,·the·information |
169 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number | 175 | is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number |
170 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional | 176 | of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional |
171 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no | 177 | PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no |
Offset 194, 22 lines modified | Offset 200, 26 lines modified | ||
194 | <P> | 200 | <P> |
195 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are | 201 | Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are |
196 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros | 202 | interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros |
197 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it | 203 | are·available·only·to·the·include·file·(and·any·macros·or·included·files·it |
198 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer | 204 | holds).··After·the·file·is·completely·included,·the·macros·are·no·longer |
199 | available.··So: | 205 | available.··So: |
200 | ··<p><code> | 206 | ··<p><code> |
207 | · ·<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> | ||
201 | · ·<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>...<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> | ||
202 | italic"><br> | ||
203 | · ·<span·class="htp-tag"><b></span><span·class="htp-tag"><i></span><br> | ||
204 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"> | 208 | · ·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> |
205 | 209 | eftsep.png"><span·class="htp-tag"></td></span><br> | |
210 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
211 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
212 | · <span·class="htp-tag"></tr></span><br> | ||
213 | · <span·class="htp-tag"></table></span><br> | ||
206 | | 214 | <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> |
207 | <br> | 215 | <br> |
208 | | 216 | paragraph<br> |
217 | <span·class="htp-tag"><imghr></span><br> | ||
218 | paragraph<br> | ||
209 | </code></p> | 219 | </code></p> |
210 | <P> | 220 | <P> |
211 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included | 221 | Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included |
212 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the | 222 | file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the |
213 | second·statement·will·fail.) | 223 | second·statement·will·fail.) |
214 | <P> | 224 | <P> |
215 | <h3><a·name="template">TEMPLATE</a></h3> | 225 | <h3><a·name="template">TEMPLATE</a></h3> |
Offset 1, 143 lines modified | Offset 1, 135 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·FILE·****** | 2 | ******·htp·on-line·reference·:·FILE·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·a·is·expanded·at·time·1. | ||
5 | Introduction· · ·b·is·expanded·at·time·0. | ||
6 | License······ ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>. | ||
7 | Tutorial····· ·contents·of·b:· ·b·is·expanded·at·time·0. | ||
8 | Usage········ · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. | ||
9 | HTP·Tags····· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. | ||
10 | ··ALTTEXT·· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use | ||
11 | ··BLOCK····time>. | ||
12 | ··BLOCKDEF·*****·synopsis·***** | ||
4 | Introduction·······<[[ref]]img·src="filename"·...> | ||
5 | License | ||
6 | Tutorial··········· option="title"> | ||
7 | Usage·············· · <h1><[[ref]]use·title></h1> | ||
8 | HTP·Tags··········· · <p·class="section"> | ||
9 | ··ALTTEXT········ · · <[[ref]]use·block> | ||
10 | ··BLOCK·········· · </p> | ||
11 | ··BLOCKDEF······· ·<[[ref]]/blockdef> | ||
12 | ··DEF | ||
13 | [>]·FILE··········· ·<section·title="My·Section"> | ||
14 | ··IF············· · ·This·is·a·fancy·section. | ||
15 | ··INC············ ·</section> | ||
16 | ··IMG············*****·synopsis·***** | ||
17 | ·· | 13 | ··DEF······FILE·has·several·optional·parameters·of·differing·purpose.·The·output |
14 | [>]·FILE·····file's·name,·the·current·date·and·time,·and·the·contents·of·another·file | ||
18 | ··OPT············purpose.·The·output·file's·name,·the·current·date·and | ||
19 | ··OUTPUT·········time,·and·the·contents·of·another·file·may·be·included. | ||
20 | ·· | 15 | ··IF·······may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the |
21 | ·· | 16 | ··INC······output·file·as·well. |
22 | ·· | 17 | ··IMG······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the |
23 | ·· | 18 | ··IMAGEURL·following·is·perfectly·acceptable: |
24 | ·· | 19 | ··OPT······ · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF> |
25 | ·· | 20 | ··OUTPUT···****·NAME,·TIME,·SIZE·**** |
26 | ·· | 21 | ··QUOTE····To·include·information·about·another·file,·such·as·an·archive·file·or |
27 | History············archive·file·or·graphic·image,·specify·its·name·with·the | ||
28 | Wish_list··········NAME·attribute·followed·by·the·type·of·information·to·be | ||
29 | Bugs···············displayed: | ||
30 | ····················· <[[ref]]def·name="imghr"> | ||
31 | ····················· · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
32 | ····················· · <tr> | ||
33 | ····················· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
34 | ····················· · ·<td·width="95%"·background="midsep.png"> </td> | ||
35 | ····················· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
36 | ····················· · </tr> | ||
37 | ··············· | 22 | ··SET······graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the |
23 | ··UNDEF····type·of·information·to·be·displayed: | ||
24 | ··UNSET···· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | ||
25 | ··USE,_$··· · ·<[[ref]]IF·size> | ||
26 | ··WHILE···· · · · ·<FONT·SIZE=${size}> | ||
27 | ··<!---···· · ·<[[ref]]/IF> | ||
28 | History······ · ·<[[ref]]IMG·SRC=pics/${src}> | ||
29 | Wish_list···· · ·<[[ref]]USE·title> | ||
30 | Bugs········· · ·<[[ref]]IF·size> | ||
31 | ··············· · · · ·</FONT> | ||
32 | ··············· · ·<[[ref]]/IF> | ||
38 | ··············· | 33 | ··············· ·<[[ref]]/DEF> |
34 | ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
39 | ····················· paragraph | ||
40 | ····················· <imghr> | ||
41 | ····················· paragraph | ||
42 | ·····················For·file·size·information,·the·value·BYTE,·KBYTE,·etc. | ||
43 | ·····················dictates·how·the·information·is·displayed.·In·anything | ||
44 | ·····················other·than·byte·format,·the·information·is·displayed·in | ||
45 | ·····················floating-point·notation.·The·amount·of·precision·(the | ||
46 | ·····················number·of·digits·to·the·right·of·the·decimal·point)·can | ||
47 | ·····················be·set·with·the·optional·PRECISION·attribute.·The·default | ||
48 | ·····················precision·is·zero·(0),·which·means·no·fractional·portion | ||
49 | ·····················is·displayed. | ||
50 | ·····················At·the·request·of·many·people,·the·TIME·and·DATE | ||
51 | ·····················attributes·will·now·accept·formatting·characters·that·are | ||
52 | ·····················passed·directly·into·the·ANSI·C·library·function.·This | ||
53 | ·····················allows·for·the·time·and·date·to·be·displayed·in·virtually | ||
54 | ·····················any·format.·Users·not·wishing·to·mess·around·with·this | ||
55 | ·····················should·stick·to·the·default·format,·which·is·used·if·no | ||
56 | ·····················formatting·value·is·specified·(i.e.,·just·using·05:04:11 | ||
57 | ·····················PM). | ||
58 | ·····················Consult·any·C·programmer's·guide·discussing·the·standard | ||
59 | ·····················C·library·function·strftime()·for·information·on·how·to | ||
60 | ·····················build·a·format·string.·If·unsure,·ask·an·experienced·C | ||
61 | ·····················programmer·for·help,·or·consider·just·sticking·to·the | ||
62 | ·····················default·formatting. | ||
63 | ·····················****·INCLUDE·**** | ||
64 | ·····················INCLUDE·files·are·pre-processed·as·any·other·file.·The | ||
65 | ·····················resulting·text·is·incorporated·into·the·HTML·output·as·if | ||
66 | ·····················the·file·had·been·copied·into·the·source·at·the·same | ||
67 | ·····················location·as·the·FILE·markup·tag. | ||
68 | ·····················htp·will·automatically·convert·slashes·and·backslashes·to | ||
69 | ·····················match·the·operating·system's·directory·separator. | ||
70 | ·····················Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag, | ||
71 | ·····················which·are·interpreted·as·macros·that·are·"passed"·to·the | ||
72 | ·····················included·file.·The·macros·are·available·only·to·the | ||
73 | ·····················include·file·(and·any·macros·or·included·files·it·holds). | ||
74 | ·····················After·the·file·is·completely·included,·the·macros·are·no | ||
75 | ·····················longer·available.·So: | ||
76 | ····················· · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
77 | ·····················italic"> | ||
78 | ····················· · ·<b><i> | ||
79 | ····················· · ·<[[ref]]use·block> | ||
80 | ····················· · ·</i></b> | ||
81 | ····················· ·<[[ref]]/blockdef> | ||
82 | ··············· | 35 | ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> |
36 | ··············· ·This·will·fail: | ||
37 | ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
38 | ··············· ·Instead,·use·*·like·this: | ||
39 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
40 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
41 | ··············· ·<[[ref]]/DEF> | ||
42 | ··············· · | ||
43 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
44 | ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the | ||
45 | ···············information·is·displayed.·In·anything·other·than·byte·format,·the | ||
46 | ···············information·is·displayed·in·floating-point·notation.·The·amount·of | ||
47 | ···············precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be | ||
48 | ···············set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero | ||
49 | ···············(0),·which·means·no·fractional·portion·is·displayed. | ||
50 | ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept | ||
51 | ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library | ||
52 | ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually | ||
53 | ···············any·format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the | ||
54 | ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e., | ||
Max diff block lines reached; 667/16929 bytes (3.94%) of diff not shown. |
Offset 114, 49 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="htp-tag"><<a·href=" | 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> | ||
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> | ||
122 | <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> | ||
123 | </code></p> | 130 | </code></p> |
124 | <h2>synopsis</h2> | 131 | <h2>synopsis</h2> |
125 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building | 132 | <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building |
126 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. | 133 | blocks·for·conditional·processing.··The·basic·form·is·shown·above. |
127 | <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A | 134 | <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 | 135 | compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal |
129 | string: | 136 | string: |
130 | ··<p><code> | 137 | ··<p><code> |
138 | <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">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="htp-attrib">[macroname2</span>=<span·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[GLOBAL]</span>></span><br> | ||
131 | <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">"imghr"</span>></span><br> | ||
132 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">"0"</span>></span><br> | ||
133 | · <span·class="htp-tag"><tr></span><br> | ||
134 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
135 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
136 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
137 | · <span·class="htp-tag"></tr></span><br> | ||
138 | · <span·class="htp-tag"></table></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> | 139 | <br> |
141 | paragraph<br> | ||
142 | <span·class="htp-tag"><imghr></span><br> | ||
143 | paragraph<br> | ||
144 | </code></p> | 140 | </code></p> |
145 | <P> | 141 | <P> |
146 | and·a·defined·operator·is·a·test·of·a·macro's·existance: | 142 | and·a·defined·operator·is·a·test·of·a·macro's·existance: |
147 | <P> | 143 | <P> |
148 | ··<p><code> | 144 | ··<p><code> |
145 | ·<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> | ||
149 | ·<span·class="htp-tag"><<a·href=" | 146 | · ·<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> |
150 | · ·<span·class="htp-tag"><b | 147 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> |
148 | · ·<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> | ||
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-value">pics/<span·class="htp-macro">${src}</span></span>></span><br> | ||
151 | · ·<span·class="htp-tag"><<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"> | 150 | · ·<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> |
152 | · ·<span·class="htp-tag">< | 151 | · ·<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> |
152 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
153 | · ·<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> | ||
153 | ·<span·class="htp-tag"><<a·href=" | 154 | ·<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> |
155 | <br> | ||
156 | ·<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> | ||
157 | <br> | ||
158 | ·<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> | ||
159 | <br> | ||
160 | ·This·will·fail:<br> | ||
161 | ·<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> | ||
154 | <br> | 162 | <br> |
155 | · | 163 | ·Instead,·use·*·like·this:<br> |
164 | ·<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> | ||
165 | · ·<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> | ||
166 | ·<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> | ||
167 | · ·<br> | ||
168 | ·<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> | ||
156 | </code></p> | 169 | </code></p> |
157 | <P> | 170 | <P> |
158 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the | 171 | If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
159 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that | 172 | conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that |
160 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the | 173 | evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the |
161 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block | 174 | ELSE·block·is·taken·if·it·is·present.··A·conditional·block |
162 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. | 175 | <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested. |
Offset 1, 48 lines modified | Offset 1, 59 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** | 2 | ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction·······<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/ | ||
5 | 4 | Contents······· ·<[[ref]]def·name="bigfont"> | |
5 | Introduction· · ·<font·size="+4"> | ||
6 | License······ ·<[[ref]]/def> | ||
6 | Tutorial | 7 | Tutorial |
8 | Usage········ ·<[[ref]]def·name="/bigfont"> | ||
9 | HTP·Tags····· · ·</font> | ||
10 | ··ALTTEXT·· ·<[[ref]]/def> | ||
11 | ··BLOCK | ||
12 | ··BLOCKDEF· ·<bigfont>Some·large·text</bigfont> | ||
7 | | 13 | ··DEF······*****·synopsis·***** |
8 | | 14 | ··FILE·····IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for |
9 | | 15 | [>]·IF·······conditional·processing.·The·basic·form·is·shown·above. |
10 | ··BLOCK··········above. | ||
11 | ·· | 16 | ··INC······"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A |
17 | ··IMG······compare·operator·is·a·test·of·the·value·of·a·macro·against·a | ||
18 | ··IMAGEURL·literal·string: | ||
19 | ··OPT······<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·] | ||
20 | ··OUTPUT···[GLOBAL]> | ||
21 | ··QUOTE | ||
12 | ··DEF············operation.·A·compare·operator·is·a·test·of·the·value·of·a | ||
13 | ··FILE···········macro·against·a·literal·string: | ||
14 | [>]·IF············· <[[ref]]def·name="imghr"> | ||
15 | ··INC············ · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
16 | ··IMG············ · <tr> | ||
17 | ··IMAGEURL······· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
18 | ··OPT············ · ·<td·width="95%"·background="midsep.png"> </td> | ||
19 | ··OUTPUT········· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
20 | ··QUOTE·········· · </tr> | ||
21 | ··SET············ · </table> | ||
22 | ··UNDEF·········· <[[ref]]/def> | ||
23 | ··UNSET | ||
24 | ··USE,_$········· paragraph | ||
25 | ··WHILE·········· <imghr> | ||
26 | ··<!---·········· paragraph | ||
27 | | 22 | ··SET······and·a·defined·operator·is·a·test·of·a·macro's·existance: |
28 | Wish_list·········· ·<[[ref]]blockdef·name="bolditalic"> | ||
29 | | 23 | ··UNDEF···· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> |
24 | ··UNSET···· · ·<[[ref]]IF·size> | ||
25 | ··USE,_$··· · · · ·<FONT·SIZE=${size}> | ||
26 | ··WHILE···· · ·<[[ref]]/IF> | ||
27 | ··<!---···· · ·<[[ref]]IMG·SRC=pics/${src}> | ||
28 | History······ · ·<[[ref]]USE·title> | ||
29 | Wish_list···· · ·<[[ref]]IF·size> | ||
30 | Bugs········· · · · ·</FONT> | ||
30 | ··············· | 31 | ··············· · ·<[[ref]]/IF> |
31 | ····················· · ·</i></b> | ||
32 | ··············· | 32 | ··············· ·<[[ref]]/DEF> |
33 | ··············· | 33 | ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> |
34 | ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
35 | ··············· ·This·will·fail: | ||
36 | ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
37 | ··············· ·Instead,·use·*·like·this: | ||
38 | ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
39 | ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
40 | ··············· ·<[[ref]]/DEF> | ||
41 | ··············· · | ||
42 | ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
34 | ··············· | 43 | ···············If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the |
44 | ···············conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that | ||
45 | ···············evaluates·to·true·is·chosen.·If·none·of·the·conditions·is·true·the | ||
35 | ·····················evaluation·of·the·conditional·is·reversed.·The·first·IF | ||
36 | ·····················or·ELSEIF·condition·that·evaluates·to·true·is·chosen.·If | ||
37 | ·····················none·of·the·conditions·is·true·the·ELSE·block·is·taken·if | ||
38 | ··················· | 46 | ···············ELSE·block·is·taken·if·it·is·present.·A·conditional·block·must·be |
39 | ················ | 47 | ···············closed·with·the·/IF·tag.·IF·tags·can·be·nested. |
Offset 61, 16 lines modified | Offset 72, 17 lines modified | ||
61 | page_source | 72 | page_source |
62 | htp_project | 73 | htp_project |
63 | htp_homepage | 74 | htp_homepage |
64 | hosted·by | 75 | hosted·by |
65 | Sourceforge | 76 | Sourceforge |
66 | HTML·coding | 77 | HTML·coding |
67 | [Powered_by | 78 | [Powered_by |
79 | htp] | ||
68 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 80 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
69 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 81 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
70 | ·····Maintainers:·Jochen_Hoenicke. | 82 | ·····Maintainers:·Jochen_Hoenicke. |
71 | Copyright·©·1995–96·Jim·Nelson. | 83 | Copyright·©·1995–96·Jim·Nelson. |
72 | Copyright·©·2001–2014·Jochen_Hoenicke. | 84 | Copyright·©·2001–2014·Jochen_Hoenicke. |
73 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 85 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
74 | 86 | to·terms·described·in·the·License_section. | |
75 | last·updated·Sat·May·16,·2015 | 87 | last·updated·Sat·May·16,·2015 |
Offset 114, 15 lines modified | Offset 114, 15 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="i | 121 | <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">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·clas[·...·truncated·by·diffoscope;·len:·164,·SHA:·770fc4be2492784ea0668edb391cff926c09d86cd3f422e839f9b20dc96b3ec2·...·]<span·class="ebnf">]</span>></span><br> |
122 | <br> | 122 | <br> |
123 | </code></p> | 123 | </code></p> |
124 | <h2>synopsis</h2> | 124 | <h2>synopsis</h2> |
125 | <P> | 125 | <P> |
126 | <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 |
127 | file·system.··declares·an·URL·replacement·that·is·used·for | 127 | file·system.··declares·an·URL·replacement·that·is·used·for |
128 | 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 |
Offset 137, 27 lines modified | Offset 137, 16 lines modified | ||
137 | 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 |
138 | 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. |
139 | 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 |
140 | looked·up·in·the·current·directory.</P> | 140 | looked·up·in·the·current·directory.</P> |
141 | <P> | 141 | <P> |
142 | For·example:</P> | 142 | For·example:</P> |
143 | ··<p><code> | 143 | ··<p><code> |
144 | · ·<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> | ||
145 | · ·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> | ||
144 | <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">"imghr"</span>></span><br> | ||
145 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">"0"</span>></span><br> | ||
146 | · <span·class="htp-tag"><tr></span><br> | ||
147 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
148 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
149 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
150 | · <span·class="htp-tag"></tr></span><br> | ||
151 | · <span·class="htp-tag"></table></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> | ||
153 | <br> | ||
154 | paragraph<br> | ||
155 | <span·class="htp-tag"><imghr></span><br> | ||
156 | paragraph<br> | ||
157 | </code></p> | 146 | </code></p> |
158 | <P> | 147 | <P> |
159 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as | 148 | If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as |
160 | an·undefine,·and·is·removed.</P> | 149 | an·undefine,·and·is·removed.</P> |
161 | <P> | 150 | <P> |
162 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout | 151 | Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout |
163 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an | 152 | a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an |
Offset 1, 50 lines modified | Offset 1, 39 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMAGEURL·****** | 2 | ******·htp·on-line·reference·:·IMAGEURL·****** |
3 | Table_of_Contents····*****·syntax·***** | 3 | Table_of_Contents····*****·syntax·***** |
4 | Introduction·······<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/ | ||
5 | | 4 | Introduction·······<[[ref]]INC·macroname1="increment1" |
5 | License············[macroname2="increment2"·...·]·[GLOBAL]> | ||
6 | Tutorial | 6 | Tutorial |
7 | Usage··············*****·synopsis·***** | 7 | Usage··············*****·synopsis·***** |
8 | HTP·Tags···········IMAGEURL·tells·htp,·where·to·find·images·on·the·local | 8 | HTP·Tags···········IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file |
9 | ··ALTTEXT········ | 9 | ··ALTTEXT········system.·declares·an·URL·replacement·that·is·used·for·size |
10 | ··BLOCK·········· | 10 | ··BLOCK··········lookups·in·any·IMG·tag.·This·definitions·takes·effect·only |
11 | ··BLOCKDEF······· | 11 | ··BLOCKDEF·······if·the·IMGXY·option·is·enabled.·Beacause·htp·can't·lookup |
12 | ··DEF············ | 12 | ··DEF············files·in·the·world·wide·web·you·have·to·map·absolute·image |
13 | ··FILE··········· | 13 | ··FILE···········URLs·to·a·directory·in·the·local·file·system. |
14 | ··IF·············system. | ||
15 | ··I | 14 | ··IF·············When·an·IMG·tag·is·encountered·where·htp·has·to·insert |
16 | ··I | 15 | ··INC············width·and·height·the·defined·URL·replacements·will·be |
17 | | 16 | ··IMG············taken·into·account·(later·definitions·take·precedence·to |
18 | | 17 | [>]·IMAGEURL·······earlier):·For·each·defined·imageurl·it·checks·(case- |
19 | ··O | 18 | ··OPT············insensitive)·if·it·is·a·prefix·of·the·image's·SRC |
20 | ·· | 19 | ··OUTPUT·········attribute.·If·it·matches·this·prefix·is·replaced·by·the |
21 | ·· | 20 | ··QUOTE··········given·PATH.·If·no·IMAGEURL·matches·the·SRC·is·considered |
22 | ·· | 21 | ··SET············as·relative·link·and·looked·up·in·the·current·directory. |
23 | ··UN | 22 | ··UNDEF··········For·example: |
23 | ··UNSET·········· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" | ||
24 | ··USE,_$·········email="jnelson@crl.com"> | ||
25 | ··WHILE·········· · ·This·tag·will·fail:·<[[ref]]USE·name> | ||
24 | ··USE,_$········· <[[ref]]def·name="imghr"> | ||
25 | ··WHILE·········· · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
26 | ··<!---·········· · <tr> | ||
27 | History············ · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
28 | Wish_list·········· · ·<td·width="95%"·background="midsep.png"> </td> | ||
29 | Bugs··············· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
30 | ····················· · </tr> | ||
31 | ····················· · </table> | ||
32 | ····················· <[[ref]]/def> | ||
33 | ····················· paragraph | ||
34 | ····················· <imghr> | ||
35 | ····················· paragraph | ||
36 | 26 | ··<!---··········If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute, | |
37 | 27 | History············it·is·treated·as·an·undefine,·and·is·removed. | |
38 | 28 | Wish_list··········Since·you·usually·need·the·url·mapping·for·a·number·of | |
39 | 29 | Bugs···············images·used·throughout·a·set·of·documents,·IMAGEURL·is | |
40 | ·····················most·appropriately·put·into·an·include_file·or·the | 30 | ·····················most·appropriately·put·into·an·include_file·or·the·htp.def |
41 | ····················· | 31 | ·····················file. |
42 | ·····················In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi- | 32 | ·····················In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi- |
43 | ·····················)automatically·add·an·ALT_text·attribute·to·IMG·tags. | 33 | ·····················)automatically·add·an·ALT_text·attribute·to·IMG·tags. |
Offset 114, 16 lines modified | Offset 114, 14 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 | · ·Last·modified·<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">TIME</span>></span>,·<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">DATE</span>></span><br> | ||
123 | </code></p> | 121 | </code></p> |
124 | <h2>synopsis</h2> | 122 | <h2>synopsis</h2> |
125 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified | 123 | <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified |
126 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage | 124 | image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage |
127 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially | 125 | of·not·having·to·determine·each·image's·size·manually,·which·is·especially |
128 | useful·if·the·image·may·change·frequently.·</P> | 126 | useful·if·the·image·may·change·frequently.·</P> |
129 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup | 127 | <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup |
Offset 1, 59 lines modified | Offset 1, 63 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·IMG·****** | 2 | ******·htp·on-line·reference·:·IMG·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Contents······· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes | ||
5 | Introduction· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE | ||
6 | License······NAME="image.gif"·DATE> | ||
7 | Tutorial·····*****·synopsis·***** | ||
8 | Usage········img·is·a·standard·HTML·tag.·htp·can·add·the·specified·image's·width·and | ||
9 | HTP·Tags·····height·to·the·tag·automatically.·This·has·the·advantage·of·not·having·to | ||
10 | ··ALTTEXT··determine·each·image's·size·manually,·which·is·especially·useful·if·the | ||
11 | ··BLOCK····image·may·change·frequently. | ||
12 | | 4 | Introduction···············*****·synopsis·***** |
5 | License····················img·is·a·standard·HTML·tag.·htp·can·add·the | ||
6 | Tutorial···················specified·image's·width·and·height·to·the·tag | ||
7 | Usage······················automatically.·This·has·the·advantage·of·not | ||
8 | HTP·Tags···················having·to·determine·each·image's·size·manually, | ||
9 | ··ALTTEXT················which·is·especially·useful·if·the·image·may·change | ||
10 | ··BLOCK··················frequently. | ||
11 | ··BLOCKDEF···············htp·adds·this·information·with·the·WIDTH·and | ||
12 | ··DEF····················HEIGHT·markup·attributes.·If·htp·detects·these | ||
13 | ·· | 13 | ··FILE···················attributes·are·already·present·in·the·tag,·it·will |
14 | ··FILE·····modify·the·values.·If·htp·cannot·find·the·image·file,·it·will·issue·a | ||
15 | ··IF·······warning·but·not·halt·processing. | ||
16 | ··INC······At·this·time,·GIF·(Graphic·Interchange·Format),·PNG·(Portable·Network | ||
17 | [>]·IMG······Graphics),·and·JFIF·(JPEG·File·Interchange·Format)·are·supported. | ||
18 | ··IMAGEURL·The·IMGXY_and_NOIMGXY·options·control·whether·or·not·htp·actually·adds | ||
19 | ··OPT······this·information·as·it·executes. | ||
20 | ··OUTPUT···Since·htp·is·able·to·lookup·files·only·in·the·local·filesystem,·the | ||
21 | ·· | 14 | ··IF·····················not·modify·the·values.·If·htp·cannot·find·the |
15 | ··INC····················image·file,·it·will·issue·a·warning·but·not·halt | ||
16 | [>]·IMG····················processing. | ||
17 | ··IMAGEURL···············At·this·time,·GIF·(Graphic·Interchange·Format), | ||
18 | ··OPT····················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG | ||
19 | ··OUTPUT·················File·Interchange·Format)·are·supported. | ||
20 | ··QUOTE··················The·IMGXY_and_NOIMGXY·options·control·whether·or | ||
21 | ··SET····················not·htp·actually·adds·this·information·as·it | ||
22 | ··UNDEF··················executes. | ||
23 | ··UNSET··················Since·htp·is·able·to·lookup·files·only·in·the | ||
24 | ··USE,_$·················local·filesystem,·the·IMAGEURL·tag·may·be·used·to | ||
25 | ··WHILE··················map·URLs·to·local·files. | ||
22 | ·· | 26 | ··<!---··················htp·can·also·add·default·ALT·text·to·IMG·tags |
27 | History····················using·ALTTEXT. | ||
23 | ··UNDEF | ||
24 | ··UNSET | ||
25 | ··USE,_$ | ||
26 | ··WHILE | ||
27 | ··<!--- | ||
28 | History | ||
29 | Wish_list | 28 | Wish_list |
30 | Bugs | 29 | Bugs |
31 | page_source | 30 | page_source |
32 | htp_project | 31 | htp_project |
33 | htp_homepage | 32 | htp_homepage |
34 | hosted·by | 33 | hosted·by |
35 | Sourceforge | 34 | Sourceforge |
35 | HTML·coding·[Powered_by | ||
36 | HTML·coding | ||
37 | [Powered_by | ||
38 | htp] | 36 | htp] |
39 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 37 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
40 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 38 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
41 | ·····Maintainers:·Jochen_Hoenicke. | 39 | ·····Maintainers:·Jochen_Hoenicke. |
42 | Copyright·©·1995–96·Jim·Nelson. | 40 | Copyright·©·1995–96·Jim·Nelson. |
43 | Copyright·©·2001–2014·Jochen_Hoenicke. | 41 | Copyright·©·2001–2014·Jochen_Hoenicke. |
44 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 42 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
45 | terms·described·in·the·License_section. | 43 | according·to·terms·described·in·the·License_section. |
46 | last·updated·Sat·May·16,·2015 | 44 | last·updated·Sat·May·16,·2015 |
Offset 114, 39 lines modified | Offset 114, 65 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="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">APPEND</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">EXPAND</span><span·class="ebnf">]</span>></span><br> | ||
122 | te | 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">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span[·...·truncated·by·diffoscope;·len:·54,·SHA:·ea3729541b3039acc2241609cd9d52acd13c077cc78183d728c23d4b0fbdc5a7·...·]<br> |
122 | · ·<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> | ||
123 | · · · ·<span·class="htp-tag"><FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>></span><br> | ||
124 | · ·<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> | ||
125 | · ·<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> | ||
126 | · ·<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> | ||
127 | · ·<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> | ||
128 | · · · ·<span·class="htp-tag"></FONT></span><br> | ||
129 | · ·<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> | ||
123 | <span·class="htp-tag"><<a·href=" | 130 | ·<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> |
124 | <br> | 131 | <br> |
132 | ·<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> | ||
133 | <br> | ||
134 | ·<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> | ||
135 | <br> | ||
136 | ·This·will·fail:<br> | ||
137 | ·<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> | ||
138 | <br> | ||
139 | ·Instead,·use·*·like·this:<br> | ||
140 | ·<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> | ||
141 | · ·<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> | ||
142 | ·<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> | ||
143 | · ·<br> | ||
144 | ·<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> | ||
125 | </code></p> | 145 | </code></p> |
126 | <h2>synopsis</h2> | 146 | <h2>synopsis</h2> |
127 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a | 147 | The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a |
128 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. | 148 | variable·or·for·variable·addition.··The·basic·form·is·shown·above. |
129 | <P> | 149 | <P> |
130 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a | 150 | The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a |
131 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The | 151 | literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The |
132 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an | 152 | macroname·must·be·the·name·of·a·defined·macro·that·contains·an |
133 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. | 153 | integer.··If·the·increment·is·ommitted·it·defaults·to·1. |
134 | The·effect·of·this·operation·is·that·the·macro·is·redefined | 154 | The·effect·of·this·operation·is·that·the·macro·is·redefined |
135 | to·contain·the·sum·of·its·previous·value·and·its·increment. | 155 | to·contain·the·sum·of·its·previous·value·and·its·increment. |
136 | <P> | 156 | <P> |
137 | To·increment·or·decrement·a·variable·you·can·use·this·form: | 157 | To·increment·or·decrement·a·variable·you·can·use·this·form: |
138 | ··<p><code> | 158 | ··<p><code> |
139 | | 159 | <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">"imghr"</span>></span><br> |
160 | · <span·class="htp-tag"><table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">"0"</span>></span><br> | ||
161 | · <span·class="htp-tag"><tr></span><br> | ||
162 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"leftsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
163 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>></span>&nbsp;<span·class="htp-tag"></td></span><br> | ||
164 | · ·<span·class="htp-tag"><td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>></span><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">"rightsep.png"</span>></span><span·class="htp-tag"></td></span><br> | ||
165 | · <span·class="htp-tag"></tr></span><br> | ||
140 | · | 166 | · <span·class="htp-tag"></table></span><br> |
141 | · ·<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> | ||
142 | · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
143 | | 167 | <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> |
144 | <br> | 168 | <br> |
145 | | 169 | paragraph<br> |
170 | <span·class="htp-tag"><imghr></span><br> | ||
171 | paragraph<br> | ||
146 | </code></p> | 172 | </code></p> |
147 | <p> | 173 | <p> |
148 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It | 174 | Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It |
149 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer | 175 | may·give·weired·results·when·used·on·arbitrary·strings.··The·integer |
150 | values·are·limited·to·the·range·-2^31..2^31. | 176 | values·are·limited·to·the·range·-2^31..2^31. |
151 | <P> | 177 | <P> |
152 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. | 178 | Note·further·that·htp·wasn't·designed·to·do·extensive·calculations. |
Offset 1, 45 lines modified | Offset 1, 64 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·INC·****** | 2 | ******·htp·on-line·reference·:·INC·****** |
3 | Table_of | 3 | Table_of·······*****·syntax·***** |
4 | Introduction··········<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND] | ||
5 | License···············[EXPAND]> | ||
6 | Tutorial··············text·block | ||
7 | Usage·················<[[ref]]/OUTPUT> | ||
8 | HTP·Tags | ||
9 | ··ALTTEXT···········*****·synopsis·***** | ||
10 | ··BLOCK·············The·INC·can·be·used·for·incrementing/decrementing·a | ||
11 | ··BLOCKDEF··········variable·or·for·variable·addition.·The·basic·form | ||
12 | 4 | Contents······· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> | |
5 | Introduction· · ·<[[ref]]IF·size> | ||
6 | License······ · · · ·<FONT·SIZE=${size}> | ||
7 | Tutorial····· · ·<[[ref]]/IF> | ||
8 | Usage········ · ·<[[ref]]IMG·SRC=pics/${src}> | ||
9 | HTP·Tags····· · ·<[[ref]]USE·title> | ||
10 | ··ALTTEXT·· · ·<[[ref]]IF·size> | ||
11 | ··BLOCK···· · · · ·</FONT> | ||
12 | ··BLOCKDEF· · ·<[[ref]]/IF> | ||
13 | ··DEF······ ·<[[ref]]/DEF> | ||
14 | ··FILE | ||
15 | ··IF······· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> | ||
16 | [>]·INC | ||
17 | ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> | ||
18 | ··IMAGEURL | ||
19 | ··OPT······ ·This·will·fail: | ||
20 | ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> | ||
21 | ··QUOTE | ||
22 | ··SET······ ·Instead,·use·*·like·this: | ||
23 | ··UNDEF···· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> | ||
24 | ··UNSET···· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> | ||
25 | ··USE,_$··· ·<[[ref]]/DEF> | ||
26 | ··WHILE···· · | ||
27 | ··<!---···· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> | ||
28 | History······*****·synopsis·***** | ||
29 | Wish_list····The·INC·can·be·used·for·incrementing/decrementing·a·variable·or | ||
30 | Bugs·········for·variable·addition.·The·basic·form·is·shown·above. | ||
13 | 31 | ···············The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be | |
32 | ···············a·literal·string·or·a·macro·preceeded·by·the·'$'-operator.·The | ||
14 | ··IF················integer.·It·can·be·a·literal·string·or·a·macro | ||
15 | [>]·INC···············preceeded·by·the·'$'-operator.·The·macroname·must | ||
16 | 33 | ···············macroname·must·be·the·name·of·a·defined·macro·that·contains·an | |
17 | 34 | ···············integer.·If·the·increment·is·ommitted·it·defaults·to·1.·The·effect | |
35 | ···············of·this·operation·is·that·the·macro·is·redefined·to·contain·the | ||
18 | ··OPT···············to·1.·The·effect·of·this·operation·is·that·the | ||
19 | ··OUTPUT············macro·is·redefined·to·contain·the·sum·of·its | ||
20 | 36 | ···············sum·of·its·previous·value·and·its·increment. | |
21 | 37 | ···············To·increment·or·decrement·a·variable·you·can·use·this·form: | |
22 | ··UNDEF·············this·form: | ||
23 | ··UNSET············· ·<[[ref]]blockdef·name="bolditalic"> | ||
24 | ··USE,_$············ · ·<b><i> | ||
25 | ··WHILE············· · ·<[[ref]]use·block> | ||
26 | 38 | ··············· <[[ref]]def·name="imghr"> | |
39 | ··············· · <table·border="0"·cellspacing="0"·cellpadding="0"> | ||
40 | ··············· · <tr> | ||
41 | ··············· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> | ||
42 | ··············· · ·<td·width="95%"·background="midsep.png"> </td> | ||
43 | ··············· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> | ||
44 | ··············· · </tr> | ||
45 | ··············· · </table> | ||
27 | 46 | ··············· <[[ref]]/def> | |
28 | Wish_list | ||
29 | Bugs·················· ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
47 | ··············· paragraph | ||
48 | ··············· <imghr> | ||
49 | ··············· paragraph | ||
30 | ··············· | 50 | ···············Note·that·INC·doesn't·check·if·the·strings·really·denote·integers. |
51 | ···············It·may·give·weired·results·when·used·on·arbitrary·strings.·The | ||
31 | ························denote·integers.·It·may·give·weired·results·when | ||
32 | ························used·on·arbitrary·strings.·The·integer·values·are | ||
33 | ················ | 52 | ···············integer·values·are·limited·to·the·range·-2^31..2^31. |
34 | ··············· | 53 | ···············Note·further·that·htp·wasn't·designed·to·do·extensive |
54 | ···············calculations.·The·INC·tag·is·useful·in·conjunction·with·WHILE·to | ||
55 | ···············iterate·over·the·defined·blocks. | ||
35 | ························extensive·calculations.·The·INC·tag·is·useful·in | ||
36 | ························conjunction·with·WHILE·to·iterate·over·the·defined | ||
37 | ························blocks. | ||
Offset 57, 17 lines modified | Offset 76, 18 lines modified | ||
57 | page_source | 76 | page_source |
58 | htp_project | 77 | htp_project |
59 | htp_homepage | 78 | htp_homepage |
60 | hosted·by | 79 | hosted·by |
61 | Sourceforge | 80 | Sourceforge |
62 | HTML·coding·[Powered | ||
63 | 81 | HTML·coding | |
82 | [Powered_by | ||
83 | htp] | ||
64 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 84 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
65 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 85 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
66 | ·····Maintainers:·Jochen_Hoenicke. | 86 | ·····Maintainers:·Jochen_Hoenicke. |
67 | Copyright·©·1995–96·Jim·Nelson. | 87 | Copyright·©·1995–96·Jim·Nelson. |
68 | Copyright·©·2001–2014·Jochen_Hoenicke. | 88 | Copyright·©·2001–2014·Jochen_Hoenicke. |
69 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 89 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according |
70 | 90 | to·terms·described·in·the·License_section. | |
71 | last·updated·Sat·May·16,·2015 | 91 | last·updated·Sat·May·16,·2015 |
Offset 88, 16 lines modified | Offset 88, 22 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=" | 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> | ||
96 | <font·size="-2"> | 102 | <font·size="-2"> 8.·</font><br> |
97 | </code></p> | 103 | </code></p> |
98 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | 104 | <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. |
99 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. | 105 | The·html·code·which·implements·this·rule·is·following·in·lines·2-8. |
100 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and | 106 | between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and |
101 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this | 107 | <code>/def</code></a>·tags.··You·don't·have·to·understand·this |
102 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to | 108 | html·code,·but·you·should·understand·that·this·is·just·pure·html·to |
103 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> | 109 | draw·the·fancy·rule.·Every·time·you·write·<code><imghr></code> |
Offset 121, 28 lines modified | Offset 127, 25 lines modified | ||
121 | </code></p> | 127 | </code></p> |
122 | <h2>Using·parameters</h2> | 128 | <h2>Using·parameters</h2> |
123 | <p>·More·sophisticated·tags·accept·parameters.··The | 129 | <p>·More·sophisticated·tags·accept·parameters.··The |
124 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be | 130 | <code>option</code>·parameter·lets·multiple·metatag·parameters·be |
125 | named·and·expanded·inside·the·<code>def</code>·or | 131 | named·and·expanded·inside·the·<code>def</code>·or |
126 | <code>blockdef</code>·block:·</p> | 132 | <code>blockdef</code>·block:·</p> |
127 | ··<p><code> | 133 | ··<p><code> |
134 | <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">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
128 | <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">conditional</span>></span><br> | ||
129 | <font·size="-2"> 2.·</font> · ·block<br> | ||
130 | <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><br> | ||
131 | <font·size="-2"> 4.·</font><br> | ||
132 | </code></p> | 135 | </code></p> |
133 | <h2>Saving·blocks·for·later</h2> | 136 | <h2>Saving·blocks·for·later</h2> |
134 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by | 137 | <p>When·you·are·using·templates,·the·html·should·only·be·written·by |
135 | the·template·file.··The·normal·htp·files·should·just·define·macros | 138 | the·template·file.··The·normal·htp·files·should·just·define·macros |
136 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block | 139 | that·are·used·later·in·the·template.··So·you·may·want·to·write·block |
137 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this | 140 | tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this |
138 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to | 141 | is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to |
139 | do·this:</p> | 142 | do·this:</p> |
140 | ··<p><code> | 143 | ··<p><code> |
141 | <font·size="-2"> 1.·</font> · ·<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> | 144 | <font·size="-2"> 1.·</font> · ·<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> |
142 | </code></p> | 145 | </code></p> |
143 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a | 146 | <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a |
144 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is | 147 | counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is |
145 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is | 148 | increased·for·every·section·(line·3)·and·then·the·block·macro·name·is |
146 | build·from·this·counter.··So·the·first·section·is·stored·in·block | 149 | build·from·this·counter.··So·the·first·section·is·stored·in·block |
147 | 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 | 150 | 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 |
148 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally | 151 | in·line·4·tells·htp·that·these·macros·should·be·defined·globally |
Offset 161, 21 lines modified | Offset 164, 23 lines modified | ||
161 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be | 164 | contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be |
162 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the | 165 | expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the |
163 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you | 166 | template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you |
164 | use·expand·in·a·block·around·it.</p> | 167 | use·expand·in·a·block·around·it.</p> |
165 | <p>To·close·this·example·we·show·how·to·expand·the | 168 | <p>To·close·this·example·we·show·how·to·expand·the |
166 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> | 169 | <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p> |
167 | ··<p><code> | 170 | ··<p><code> |
168 | <font·size="-2"> 1.·</font><span·class="htp-tag"><<a·href=" | 171 | <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> |
172 | <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> | ||
169 | <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> | ||
170 | <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> | ||
171 | <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> | ||
172 | <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> | ||
173 | <font·size="-2"> | 173 | <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> |
174 | <font·size="-2"> 4.·</font><br> | ||
175 | <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> | ||
176 | <font·size="-2"> 6.·</font><br> | ||
177 | <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> | ||
174 | <font·size="-2"> | 178 | <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> |
179 | <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> | ||
175 | </code></p> | 180 | </code></p> |
176 | <p> | 181 | <p> |
177 | 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 | 182 | 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 |
178 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is | 183 | the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is |
179 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards | 184 | evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards |
180 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This | 185 | the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This |
181 | repeats·until·sect-${sect-ctr}·is·not·defined. | 186 | repeats·until·sect-${sect-ctr}·is·not·defined. |
Offset 1, 100 lines modified | Offset 1, 108 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·Metatags·****** | 2 | ******·htp·on-line·reference·:·Metatags·****** |
3 | Table_of········*****·Programming·your·own·tags·***** | 3 | Table_of········*****·Programming·your·own·tags·***** |
4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you | 4 | Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you |
5 | Introduction··metatag·you·have·to·provide·the·HTML·code·which | 5 | Introduction··define·a·metatag·you·have·to·provide·the·HTML·code·which·it |
6 | License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer·syntax.·With | ||
7 | | 6 | License·······abbreviates.·In·fact·metatags·are·just·like·block·macros,·but·they |
7 | Tutorial······have·a·nicer·syntax.·With·metatags·you·can·expand·htp's | ||
8 | ··Macros····functionality. | ||
8 | ·· | 9 | ··Including·Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags |
9 | ·· | 10 | ··Templates·and·undefined·with·the·[[ref]]undef·tag. |
10 | ·· | 11 | ··Files·····As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy |
11 | ··Files·····rule·out·of·several·images. | ||
12 | [>]·Metatags·· 1.<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] | ||
13 | Usage·········[GLOBAL]> | ||
14 | | 12 | [>]·Metatags··horizontal·rule·out·of·several·images. |
13 | Usage········· 1.<[[ref]]OPT·(IMGXY|NOIMGXY)> | ||
14 | HTP_Tags······ 2.<[[ref]]OPT·(QUIET|VERBOSE)> | ||
15 | History······· 3.<[[ref]]OPT·(DEPEND|NODEPEND)> | ||
16 | Wish_list····· 4.<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> | ||
17 | Bugs·········· 5.<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> | ||
18 | ················ 6.<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> | ||
19 | ················ 7.<[[ref]]OPT·(XML|XML=FALSE)> | ||
20 | ················ 8. | ||
15 | 21 | ················In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined. | |
16 | 22 | ················The·html·code·which·implements·this·rule·is·following·in·lines·2- | |
17 | Bugs··········the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand·this·html | ||
18 | ················code,·but·you·should·understand·that·this·is·just·pure·html·to·draw·the | ||
19 | ················ | 23 | ················8.·between·the·[[ref]]def_and_/def·tags.·You·don't·have·to |
24 | ················understand·this·html·code,·but·you·should·understand·that·this·is | ||
25 | ················just·pure·html·to·draw·the·fancy·rule.·Every·time·you·write | ||
26 | ················<imghr>·as·in·line·12·htp·will·replace·this·tag·with·the | ||
20 | ················ | 27 | ················corresponding·html·code.·To·make·metatags·available·to·all·htp |
21 | ················ | 28 | ················documents·in·your·project,·place·them·in·a·common·[[ref]]include |
22 | ················file. | 29 | ················file. |
23 | ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing | 30 | ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing |
24 | ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag. | 31 | ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag. |
25 | ················htp·encounters·a·blockdef·tag·it·will·automatically·searc | 32 | ················When·htp·encounters·a·blockdef·tag·it·will·automatically·search |
26 | ················matching·closing·tag·and·put·everything·between·these·tags | 33 | ················for·the·matching·closing·tag·and·put·everything·between·these·tags |
27 | ················macro·named·block.·Here·is·an·example·for·this. | 34 | ················in·a·block·macro·named·block.·Here·is·an·example·for·this. |
28 | ················ 1. ·<[[ref]]blockdef·name="bolditalic"> | 35 | ················ 1. ·<[[ref]]blockdef·name="bolditalic"> |
29 | ················ 2. · ·<b><i> | 36 | ················ 2. · ·<b><i> |
30 | ················ 3. · ·<[[ref]]use·block> | 37 | ················ 3. · ·<[[ref]]use·block> |
31 | ················ 4. · ·</i></b> | 38 | ················ 4. · ·</i></b> |
32 | ················ 5. ·<[[ref]]/blockdef> | 39 | ················ 5. ·<[[ref]]/blockdef> |
33 | ················ 6. | 40 | ················ 6. |
34 | ················ 7. ·This·is·<bolditalic>bold·and·italic</bolditalic> | 41 | ················ 7. ·This·is·<bolditalic>bold·and·italic</bolditalic> |
35 | ················*****·Using·parameters·***** | 42 | ················*****·Using·parameters·***** |
36 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter | 43 | ················More·sophisticated·tags·accept·parameters.·The·option·parameter |
37 | ················multiple·metatag·parameters·be·named·and·expanded·inside·th | 44 | ················lets·multiple·metatag·parameters·be·named·and·expanded·inside·the |
38 | ················blockdef·block: | 45 | ················def·or·blockdef·block: |
46 | ················ 1. · ·<[[ref]]SET·emailaddr="jnelson@crl.com"> | ||
39 | ················ 1.<[[ref]]WHILE·[NOT]·conditional> | ||
40 | ················ 2. · ·block | ||
41 | ················ 3.<[[ref]]/WHILE> | ||
42 | ················ 4. | ||
43 | ················*****·Saving·blocks·for·later·***** | 47 | ················*****·Saving·blocks·for·later·***** |
44 | ················When·you·are·using·templates,·the·html·should·only·be·written·by | 48 | ················When·you·are·using·templates,·the·html·should·only·be·written·by |
45 | ················template·file.·The·normal·htp·files·should·just·define·macros | 49 | ················the·template·file.·The·normal·htp·files·should·just·define·macros |
46 | ················used·later·in·the·template.·So·you·may·want·to·write | 50 | ················that·are·used·later·in·the·template.·So·you·may·want·to·write |
47 | ················just·save·the·block·in·a·macro·for·later·use.·Although·this·is·possible | ||
48 | ················ | 51 | ················block·tags·that·just·save·the·block·in·a·macro·for·later·use. |
52 | ················Although·this·is·possible·with·htp·it·is·quite·tricky,·so·here·we | ||
53 | ················present·the·way·to·do·this: | ||
49 | ················ 1. · ·<[[ref]]unset·email_addr | 54 | ················ 1. · ·<[[ref]]unset·email_addr> |
50 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a | 55 | ················This·defines·a·block·macro·named·section.·This·macro·uses·a |
51 | ················sect-ctr·that·enumerates·the·sections.·It·is·increased·fo | 56 | ················counter·sect-ctr·that·enumerates·the·sections.·It·is·increased·for |
52 | ················(line·3)·and·then·the·block·macro·name·is·build·from | 57 | ················every·section·(line·3)·and·then·the·block·macro·name·is·build·from |
53 | ················the·first·section·is·stored·in·block·sect-1,·th | 58 | ················this·counter.·So·the·first·section·is·stored·in·block·sect-1,·the |
54 | ················on.·The·[[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should | ||
55 | ················be·defined·globally·for·the·remaining·run.·Otherwise·they·would·be | ||
56 | ················ | 59 | ················second·in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells |
60 | ················htp·that·these·macros·should·be·defined·globally·for·the·remaining | ||
61 | ················run.·Otherwise·they·would·be·forgotten·at·the·end·of·the·section | ||
62 | ················macro. | ||
57 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4 | 63 | ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4 |
58 | ················Normally·when·you·define·a·block·macro·the·code·between·the | 64 | ················and·5.·Normally·when·you·define·a·block·macro·the·code·between·the |
59 | ················end·tag·is·literally·copied·into·the·macro·value.·Th | 65 | ················start·and·end·tag·is·literally·copied·into·the·macro·value.·The |
60 | ················place·when·the·macro·is·used.·In·this·case·tha | 66 | ················expansion·takes·place·when·the·macro·is·used.·In·this·case·that |
61 | ················macros·sect-1,·sect-2·and·so·on·would·just·contain·the·same·value, | ||
62 | ················namely·<use·block>·and·block·wouldn't·be·defined·anymore·when·the·macros | ||
63 | ················are·finally·expanded.·Therefore·we·use·expand·to·expand·the·use·tag | ||
64 | ················a | 67 | ················doesn't·make·sense;·all·macros·sect-1,·sect-2·and·so·on·would·just |
68 | ················contain·the·same·value,·namely·<use·block>·and·block·wouldn't·be | ||
69 | ················defined·anymore·when·the·macros·are·finally·expanded.·Therefore·we | ||
70 | ················use·expand·to·expand·the·use·tag·already·when·sect-1·is·defined. | ||
65 | ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite | 71 | ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite |
66 | ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you | 72 | ················and·prevents·the·contents·of·block·to·be·expanded·twice.·If·you |
67 | ················would·be·expanded·when·defining·the·sect-1·macro·and | 73 | ················omit·it,·it·would·be·expanded·when·defining·the·sect-1·macro·and |
68 | ················in·the·template.·Generally·it·is·a·good·id | 74 | ················when·using·it·later·in·the·template.·Generally·it·is·a·good·idea |
69 | ················you·use·expand·in·a·block·around·it. | 75 | ················to·use·noexpand·whenever·you·use·expand·in·a·block·around·it. |
70 | ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr} | 76 | ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr} |
71 | ················in·the·template: | 77 | ················blocks·in·the·template: |
78 | ················ 1.<[[ref]]block·stuff> | ||
79 | ················ 2. ·<a·href=$email>send·email</a> | ||
72 | ················ 1.<[[ref]]file·include="header.hti"> | ||
73 | ················ 2. ·<[[ref]]set·sect-ctr="1"> | ||
74 | ················ 3. ·<[[ref]]while·sect-${sect-ctr}> | ||
75 | ················ 4. · ·<[[ref]]use·sect-${sect-ctr}> | ||
76 | ················ 5. · ·<[[ref]]inc·sect-ctr> | ||
77 | ················ | 80 | ················ 3.<[[ref]]/block> |
78 | ················ | 81 | ················ 4. |
82 | ················ 5.<[[ref]]set·morestuff=$email> | ||
83 | ················ 6. | ||
84 | ················ 7.This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
85 | ················ 8.But·this·fails:·<[[ref]]use·email> | ||
86 | ················ 9.And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com"> | ||
79 | ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-$ | 87 | ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-$ |
80 | ················is·defined.·If·it·is·defined·the·body·is·evaluated, | 88 | ················{sect-ctr}·is·defined.·If·it·is·defined·the·body·is·evaluated, |
81 | ················macro·and·increases·sect-ctr.·Afterwards·the·while·condition·is·checked | ||
82 | ················again·to·check·for·sect-2·macro.·This·repeats·until·sect-${sect-ctr}·is | ||
83 | ················n | 89 | ················which·expands·the·macro·and·increases·sect-ctr.·Afterwards·the |
90 | ················while·condition·is·checked·again·to·check·for·sect-2·macro.·This | ||
91 | ················repeats·until·sect-${sect-ctr}·is·not·defined. | ||
84 | ················*****·Conclusions·***** | 92 | ················*****·Conclusions·***** |
85 | ················This·closes·our·short·htp·tutorial.·I·hope·you·did·enjoy·it·and | 93 | ················This·closes·our·short·htp·tutorial.·I·hope·you·did·enjoy·it·and |
86 | ················advantages·of·using·htp·for·your·own·projects.·Please·giv | 94 | ················see·the·advantages·of·using·htp·for·your·own·projects.·Please·give |
87 | ················feedback·about·this·tutorial.·What·can·be·improved? | 95 | ················us·some·feedback·about·this·tutorial.·What·can·be·improved? |
88 | ················There·is·more·documentation·in·this·manual,·see·the·[[ref]]Usage | 96 | ················There·is·more·documentation·in·this·manual,·see·the·[[ref]]Usage |
89 | ················or·browse·the·documentations·for·the·htp·tags.·If·you're | 97 | ················chapter·or·browse·the·documentations·for·the·htp·tags.·If·you're |
90 | ················examples,·in·case·you·haven't·already·noticed | 98 | ················looking·for·examples,·in·case·you·haven't·already·noticed |
91 | ················to·the·source·code·on·the·left,·where·you·can·get·the·source·code·for | ||
92 | ················e | 99 | ················yourself,·there·is·a·link·to·the·source·code·on·the·left,·where |
100 | ················you·can·get·the·source·code·for·every·page·on·this·site. | ||
Max diff block lines reached; 563/12894 bytes (4.37%) of diff not shown. |
Offset 114, 15 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 | · | 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> | ||
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> | ||
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> | ||
126 | <br> | ||
127 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
122 | </code></p> | 128 | </code></p> |
123 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
124 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing | 130 | <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing |
125 | options·inside·the·actual·document·being·processed.··The·options·are | 131 | options·inside·the·actual·document·being·processed.··The·options·are |
126 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not | 132 | used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not |
127 | preceded·by·a·‘-’·character. | 133 | preceded·by·a·‘-’·character. |
128 | <P> | 134 | <P> |
Offset 1, 23 lines modified | Offset 1, 23 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OPT·****** | 2 | ******·htp·on-line·reference·:·OPT·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
5 | 4 | Contents······· ·<[[ref]]blockdef·name="bolditalic"> | |
5 | Introduction· · ·<b><i> | ||
6 | License······ · ·<[[ref]]use·block> | ||
7 | Tutorial····· · ·</i></b> | ||
8 | Usage········ ·<[[ref]]/blockdef> | ||
9 | HTP·Tags | ||
10 | ··ALTTEXT·· ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
11 | ··BLOCK····*****·synopsis·***** | ||
6 | | 12 | ··BLOCKDEF·OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the |
7 | | 13 | ··DEF······actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be |
8 | | 14 | ··FILE·····on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. |
9 | | 15 | ··IF·······Click·here·for·more_information_on_using_customization_options_with_htp. |
10 | ··ALTTEXT | ||
11 | ··BLOCK | ||
12 | ··BLOCKDEF | ||
13 | ··DEF | ||
14 | ··FILE | ||
15 | ··IF | ||
16 | ··INC | 16 | ··INC |
17 | ··IMG | 17 | ··IMG |
18 | ··IMAGEURL | 18 | ··IMAGEURL |
19 | [>]·OPT | 19 | [>]·OPT |
20 | ··OUTPUT | 20 | ··OUTPUT |
21 | ··QUOTE | 21 | ··QUOTE |
22 | ··SET | 22 | ··SET |
Offset 25, 14 lines modified | Offset 25, 19 lines modified | ||
25 | ··UNSET | 25 | ··UNSET |
26 | ··USE,_$ | 26 | ··USE,_$ |
27 | ··WHILE | 27 | ··WHILE |
28 | ··<!--- | 28 | ··<!--- |
29 | History | 29 | History |
30 | Wish_list | 30 | Wish_list |
31 | Bugs | 31 | Bugs |
32 | page_source | 32 | page_source |
33 | htp_project | 33 | htp_project |
34 | htp_homepage | 34 | htp_homepage |
35 | hosted·by | 35 | hosted·by |
36 | Sourceforge | 36 | Sourceforge |
37 | HTML·coding | 37 | HTML·coding |
38 | [Powered_by | 38 | [Powered_by |
Offset 114, 15 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 | · | 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> | ||
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> | ||
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> | ||
126 | <br> | ||
127 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
122 | </code></p> | 128 | </code></p> |
123 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
124 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary | 130 | <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary |
125 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the | 131 | files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the |
126 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> | 132 | corresponding·</OUTPUT>·tag·is·written·to·output·file.·</P> |
127 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you | 133 | <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you |
128 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text | 134 | can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text |
Offset 1, 51 lines modified | Offset 1, 57 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·OUTPUT·****** | 2 | ******·htp·on-line·reference·:·OUTPUT·****** |
3 | Table_of_Contents······· | 3 | Table_of_Contents·······*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]IF·name>...<[[ref]]/IF> | ||
5 | | 4 | Introduction·········· ·<[[ref]]blockdef·name="bolditalic"> |
5 | License··············· · ·<b><i> | ||
6 | Tutorial·············· · ·<[[ref]]use·block> | ||
7 | Usage················· · ·</i></b> | ||
8 | HTP·Tags·············· ·<[[ref]]/blockdef> | ||
9 | ··ALTTEXT | ||
10 | ··BLOCK············· ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
11 | ··BLOCKDEF··········*****·synopsis·***** | ||
6 | | 12 | ··DEF···············The·OUTPUT·tag·can·be·used·to·create·auxillary |
7 | | 13 | ··FILE··············files·besides·the·main·HTML·file.·The·text·between |
8 | | 14 | ··IF················this·tag·and·the·corresponding·</OUTPUT>·tag·is |
9 | ·· | 15 | ··INC···············written·to·output·file. |
10 | ·· | 16 | ··IMG···············Normally·the·outputfile·is·cleared·before·writing |
11 | ·· | 17 | ··IMAGEURL··········to·it,·but·you·can·use·the·APPEND·attribute·to |
12 | ·· | 18 | ··OPT···············extend·an·existing·file.·The·text·written·to·the |
13 | | 19 | [>]·OUTPUT············file·is·normally·not·expanded,·i.e.·all·tags·inside |
14 | ·· | 20 | ··QUOTE·············this·block·are·not·executed·but·written·unmodified |
15 | ·· | 21 | ··SET···············to·the·file.·However,·you·can·use·the·EXPAND |
16 | ·· | 22 | ··UNDEF·············attribute·to·override·this·behaviour. |
17 | ··IMAGEURL | ||
18 | ··OPT | ||
19 | [>]·OUTPUT | ||
20 | ··QUOTE | ||
21 | ··SET | ||
22 | ··UNDEF | ||
23 | ··UNSET | 23 | ··UNSET |
24 | ··USE,_$ | 24 | ··USE,_$ |
25 | ··WHILE | 25 | ··WHILE |
26 | ··<!--- | 26 | ··<!--- |
27 | History | 27 | History |
28 | Wish_list | 28 | Wish_list |
29 | Bugs | 29 | Bugs |
30 | page_source | 30 | page_source |
31 | htp_project | 31 | htp_project |
32 | htp_homepage | 32 | htp_homepage |
33 | hosted·by | 33 | hosted·by |
34 | Sourceforge | 34 | Sourceforge |
35 | HTML·coding·[Powered | 35 | HTML·coding·[Powered |
36 | htp] | 36 | by_htp] |
37 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 37 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
38 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 38 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
39 | ·····Maintainers:·Jochen_Hoenicke. | 39 | ·····Maintainers:·Jochen_Hoenicke. |
40 | Copyright·©·1995–96·Jim·Nelson. | 40 | Copyright·©·1995–96·Jim·Nelson. |
41 | Copyright·©·2001–2014·Jochen_Hoenicke. | 41 | Copyright·©·2001–2014·Jochen_Hoenicke. |
42 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 42 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
43 | according·to·terms·described·in·the·License_section. | 43 | according·to·terms·described·in·the·License_section. |
Offset 114, 21 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="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> | ||
123 | 121 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>></span><br> | |
122 | <span·class="htp-tag"><<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·></span><br> | ||
124 | · ·<span·class="htp-tag"></i></span><span·class="htp-tag"></b></span><br> | ||
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> | ||
126 | <br> | 123 | <br> |
127 | ·This·is·<span·class="htp-tag"><bolditalic></span>bold·and·italic<span·class="htp-tag"></bolditalic></span><br> | ||
128 | </code></p> | 124 | </code></p> |
129 | <h2>synopsis</h2> | 125 | <h2>synopsis</h2> |
130 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded | 126 | <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded |
131 | anywhere·in·the·HTML·document.··To·create·a·macro: | 127 | anywhere·in·the·HTML·document.··To·create·a·macro: |
132 | ··<p><code> | 128 | ··<p><code> |
133 | <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="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>></span><br> | 129 | <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="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>></span><br> |
134 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> | 130 | <span·class="htp-tag"><...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>></span><br> |
Offset 1, 43 lines modified | Offset 1, 40 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·SET·****** | 2 | ******·htp·on-line·reference·:·SET·****** |
3 | Table_of_Contents·······*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction···············<[[ref]]UNDEF·tagname> | ||
5 | License····················<[[ref]]UNDEF·tagname1·tagname2·...·> | ||
6 | Tutorial | ||
7 | Usage······················*****·synopsis·***** | ||
4 | Introduction·········· ·<[[ref]]blockdef·name="bolditalic"> | ||
5 | License··············· · ·<b><i> | ||
6 | Tutorial·············· · ·<[[ref]]use·block> | ||
7 | Usage················· · ·</i></b> | ||
8 | HTP·Tags·············· ·<[[ref]]/blockdef> | ||
9 | ··ALTTEXT | ||
10 | ··BLOCK············· ·This·is·<bolditalic>bold·and·italic</bolditalic> | ||
11 | ··BLOCKDEF··········*****·synopsis·***** | ||
12 | | 8 | HTP·Tags···················SET·creates·a·macro·definition·that·can·later·be |
13 | ·· | 9 | ··ALTTEXT················expanded·anywhere·in·the·HTML·document.·To·create |
14 | ·· | 10 | ··BLOCK··················a·macro: |
15 | ·· | 11 | ··BLOCKDEF···············<[[ref]]use·macroname·[parameters·...]·[noexpand]> |
12 | ··DEF····················<...·$macroname·...> | ||
16 | ··I | 13 | ··FILE···················<...·${macroname}·...> |
14 | ··IF | ||
17 | ··IMAGEURL··········<...·${macroname}·...> | ||
18 | ··OPT | ||
19 | ·· | 15 | ··INC····················The·macro·"emailaddr"·can·then·be·expanded·later. |
20 | ·· | 16 | ··IMG····················The·USE·tag·is·used·to·expand·the·macro·outside·a |
21 | | 17 | ··IMAGEURL···············tag·(i.e.,·into·the·regular·text).·If·the·macro |
22 | ·· | 18 | ··OPT····················needs·to·be·expanded·inside·a·markup·tag,·use·the |
23 | ··U | 19 | ··OUTPUT·················'$'·operator. |
24 | ··U | 20 | ··QUOTE··················Multiple·macros·can·be·declared·in·a·single·markup |
25 | | 21 | [>]·SET····················tag,·as·the·second·syntax·line·shows. |
26 | ·· | 22 | ··UNDEF··················SET·should·only·be·used·for·a·single·line's·worth |
27 | | 23 | ··UNSET··················of·text.·Multi-line·macros·can·be·defined·with·the |
28 | | 24 | ··USE,_$·················BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the |
29 | | 25 | ··WHILE··················macro·contains·a·quotation·character·and·you·don't |
30 | ·· | 26 | ··<!---··················want·to·fool·around·with·special·escape |
27 | History····················characters. | ||
31 | 28 | Wish_list··················Macros·can·be·redefined·by·using·another·SET | |
32 | 29 | Bugs·······················command·with·the·same·macro·name.·The·prior | |
33 | ························definition·will·be·destroyed,·however.·Also,·the | 30 | ·····························definition·will·be·destroyed,·however.·Also,·the |
34 | ························macro·can·be·removed·(destroyed)·with·the·UNSET | 31 | ·····························macro·can·be·removed·(destroyed)·with·the·UNSET |
35 | ························tag. | 32 | ·····························tag. |
Offset 55, 16 lines modified | Offset 52, 16 lines modified | ||
55 | page_source | 52 | page_source |
56 | htp_project | 53 | htp_project |
57 | htp_homepage | 54 | htp_homepage |
58 | hosted·by | 55 | hosted·by |
59 | Sourceforge | 56 | Sourceforge |
60 | HTML·coding·[Powered | 57 | HTML·coding·[Powered_by |
61 | 58 | htp] | |
62 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 59 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
63 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 60 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
64 | ·····Maintainers:·Jochen_Hoenicke. | 61 | ·····Maintainers:·Jochen_Hoenicke. |
65 | Copyright·©·1995–96·Jim·Nelson. | 62 | Copyright·©·1995–96·Jim·Nelson. |
66 | Copyright·©·2001–2014·Jochen_Hoenicke. | 63 | Copyright·©·2001–2014·Jochen_Hoenicke. |
67 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 64 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
68 | according·to·terms·described·in·the·License_section. | 65 | according·to·terms·described·in·the·License_section. |
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·Sat· | 23 | ··last·updated·Sat·Feb·08,·2025 |
24 | ·</body> | 24 | ·</body> |
25 | </html> | 25 | </html> |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | ···············******·Jochen·Hoenicke·****** | 1 | ···············******·Jochen·Hoenicke·****** |
2 | Navigation·bar·[Photo] | 2 | Navigation·bar·[Photo] |
3 | Main···········Room:··Bld.52·00-020 | 3 | Main···········Room:··Bld.52·00-020 |
4 | Example········Phone:·+49·761·203-8243 | 4 | Example········Phone:·+49·761·203-8243 |
5 | ···············Fax:···+49·761·203-8242 | 5 | ···············Fax:···+49·761·203-8242 |
6 | =============================================================================== | 6 | =============================================================================== |
7 | Copyright·by·Joe_Doe. | 7 | Copyright·by·Joe_Doe. |
8 | last·updated·Sat· | 8 | last·updated·Sat·Feb·08,·2025 |
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·Sat· | 12 | last·updated·Sat·Feb·08,·2025 |
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,·webmaster@domain.com,·last·updated·Sat· | 3 | Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Sat·Feb·08,·2025 |
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·Sat· | 20 | ··last·updated·Sat·Feb·08,·2025 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*****·Here·is·the·content·***** | 1 | Navigation·bar·*****·Here·is·the·content·***** |
2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | Example | 3 | Example |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·Joe_Doe. | 5 | Copyright·by·Joe_Doe. |
6 | last·updated·Sat· | 6 | last·updated·Sat·Feb·08,·2025 |
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·Sat· | 20 | ··last·updated·Sat·Feb·08,·2025 |
21 | ·</body> | 21 | ·</body> |
22 | </html> | 22 | </html> |
Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | Navigation·bar·*****·Here·are·the·contents·***** | 1 | Navigation·bar·*****·Here·are·the·contents·***** |
2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. | 2 | Main···········As·you·can·see·the·file·contains·almost·only·the·contents. |
3 | Example | 3 | Example |
4 | =============================================================================== | 4 | =============================================================================== |
5 | Copyright·by·Joe_Doe. | 5 | Copyright·by·Joe_Doe. |
6 | last·updated·Sat· | 6 | last·updated·Sat·Feb·08,·2025 |
Offset 114, 21 lines modified | Offset 114, 15 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="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>></span><br> | ||
121 | ·<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> | ||
122 | ·<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> | ||
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">sect-ctr</span>></span><br> | ||
124 | · ·<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> | ||
125 | · · ·<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> | ||
126 | · ·<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> | ||
127 | ·<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> | ||
128 | </code></p> | 122 | </code></p> |
129 | <h2>synopsis</h2> | 123 | <h2>synopsis</h2> |
130 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags | 124 | <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags |
131 | created·by·<A·HREF="def.html">DEF</A>·and·<A | 125 | created·by·<A·HREF="def.html">DEF</A>·and·<A |
132 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF | 126 | HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF |
133 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by | 127 | command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by |
134 | htp·until·it·is·reassigned.··</P> | 128 | htp·until·it·is·reassigned.··</P> |
Offset 1, 25 lines modified | Offset 1, 25 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNDEF·****** | 2 | ******·htp·on-line·reference·:·UNDEF·****** |
3 | Table_of_Contents····*****·syntax·***** | 3 | Table_of_Contents············*****·syntax·***** |
4 | Introduction··············· · ·<[[ref]]SET·emailaddr="jnelson@crl.com"> | ||
5 | License····················*****·synopsis·***** | ||
4 | Introduction······· ·<[[ref]]set·sect-ctr="0"> | ||
5 | License············ ·<[[ref]]blockdef·name="section"> | ||
6 | Tutorial··········· · ·<[[ref]]inc·sect-ctr> | ||
7 | Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
8 | HTP·Tags··········· · · ·<[[ref]]use·block·noexpand> | ||
9 | ··ALTTEXT········ · ·<[[ref]]/block> | ||
10 | ··BLOCK·········· ·<[[ref]]/blockdef> | ||
11 | ··BLOCKDEF·······*****·synopsis·***** | ||
12 | | 6 | Tutorial···················UNDEF·removes·a·metatag·definition.·Metatags |
13 | ··FILE···········DEF·and·BLOCKDEF·can·be·removed·with·the·UNDEF·command. | ||
14 | | 7 | Usage······················created·by·DEF·and·BLOCKDEF·can·be·removed·with |
8 | HTP·Tags···················the·UNDEF·command.·Once·removed,·the·metatag·will | ||
9 | ··ALTTEXT················no·longer·be·recognized·by·htp·until·it·is | ||
15 | ·· | 10 | ··BLOCK··················reassigned. |
16 | ·· | 11 | ··BLOCKDEF···············Multiple·metatags·can·be·removed·by·placing·each |
17 | ·· | 12 | ··DEF····················name·as·an·attribute. |
13 | ··FILE | ||
14 | ··IF | ||
15 | ··INC | ||
16 | ··IMG | ||
17 | ··IMAGEURL | ||
18 | ··OPT | 18 | ··OPT |
19 | ··OUTPUT | 19 | ··OUTPUT |
20 | ··QUOTE | 20 | ··QUOTE |
21 | ··SET | 21 | ··SET |
22 | [>]·UNDEF | 22 | [>]·UNDEF |
23 | ··UNSET | 23 | ··UNSET |
24 | ··USE,_$ | 24 | ··USE,_$ |
Offset 27, 26 lines modified | Offset 27, 21 lines modified | ||
27 | ··<!--- | 27 | ··<!--- |
28 | History | 28 | History |
29 | Wish_list | 29 | Wish_list |
30 | Bugs | 30 | Bugs |
31 | page_source | 31 | page_source |
32 | htp_project | 32 | htp_project |
33 | htp_homepage | 33 | htp_homepage |
34 | hosted·by | 34 | hosted·by |
35 | Sourceforge | 35 | Sourceforge |
36 | HTML·coding | ||
37 | [Powered_by | 36 | HTML·coding·[Powered_by |
37 | htp] | ||
38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 38 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 39 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
40 | ·····Maintainers:·Jochen_Hoenicke. | 40 | ·····Maintainers:·Jochen_Hoenicke. |
41 | Copyright·©·1995–96·Jim·Nelson. | 41 | Copyright·©·1995–96·Jim·Nelson. |
42 | Copyright·©·2001–2014·Jochen_Hoenicke. | 42 | Copyright·©·2001–2014·Jochen_Hoenicke. |
43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 43 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
44 | according·to·terms·described·in·the·License_section. | 44 | according·to·terms·described·in·the·License_section. |
Offset 114, 24 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="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</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<br> | ||
123 | <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:·101,·SHA:·902ed330c7bb28d683f1041df479321af5b8c2d9f1a54b32efac5fc90bf0c836·...·]>></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> | 124 | <br> |
125 | "><br> | ||
126 | · ·<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> | ||
127 | · ·<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> | ||
128 | · · ·<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> | ||
129 | · ·<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> | ||
130 | ·<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> | ||
131 | </code></p> | 125 | </code></p> |
132 | <h2>synopsis</h2> | 126 | <h2>synopsis</h2> |
133 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. | 127 | <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition. |
134 | 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. |
135 | (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 |
136 | <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 |
137 | old·macro·definition·will·be·removed·automatically.) | 131 | old·macro·definition·will·be·removed·automatically.) |
Offset 147, 21 lines modified | Offset 141, 16 lines modified | ||
147 | 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> | 141 | 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> |
148 | 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> | 142 | 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> |
149 | 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> | 143 | 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> |
150 | </code></p> | 144 | </code></p> |
151 | <P> | 145 | <P> |
152 | More·than·one·macro·may·be·removed·in·the·same·tag: | 146 | More·than·one·macro·may·be·removed·in·the·same·tag: |
153 | ··<p><code> | 147 | ··<p><code> |
148 | <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> | ||
149 | <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> | ||
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">include</span>=<span·class="htp-string">"header.hti"</span>></span><br> | ||
155 | ·<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> | ||
156 | ·<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> | ||
157 | · ·<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> | ||
158 | · ·<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> | ||
159 | ·<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> | ||
160 | <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> | ||
161 | </code></p> | 150 | </code></p> |
162 | <p> | 151 | <p> |
163 | </td> | 152 | </td> |
164 | </tr> | 153 | </tr> |
165 | <tr> | 154 | <tr> |
166 | <td·width="20%"·bgcolor="white"·valign="bottom"> | 155 | <td·width="20%"·bgcolor="white"·valign="bottom"> |
167 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> | 156 | ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%"> |
Offset 1, 49 lines modified | Offset 1, 38 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·UNSET·****** | 2 | ******·htp·on-line·reference·:·UNSET·****** |
3 | Table_of··········*****·syntax·***** | 3 | Table_of··········*****·syntax·***** |
4 | Contents··········<[[ref]]WHILE·[NOT]·conditional> | ||
5 | Introduction···· · ·block | ||
6 | 4 | Contents··········<[[ref]]use·macroname·[parameters·...]·[noexpand]> | |
5 | Introduction····<...·$macroname·...> | ||
6 | License·········<...·${macroname}·...> | ||
7 | Tutorial | 7 | Tutorial |
8 | Usage···········"> | ||
9 | HTP·Tags········ · ·<[[ref]]inc·sect-ctr> | ||
10 | ··ALTTEXT····· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> | ||
11 | ··BLOCK······· · · ·<[[ref]]use·block·noexpand> | ||
12 | ··BLOCKDEF···· · ·<[[ref]]/block> | ||
13 | ··DEF········· ·<[[ref]]/blockdef> | ||
14 | | 8 | Usage···········*****·synopsis·***** |
15 | | 9 | HTP·Tags········UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The |
16 | ·· | 10 | ··ALTTEXT·····macro·is·subsequently·not·available·for·use·in·the·pre- |
17 | ·· | 11 | ··BLOCK·······processed·files.·(Note·that·simply·redefining·the·macro·with |
18 | ·· | 12 | ··BLOCKDEF····another·SET·or·BLOCK·definition·with·the·same·name·is |
19 | ·· | 13 | ··DEF·········acceptable.·The·old·macro·definition·will·be·removed |
20 | ·· | 14 | ··FILE········automatically.) |
21 | ·· | 15 | ··IF··········For·example: |
22 | ·· | 16 | ··INC·········<[[ref]]block·stuff> |
23 | ·· | 17 | ··IMG········· ·<a·href=$email>send·email</a> |
24 | [>]·UNSET·······<[[ref]]/block> | ||
25 | ··U | 18 | ··IMAGEURL····<[[ref]]/block> |
19 | ··OPT | ||
26 | ·· | 20 | ··OUTPUT······<[[ref]]set·morestuff=$email> |
27 | ·· | 21 | ··QUOTE |
28 | | 22 | ··SET·········This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> |
29 | | 23 | ··UNDEF·······But·this·fails:·<[[ref]]use·email> |
30 | | 24 | [>]·UNSET·······And·this·fails:·<[[ref]]use·morestuff |
31 | 25 | ··USE,_$······email="jnelson@crl.com"> | |
32 | 26 | ··WHILE·······More·than·one·macro·may·be·removed·in·the·same·tag: | |
27 | ··<!---·······<a·href="mailto:$email">mailto·hyperlink</a> | ||
28 | History·········<a·href="http://$domain/~${username}/">another·hyperlink</a> | ||
29 | Wish_list | ||
30 | Bugs | ||
33 | ··················<[[ref]]file·include="header.hti"> | ||
34 | ·················· ·<[[ref]]set·sect-ctr="1"> | ||
35 | ·················· ·<[[ref]]while·sect-${sect-ctr}> | ||
36 | ·················· · ·<[[ref]]use·sect-${sect-ctr}> | ||
37 | ·················· · ·<[[ref]]inc·sect-ctr> | ||
38 | ·················· ·<[[ref]]/while> | ||
39 | ··················<[[ref]]file·include="footer.hti"> | ||
Offset 114, 15 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="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> | ||
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> | ||
121 | · ·<span·class="htp-tag"><<a·href=" | 125 | · ·<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> |
126 | ·<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> | ||
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">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
122 | </code></p> | 128 | </code></p> |
123 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
124 | <strong>USE</strong>·will·expand·macros·that·have·been·previously | 130 | <strong>USE</strong>·will·expand·macros·that·have·been·previously |
125 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A | 131 | declared·with·either·<A·HREF="set.html">SET</A>·or·<A |
126 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other | 132 | HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other |
127 | markup·tags. | 133 | markup·tags. |
128 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will | 134 | <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will |
Offset 132, 21 lines modified | Offset 138, 18 lines modified | ||
132 | attribute·to·prevent·further·expansion.··</p> | 138 | attribute·to·prevent·further·expansion.··</p> |
133 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros | 139 | <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros |
134 | for·the·expanded·macro.··This·is·only·valid·for·<A | 140 | for·the·expanded·macro.··This·is·only·valid·for·<A |
135 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A | 141 | HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A |
136 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For | 142 | HREF="set.html">SET</A>·cannot·have·parameters·passed.··For |
137 | example:</p> | 143 | example:</p> |
138 | ··<p><code> | 144 | ··<p><code> |
139 | <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> | ||
140 | <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> | ||
141 | <font·size="-2"> | 145 | <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> |
142 | <font·size="-2"> | 146 | <font·size="-2"> 2.·</font> · ·...<br> |
143 | <font·size="-2"> | 147 | <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> |
144 | <font·size="-2"> | 148 | <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> |
145 | <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> | ||
146 | </code></p> | 149 | </code></p> |
147 | <P> | 150 | <P> |
148 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on | 151 | (See·below·for·a·description·of·the·'$'·operator.)··The·example·on |
149 | 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 |
150 | 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 |
151 | 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 |
152 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. | 155 | completely·expanded,·and·cannot·be·passed·to·a·SET·macro. |
Offset 1, 38 lines modified | Offset 1, 41 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·USE,·$·****** | 2 | ******·htp·on-line·reference·:·USE,·$·****** |
3 | Table_of·······*****·syntax·***** | 3 | Table_of·······*****·syntax·***** |
4 | Contents······· · ·<[[ref]]unset·email_addr> | ||
5 | 4 | Contents·······<[[ref]]file·include="header.hti"> | |
5 | Introduction· ·<[[ref]]set·sect-ctr="1"> | ||
6 | License······ ·<[[ref]]while·sect-${sect-ctr}> | ||
7 | Tutorial····· · ·<[[ref]]use·sect-${sect-ctr}> | ||
8 | Usage········ · ·<[[ref]]inc·sect-ctr> | ||
9 | HTP·Tags····· ·<[[ref]]/while> | ||
10 | ··ALTTEXT··<[[ref]]file·include="footer.hti"> | ||
11 | ··BLOCK····*****·synopsis·***** | ||
6 | | 12 | ··BLOCKDEF·USE·will·expand·macros·that·have·been·previously·declared·with |
7 | | 13 | ··DEF······either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other |
8 | | 14 | ··FILE·····markup·tags. |
9 | | 15 | ··IF·······If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will |
10 | ·· | 16 | ··INC······be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for |
11 | ·· | 17 | ··IMG······example,·if·the·use·is·inside·a·block·which·expands·itself.·You |
12 | ·· | 18 | ··IMAGEURL·can·use·the·noexpand·attribute·to·prevent·further·expansion. |
13 | ·· | 19 | ··OPT······USE·will·accept·additional·parameters,·which·are·"local"·macros |
14 | ·· | 20 | ··OUTPUT···for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros. |
15 | ·· | 21 | ··QUOTE····Macros·created·using·SET·cannot·have·parameters·passed.·For |
16 | ·· | 22 | ··SET······example: |
23 | ··UNDEF···· 1. ·<[[ref]]WHILE·sect-$i> | ||
24 | ··UNSET···· 2. · ·... | ||
25 | [>]·USE,_$··· 3. · ·<[[ref]]INC·i> | ||
26 | ··WHILE···· 4. ·<[[ref]]/WHILE> | ||
17 | ··IMG······ 1.<[[ref]]file·include="header.hti"> | ||
18 | ··IMAGEURL· 2. ·<[[ref]]set·sect-ctr="1"> | ||
19 | ··OPT······ 3. ·<[[ref]]while·sect-${sect-ctr}> | ||
20 | ··OUTPUT··· 4. · ·<[[ref]]use·sect-${sect-ctr}> | ||
21 | ··QUOTE···· 5. · ·<[[ref]]inc·sect-ctr> | ||
22 | ··SET······ 6. ·<[[ref]]/while> | ||
23 | ··UNDEF···· 7.<[[ref]]file·include="footer.hti"> | ||
24 | ·· | 27 | ··<!---····(See·below·for·a·description·of·the·'$'·operator.)·The·example |
25 | | 28 | History······on·line·7·works·because·"stuff"·has·been·declared·as·a·block |
26 | | 29 | Wish_list····macro,·and·the·tag·is·passing·the·"email"·macro·to·the·"stuff" |
27 | | 30 | Bugs·········macro.·Line·8·fails·because·the·"email"·macro·is·unavailable |
28 | 31 | ···············once·the·block·macro·is·completely·expanded,·and·cannot·be | |
29 | 32 | ···············passed·to·a·SET·macro. | |
30 | 33 | ···············Note·that·the·"email"·macro·is·available·to·other·macros·or | |
31 | ···············included·files·called·within·the·"stuff"·block. | 34 | ···············included·files·called·within·the·"stuff"·block. |
32 | ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard | 35 | ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard |
33 | ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should | 36 | ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should |
34 | ···············be·immediately·followed·by·the·macro·name,·which·may·or·may·not | 37 | ···············be·immediately·followed·by·the·macro·name,·which·may·or·may·not |
35 | ···············be·surrounded·by·curly·braces.·When·htp·encounters·this·it | 38 | ···············be·surrounded·by·curly·braces.·When·htp·encounters·this·it |
36 | ···············replaces·the·macro·name·by·the·contents·of·the·macro·without | 39 | ···············replaces·the·macro·name·by·the·contents·of·the·macro·without |
37 | ···············further·processing·the·contents. | 40 | ···············further·processing·the·contents. |
Offset 114, 49 lines modified | Offset 114, 39 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="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>></span><br> | ||
122 | 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">"header.hti"</span>></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="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> | ||
123 | <span·class="htp-tag"><<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/ | 126 | ·<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> |
124 | <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">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> |
125 | </code></p> | 128 | </code></p> |
126 | <h2>synopsis</h2> | 129 | <h2>synopsis</h2> |
127 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. | 130 | <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing. |
128 | The·basic·form·is·shown·above. | 131 | The·basic·form·is·shown·above. |
129 | <P> | 132 | <P> |
130 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. | 133 | "Conditional"·is·either·a·"compare"·or·"is·defined"·operation. |
131 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. | 134 | A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string. |
132 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the | 135 | If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the |
133 | conditional·is·reversed: | 136 | conditional·is·reversed: |
134 | ··<p><code> | 137 | ··<p><code> |
138 | · ·<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> | ||
135 | <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> | ||
136 | ·<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> | ||
137 | <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> | ||
138 | <br> | ||
139 | <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> | ||
140 | <br> | ||
141 | 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> | ||
142 | 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> | ||
143 | 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> | ||
144 | </code></p> | 139 | </code></p> |
145 | <P> | 140 | <P> |
146 | 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 | 141 | 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 |
147 | macro's·existance: | 142 | macro's·existance: |
148 | ··<p><code> | 143 | ··<p><code> |
144 | <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> | ||
145 | <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> | ||
149 | · ·<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> | ||
150 | ="1"><br> | ||
151 | ·<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> | ||
152 | · ·<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> | ||
153 | · ·<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> | ||
154 | ·<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> | ||
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">include</span>=<span·class="htp-string">"footer.hti"</span>></span><br> | ||
156 | </code></p> | 146 | </code></p> |
157 | <P> | 147 | <P> |
158 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the | 148 | If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the |
159 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the | 149 | WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the |
160 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. | 150 | WHILE·tag·it·is·also·reevaluated·on·each·iteration. |
161 | <P> | 151 | <P> |
162 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. | 152 | A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag. |
Offset 1, 48 lines modified | Offset 1, 37 lines modified | ||
1 | [HTP] | 1 | [HTP] |
2 | ******·htp·on-line·reference·:·WHILE·****** | 2 | ******·htp·on-line·reference·:·WHILE·****** |
3 | Table_of | 3 | Table_of_Contents·······*****·syntax·***** |
4 | Introduction··········<[[ref]]file·include="header.hti"> | ||
5 | License··············· ·<[[ref]]set·sect-ctr="1"> | ||
4 | Contents··········<[[ref]]WHILE·[NOT]·conditional> | ||
5 | Introduction···· · ·block | ||
6 | License·········<[[ref]]/WHILE> | ||
7 | Tutorial | ||
8 | Usage···········*****·synopsis·***** | ||
9 | HTP·Tags········WHILE·is·the·building·block·for·repeated·processing.·The | ||
10 | ··ALTTEXT·····basic·form·is·shown·above. | ||
11 | ··BLOCK·······"Conditional"·is·either·a·"compare"·or·"is·defined" | ||
12 | ··BLOCKDEF····operation.·A·compare·operator·is·a·test·of·the·value·of·a | ||
13 | ··DEF·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in | ||
14 | ··FILE········the·WHILE·markup,·the·evaluation·of·the·conditional·is | ||
15 | ··IF··········reversed: | ||
16 | ··INC·········<[[ref]]block·stuff> | ||
17 | ··IMG········· ·<a·href=$email>send·email</a> | ||
18 | ··IMAGEURL····<[[ref]]/block> | ||
19 | ··OPT | ||
20 | ··OUTPUT······<[[ref]]set·morestuff=$email> | ||
21 | ··QUOTE | ||
22 | ··SET·········This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> | ||
23 | ··UNDEF·······But·this·fails:·<[[ref]]use·email> | ||
24 | ··UNSET·······And·this·fails:·<[[ref]]use·morestuff | ||
25 | ··USE,_$······email="jnelson@crl.com"> | ||
26 | [>]·WHILE·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's | ||
27 | ··<!---·······existance: | ||
28 | History········· · ·<[[ref]]unset·email_addr·home_url·login_name> | ||
29 | Wish_list·······="1"> | ||
30 | | 6 | Tutorial·············· ·<[[ref]]while·sect-${sect-ctr}> |
31 | 7 | Usage················· · ·<[[ref]]use·sect-${sect-ctr}> | |
32 | · | 8 | HTP·Tags·············· · ·<[[ref]]inc·sect-ctr> |
33 | ·· | 9 | ··ALTTEXT··········· ·<[[ref]]/while> |
34 | ·· | 10 | ··BLOCK·············<[[ref]]file·include="footer.hti"> |
11 | ··BLOCKDEF··········*****·synopsis·***** | ||
12 | ··DEF···············WHILE·is·the·building·block·for·repeated | ||
13 | ··FILE··············processing.·The·basic·form·is·shown·above. | ||
14 | ··IF················"Conditional"·is·either·a·"compare"·or·"is·defined" | ||
15 | ··INC···············operation.·A·compare·operator·is·a·test·of·the | ||
16 | ··IMG···············value·of·a·macro·against·a·literal·string.·If·the | ||
17 | ··IMAGEURL··········NOT·tag·is·present·in·the·WHILE·markup,·the | ||
18 | ··OPT···············evaluation·of·the·conditional·is·reversed: | ||
19 | ··OUTPUT············ · ·<[[ref]]unset·email_addr·home_url·login_name> | ||
20 | ··QUOTE·············Just·as·with·[[ref]]IF·you·can·also·check·for·a | ||
21 | ··SET···············macro's·existance: | ||
22 | ··UNDEF·············<a·href="mailto:$email">mailto·hyperlink</a> | ||
23 | ··UNSET·············<a·href="http://$domain/~${username}/">another | ||
24 | ··USE,_$············hyperlink</a> | ||
35 | · | 25 | [>]·WHILE·············If·the·condition·is·true,·the·block·is·evaluated |
36 | ··············· | 26 | ··<!---·············and·afterwards·the·WHILE·tag·is·evaluated·again.·If |
37 | ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on | ||
38 | ·················· | 27 | History···············the·'$'-operator·is·used·in·the·WHILE·tag·it·is |
28 | Wish_list·············also·reevaluated·on·each·iteration. | ||
39 | ··················A·loop·block·must·be·closed·with·the·/WHILE·tag. | 29 | Bugs··················A·loop·block·must·be·closed·with·the·/WHILE·tag. |
Offset 60, 16 lines modified | Offset 49, 16 lines modified | ||
60 | page_source | 49 | page_source |
61 | htp_project | 50 | htp_project |
62 | htp_homepage | 51 | htp_homepage |
63 | hosted·by | 52 | hosted·by |
64 | Sourceforge | 53 | Sourceforge |
65 | HTML·coding | ||
66 | 54 | HTML·coding·[Powered | |
55 | by_htp] | ||
67 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ | 56 | ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/ |
68 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. | 57 | ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller. |
69 | ·····Maintainers:·Jochen_Hoenicke. | 58 | ·····Maintainers:·Jochen_Hoenicke. |
70 | Copyright·©·1995–96·Jim·Nelson. | 59 | Copyright·©·1995–96·Jim·Nelson. |
71 | Copyright·©·2001–2014·Jochen_Hoenicke. | 60 | Copyright·©·2001–2014·Jochen_Hoenicke. |
72 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted | 61 | Permission·to·reproduce·and·distribute·this·hypertext·document·granted |
73 | according·to·terms·described·in·the·License_section. | 62 | according·to·terms·described·in·the·License_section. |