285 KB
/srv/reproducible-results/rbuild-debian/r-b-build.nu1Xw67H/b1/htp_1.19-8_i386.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.nu1Xw67H/b2/htp_1.19-8_i386.changes
261 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·31924caf2e27b568c0ebf4c06aaf06e0·58520·debug·optional·htp-dbgsym_1.19-8_i386.deb1 ·31924caf2e27b568c0ebf4c06aaf06e0·58520·debug·optional·htp-dbgsym_1.19-8_i386.deb
2 ·2885c1b558822405977710176c2b3059·121476·web·optional·htp_1.19-8_i386.deb2 ·48b3e177ed0e9f3adc8a32232c2b596f·121064·web·optional·htp_1.19-8_i386.deb
284 KB
htp_1.19-8_i386.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary1 -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary
2 -rw-r--r--···0········0········0·····3612·2020-06-14·23:21:19.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3620·2020-06-14·23:21:19.000000·control.tar.xz
3 -rw-r--r--···0········0········0···117672·2020-06-14·23:21:19.000000·data.tar.xz3 -rw-r--r--···0········0········0···117252·2020-06-14·23:21:19.000000·data.tar.xz
562 B
control.tar.xz
534 B
control.tar
464 B
./control
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 Package:·htp1 Package:·htp
2 Version:·1.19-82 Version:·1.19-8
3 Architecture:·i3863 Architecture:·i386
4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>
5 Installed-Size:·6885 Installed-Size:·670
6 Depends:·libc6·(>=·2.34)6 Depends:·libc6·(>=·2.34)
7 Section:·web7 Section:·web
8 Priority:·optional8 Priority:·optional
9 Homepage:·http://htp.sourceforge.net9 Homepage:·http://htp.sourceforge.net
10 Description:·nice·HTML·pre-processor10 Description:·nice·HTML·pre-processor
11 ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool11 ·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.
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
283 KB
data.tar.xz
283 KB
data.tar
15.4 KB
file list
    
Offset 1, 27 lines modifiedOffset 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)····75284·2020-06-14·23:21:19.000000·./usr/bin/htp4 -rwxr-xr-x···0·root·········(0)·root·········(0)····75284·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)····10344·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html8 -rw-r--r--···0·root·········(0)·root·········(0)·····9723·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.htp9 -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)·····8633·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html10 -rw-r--r--···0·root·········(0)·root·········(0)·····7945·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.htp11 -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)····15601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html12 -rw-r--r--···0·root·········(0)·root·········(0)·····8972·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.htp13 -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.html14 -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.htp15 -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp
16 -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz16 -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz
17 -rw-r--r--···0·root·········(0)·root·········(0)····12701·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html17 -rw-r--r--···0·root·········(0)·root·········(0)····15368·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.htp18 -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/copyright19 -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)····15586·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html20 -rw-r--r--···0·root·········(0)·root·········(0)····21473·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.htp21 -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.html22 -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.htp23 -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.sub25 -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.hti26 -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.htt27 -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 modifiedOffset 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.htp32 -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.html33 -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.htp34 -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.def35 -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.html36 -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.htp37 -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.htt38 -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)····12975·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html39 -rw-r--r--···0·root·········(0)·root·········(0)····15840·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.htp40 -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)····18668·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html41 -rw-r--r--···0·root·········(0)·root·········(0)····17350·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.gz42 -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.html43 -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.gz44 -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.pl45 -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.def46 -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.htt47 -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)····14891·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html48 -rw-r--r--···0·root·········(0)·root·········(0)·····9231·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.htp49 -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)····10736·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.html50 -rw-r--r--···0·root·········(0)·root·········(0)····13016·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.htp51 -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)·····9044·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html52 -rw-r--r--···0·root·········(0)·root·········(0)·····8639·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.htp53 -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)·····9851·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html54 -rw-r--r--···0·root·········(0)·root·········(0)····12296·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.htp55 -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.html56 -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.htp57 -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.html58 -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.htp59 -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.html60 -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.htp61 -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.html62 -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.htp63 -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.def64 -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.html65 -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.htp66 -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)····21952·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.html67 -rw-r--r--···0·root·········(0)·root·········(0)····13370·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.gz68 -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)·····8624·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html69 -rw-r--r--···0·root·········(0)·root·········(0)·····9793·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.htp70 -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.html71 -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.htp72 -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)·····8241·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html73 -rw-r--r--···0·root·········(0)·root·········(0)·····8130·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.htp74 -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.png76 -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.png77 -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.png78 -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.png79 -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.png80 -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.png81 -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.png82 -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.png83 -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.png84 -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.pl85 -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)·····7967·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html86 -rw-r--r--···0·root·········(0)·root·········(0)·····7503·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.htp87 -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)····12003·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html88 -rw-r--r--···0·root·········(0)·root·········(0)····10167·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.htp89 -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.css90 -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.html91 -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.gz92 -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.def93 -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.hti95 -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 modifiedOffset 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.htp102 -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.html103 -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.htp104 -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.htt105 -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.htt106 -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.html107 -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.htp108 -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)····11328·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html109 -rw-r--r--···0·root·········(0)·root·········(0)·····8101·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.htp110 -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)····14329·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html111 -rw-r--r--···0·root·········(0)·root·········(0)·····9378·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.htp112 -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.html113 -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.htp114 -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)····13256·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html115 -rw-r--r--···0·root·········(0)·root·········(0)····11961·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.htp116 -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)·····9968·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html117 -rw-r--r--···0·root·········(0)·root·········(0)····10758·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.htp118 -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.html119 -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.htp120 -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.htp122 -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.htp
123 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/123 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/
124 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/124 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/
8.24 KB
./usr/share/doc/htp/alttext.html
    
Offset 114, 37 lines modifiedOffset 114, 33 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">&lt;<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">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br>121 <span·class="htp-tag">&lt;<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">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br>
 122 &nbsp;·...·<span·class="htp-tag">&lt;<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>&gt;</span>&nbsp;...<br>
122 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>123 <span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>
123 <br>124 <br>
124 </code></p>125 </code></p>
125 <h2>synopsis</h2>126 <h2>synopsis</h2>
126 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A127 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A
127 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.128 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.
128 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the129 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the
129 filename·is·considered·in·all·comparisons.130 filename·is·considered·in·all·comparisons.
130 <p>131 <p>
131 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT132 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT
132 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to133 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to
133 be·overridden·on·specific·images·and·default·text·on·all·others.134 be·overridden·on·specific·images·and·default·text·on·all·others.
134 <p>135 <p>
135 For·example:136 For·example:
136 ··<p><code>137 ··<p><code>
 138 <span·class="htp-tag">&lt;<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">"tagname"</span>·<span·class="htp-attrib">[option</span>=<span·class="htp-string">"option1·[option2·...]"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[global]</span>·<span·class="htp-attrib">[expand]</span>&gt;</span><br>
137 <span·class="htp-tag">&lt;<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>&gt;</span><br>139 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
138 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
139 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
140 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
141 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
142 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
143 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
144 <br>140 <br>
145 </code></p>141 </code></p>
146 <p>142 <p>
147 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT143 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT
148 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not144 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not
149 changed.145 changed.
150 <p>146 <p>
3.68 KB
html2text {}
    
Offset 1, 40 lines modifiedOffset 1, 37 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·ALTTEXT·******2 ******·htp·on-line·reference·:·ALTTEXT·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction···············<[[ref]]def·name="tagname"·[option="option14  Introduction···············<[[ref]]blockdef·name="tagname"·[option="option1
5  License····················[option2·...]"·]·[global]·[expand]>5  License····················[option2·...]"·]·[global]·[expand]>
6  Tutorial···················<[[ref]]/def>6  Tutorial··················· ·...·<[[ref]]use·block> ...
7  Usage7  Usage······················<[[ref]]/blockdef>
 8  HTP·Tags
8  HTP·Tags···················*****·synopsis·*****9  [>]·ALTTEXT················*****·synopsis·*****
9  [>]·ALTTEXT················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag10   ··BLOCK··················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag
10   ··BLOCK··················with·a·SRC·matching·the·ALTTEXT·NAME.·Since11   ··BLOCKDEF···············with·a·SRC·matching·the·ALTTEXT·NAME.·Since
11   ··BLOCKDEF···············relative·paths·can·be·used·to·point·to·the·same12   ··DEF····················relative·paths·can·be·used·to·point·to·the·same
12   ··DEF····················image,·only·the·filename·is·considered·in·all13   ··FILE···················image,·only·the·filename·is·considered·in·all
13   ··FILE···················comparisons.14   ··IF·····················comparisons.
14   ··IF·····················When·an·IMG·tag·with·a·matching·source·is15   ··INC····················When·an·IMG·tag·with·a·matching·source·is
15   ··INC····················encountered,·htp·will·add·an·ALT·attribute·only·if16   ··IMG····················encountered,·htp·will·add·an·ALT·attribute·only·if
16   ··IMG····················one·is·not·already·present.·This·allows·for·ALT17   ··IMAGEURL···············one·is·not·already·present.·This·allows·for·ALT
17   ··IMAGEURL···············text·to·be·overridden·on·specific·images·and18   ··OPT····················text·to·be·overridden·on·specific·images·and
18   ··OPT····················default·text·on·all·others.19   ··OUTPUT·················default·text·on·all·others.
19   ··OUTPUT·················For·example:20   ··QUOTE··················For·example:
 21   ··SET····················<[[ref]]def·name="tagname"·[option="option1
 22   ··UNDEF··················[option2·...]"·]·[global]·[expand]>
 23   ··UNSET··················<[[ref]]/def>
 24   ··USE,_$
20   ··QUOTE··················<[[ref]]OPT·(IMGXY|NOIMGXY)> 
21   ··SET····················<[[ref]]OPT·(QUIET|VERBOSE)> 
22   ··UNDEF··················<[[ref]]OPT·(DEPEND|NODEPEND)> 
23   ··UNSET··················<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> 
24   ··USE,_$·················<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> 
25   ··WHILE··················<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> 
26   ··<!---··················<[[ref]]OPT·(XML|XML=FALSE)> 
27  History 
28  Wish_list··················An·ALTTEXT·tag·with·a·name·but·no·text·attribute25   ··WHILE··················An·ALTTEXT·tag·with·a·name·but·no·text·attribute
29  Bugs·······················removes·any·ALT·mapping·for·this·image.·Successing26   ··<!---··················removes·any·ALT·mapping·for·this·image.·Successing
30 ·····························IMG·tags·with·a·matching·SRC·name·are·not·changed.27  History····················IMG·tags·with·a·matching·SRC·name·are·not·changed.
31 ·····························Since·this·is·useful·for·an·image·used·throughout28  Wish_list··················Since·this·is·useful·for·an·image·used·throughout
32 ·····························a·set·of·documents,·ALTTEXT·is·most·appropriate·in29  Bugs·······················a·set·of·documents,·ALTTEXT·is·most·appropriate·in
33 ·····························an·include_file·or·a·default_file.30 ·····························an·include_file·or·a·default_file.
34 ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically31 ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically
35 ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags.32 ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags.
  
  
  
  
3.56 KB
./usr/share/doc/htp/block.html
    
Offset 114, 16 lines modifiedOffset 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="comment">&lt;!---·comment·---&gt;</span><br>
121 <span·class="htp-tag">&lt;<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">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br> 
123 <br>122 <br>
124 </code></p>123 </code></p>
125 <h2>synopsis</h2>124 <h2>synopsis</h2>
126 <P>125 <P>
127 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which126 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which
128 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be127 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be
129 multi-line·definitions.128 multi-line·definitions.
2.32 KB
html2text {}
    
Offset 1, 28 lines modifiedOffset 1, 28 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············<!---·comment·--->
 5  License
4  Introduction···············<[[ref]]def·name="tagname"·[option="option1 
5  License····················[option2·...]"·]·[global]·[expand]> 
6  Tutorial···················<[[ref]]/def> 
7  Usage 
8  HTP·Tags···················*****·synopsis·*****6  Tutorial···················*****·synopsis·*****
9   ··ALTTEXT················BLOCK·and·/BLOCK·are·used·to·create·block·macros,7  Usage······················BLOCK·and·/BLOCK·are·used·to·create·block·macros,
10  [>]·BLOCK··················which·are·similar·in·use·to·SET·macros,·but·can·be8  HTP·Tags···················which·are·similar·in·use·to·SET·macros,·but·can·be
11   ··BLOCKDEF···············multi-line·definitions.9   ··ALTTEXT················multi-line·definitions.
12   ··DEF····················Any·text·and·formatting·may·be·set·inside·the10  [>]·BLOCK··················Any·text·and·formatting·may·be·set·inside·the
13   ··FILE···················block.·You·can·use·any·htp·or·user·defined·metatag11   ··BLOCKDEF···············block.·You·can·use·any·htp·or·user·defined·metatag
14   ··IF·····················including·FILE_INCLUDE.·The·metatags·won't·be12   ··DEF····················including·FILE_INCLUDE.·The·metatags·won't·be
15   ··INC····················expanded·before·the·block·is·USEd·except·if·you13   ··FILE···················expanded·before·the·block·is·USEd·except·if·you
16   ··IMG····················give·the·EXPAND·parameter.14   ··IF·····················give·the·EXPAND·parameter.
17   ··IMAGEURL···············The·block·macro·is·dereferenced·(expanded)·with15   ··INC····················The·block·macro·is·dereferenced·(expanded)·with
18   ··OPT····················the·USE_tag_or_the_'$'_operator.·See·the·notes·on16   ··IMG····················the·USE_tag_or_the_'$'_operator.·See·the·notes·on
19   ··OUTPUT·················the·USE·tag·on·how·to·pass·parameters·to·a·block17   ··IMAGEURL···············the·USE·tag·on·how·to·pass·parameters·to·a·block
20   ··QUOTE··················macro.18   ··OPT····················macro.
 19   ··OUTPUT
 20   ··QUOTE
21   ··SET21   ··SET
22   ··UNDEF22   ··UNDEF
23   ··UNSET23   ··UNSET
24   ··USE,_$24   ··USE,_$
25   ··WHILE25   ··WHILE
26   ··<!---26   ··<!---
27  History27  History
Offset 31, 16 lines modifiedOffset 31, 14 lines modified
  
  
  
  
  
  
  
  
  
  
  
31  page_source31  page_source
32  htp_project32  htp_project
33  htp_homepage33  htp_homepage
34 hosted·by34 hosted·by
35 Sourceforge35 Sourceforge
13.8 KB
./usr/share/doc/htp/blockdef.html
    
Offset 114, 59 lines modifiedOffset 114, 29 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">&lt;<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">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br>
121 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
122 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
123 &nbsp;·&nbsp;·a·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>122 &nbsp;·...·<span·class="htp-tag">&lt;<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>&gt;</span>&nbsp;...<br>
124 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>123 <span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>
 124 <br>
125 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
126 &nbsp;·&nbsp;·b·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br> 
127 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br> 
128 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
129 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
130 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
131 &nbsp;·contents·of·a:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
132 &nbsp;·contents·of·b:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
133 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
134 &nbsp;·&nbsp;·c·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
135 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br> 
136 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
137 &nbsp;·&nbsp;·d·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
138 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br> 
139 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
140 &nbsp;·&nbsp;·e·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
141 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br> 
142 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
143 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
144 &nbsp;·&nbsp;·a·is·defined·for·the·2nd·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br> 
145 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br> 
146 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
147 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
148 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
149 </code></p>125 </code></p>
150 <h2>synopsis</h2>126 <h2>synopsis</h2>
151 <strong>BLOCKDEF</strong>·creates·block·<A127 <strong>BLOCKDEF</strong>·creates·block·<A
152 HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it128 HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it
153 creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block129 creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block
154 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and130 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and
155 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored131 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored
156 in·the·block·macro·named·BLOCK.132 in·the·block·macro·named·BLOCK.
157 <P>·For·example:</P>133 <P>·For·example:</P>
158 ··<p><code>134 ··<p><code>
 135 <span·class="comment">&lt;!---·comment·---&gt;</span><br>
159 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
160 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
161 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
162 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
163 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
164 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
165 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
166 <br>136 <br>
167 </code></p>137 </code></p>
168 <p>138 <p>
169 All·block·metatags·have·the·implicit·option·<a139 All·block·metatags·have·the·implicit·option·<a
170 href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents140 href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents
171 of·the·block·before·the·definition·is·expanded.141 of·the·block·before·the·definition·is·expanded.
172 </p>142 </p>
4.46 KB
html2text {}
    
Offset 1, 63 lines modifiedOffset 1, 37 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_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]blockdef·name="tagname"·[option="option1
 5  License····················[option2·...]"·]·[global]·[expand]>
 6  Tutorial··················· ·...·<[[ref]]use·block> ...
 7  Usage······················<[[ref]]/blockdef>
 8  HTP·Tags
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·*****9   ··ALTTEXT················*****·synopsis·*****
33 ···············BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it10   ··BLOCK··················BLOCKDEF·creates·block·metatags,·which·is·a·fancy
 11  [>]·BLOCKDEF···············way·of·saying·it·creates·new·block·tags.·A·block
34 ···············creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block12   ··DEF····················tag·is·a·tag·that·takes·a·whole·block·as
35 ···············as·additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</13   ··FILE···················additional·parameter.·This·block·is·surrounded·by
36 ···············tagname>.·The·contents·of·this·block·are·automatically·stored·in·the 
37 ···············block·macro·named·BLOCK.14   ··IF·····················<tagname>·and·</tagname>.·The·contents·of·this
 15   ··INC····················block·are·automatically·stored·in·the·block·macro
 16   ··IMG····················named·BLOCK.
38 ···············For·example:17   ··IMAGEURL···············For·example:
 18   ··OPT····················<!---·comment·--->
 19   ··OUTPUT
 20   ··QUOTE··················All·block·metatags·have·the·implicit·option
 21   ··SET····················EXPAND,·which·tells·htp·to·expand·the·contents·of
39 ···············<[[ref]]OPT·(IMGXY|NOIMGXY)> 
40 ···············<[[ref]]OPT·(QUIET|VERBOSE)> 
41 ···············<[[ref]]OPT·(DEPEND|NODEPEND)> 
42 ···············<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> 
43 ···············<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> 
44 ···············<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> 
45 ···············<[[ref]]OPT·(XML|XML=FALSE)> 
  
46 ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to 
47 ···············expand·the·contents·of·the·block·before·the·definition·is·expanded.22   ··UNDEF··················the·block·before·the·definition·is·expanded.
48 ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed23   ··UNSET··················A·more·thorough·discussion·and·more·elaborate
49 ···············in·the·metatag·section. 
  
  
  
  
 24   ··USE,_$·················examples·are·discussed·in·the·metatag·section.
 25   ··WHILE
 26   ··<!---
 27  History
 28  Wish_list
 29  Bugs
  
  
  
  
  
  
  
Offset 70, 18 lines modifiedOffset 44, 17 lines modified
  
  
70  page_source44  page_source
71  htp_project45  htp_project
72  htp_homepage46  htp_homepage
73 hosted·by47 hosted·by
74 Sourceforge48 Sourceforge
 49 HTML·coding·[Powered_by
75 HTML·coding 
76 [Powered_by 
77 htp]50 htp]
78 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/51 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
79 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.52 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
80 ·····Maintainers:·Jochen_Hoenicke.53 ·····Maintainers:·Jochen_Hoenicke.
81 Copyright·©·1995–96·Jim·Nelson.54 Copyright·©·1995–96·Jim·Nelson.
82 Copyright·©·2001–2014·Jochen_Hoenicke.55 Copyright·©·2001–2014·Jochen_Hoenicke.
83 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to56 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
84 terms·described·in·the·License_section.57 according·to·terms·described·in·the·License_section.
85 last·updated·Sat·May·16,·201558 last·updated·Sat·May·16,·2015
18.4 KB
./usr/share/doc/htp/comment.html
    
Offset 114, 47 lines modifiedOffset 114, 72 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">&lt;<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">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br>
121 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
123 <span·class="htp-tag">&lt;<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>&gt;</span><br>122 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
124 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
125 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
126 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
127 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
128 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
129 <br>123 <br>
130 </code></p>124 </code></p>
131 <h2>synopsis</h2>125 <h2>synopsis</h2>
132 <p>126 <p>
133 This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful127 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.128 when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.
135 Example:129 Example:
136 </p>130 </p>
137 ··<p><code>131 ··<p><code>
138 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
139 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
140 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
141 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
142 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
143 <span·class="htp-tag">&lt;<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>&gt;</span><br>132 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
144 <span·class="htp-tag">&lt;<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>&gt;</span><br>133 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
145 <br>134 &nbsp;·&nbsp;·a·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
 135 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 136 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 137 &nbsp;·&nbsp;·b·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
 138 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 139 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 140 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 141 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 142 &nbsp;·contents·of·a:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 143 &nbsp;·contents·of·b:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 144 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 145 &nbsp;·&nbsp;·c·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 146 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 147 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 148 &nbsp;·&nbsp;·d·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 149 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 150 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 151 &nbsp;·&nbsp;·e·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 152 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 153 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 154 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 155 &nbsp;·&nbsp;·a·is·defined·for·the·2nd·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
 156 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 157 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 158 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 159 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
146 </code></p>160 </code></p>
147 <p>161 <p>
148 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you162 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you
149 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something163 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something
150 like·this:164 like·this:
151 </p>165 </p>
152 ··<p><code>166 ··<p><code>
153 <span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>=<span·class="htp-string">"macroval[·...·truncated·by·diffoscope;·len:·82,·SHA:·1b0de2f0af3ff6dcb00160502803f9fbb9631406e3429d962274c013d3930638·...·]</span>&gt;</span><br>167 <span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br>
 168 &nbsp;·&nbsp;·block·#1<br>
 169 [<br>
 170 <span·class="htp-tag">&lt;ELSEIF·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br>
 171 &nbsp;·&nbsp;·block·#2<br>
 172 ...<br>
 173 ]<br>
 174 [<br>
 175 <span·class="htp-tag">&lt;ELSE&gt;</span><br>
 176 &nbsp;·&nbsp;·block·#3<br>
 177 ]<br>
 178 <span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
154 <br>179 <br>
155 </code></p>180 </code></p>
156 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the181 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the
157 reason·why·you·don't·want·to·include·this·block</p>182 reason·why·you·don't·want·to·include·this·block</p>
158 <p>183 <p>
159 </td>184 </td>
160 </tr>185 </tr>
5.24 KB
html2text {}
    
Offset 1, 48 lines modifiedOffset 1, 65 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·<!---·******2 ******·htp·on-line·reference·:·<!---·******
3 Table_of_Contents············*****·syntax·*****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   ··OPT····················*****·synopsis·***** 
19   ··OUTPUT·················This·is·a·simple·comment·that·is·not·included·in 
20   ··QUOTE··················the·output.·This·is·useful·when·commenting 
21   ··SET····················metatags,·since·the·metatags·do·not·appear·the 
22   ··UNDEF··················output·either.·Example: 
23   ··UNSET··················<[[ref]]OPT·(IMGXY|NOIMGXY)> 
24   ··USE,_$·················<[[ref]]OPT·(QUIET|VERBOSE)> 
25   ··WHILE··················<[[ref]]OPT·(DEPEND|NODEPEND)> 
26  [>]·<!---··················<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> 
27  History····················<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> 
28  Wish_list··················<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> 
29  Bugs·······················<[[ref]]OPT·(XML|XML=FALSE)>4 Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global]
 5  Introduction·[expand]>
 6  License······<[[ref]]/def>
 7  Tutorial
 8  Usage········*****·synopsis·*****
 9  HTP·Tags·····This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is
 10   ··ALTTEXT··useful·when·commenting·metatags,·since·the·metatags·do·not·appear·the
 11   ··BLOCK····output·either.·Example:
 12   ··BLOCKDEF· ·<[[ref]]set·time="0">
 13   ··DEF······ ·<[[ref]]block·name=a>
 14   ··FILE····· · ·a·is·expanded·at·time·<[[ref]]use·time>.
 15   ··IF······· ·<[[ref]]/block>
 16   ··INC······ ·<[[ref]]block·name=b·expand>
 17   ··IMG······ · ·b·is·expanded·at·time·<[[ref]]use·time>.
 18   ··IMAGEURL· ·<[[ref]]/block>
 19   ··OPT······ ·<[[ref]]set·time="1">
 20   ··OUTPUT··· ·<[[ref]]use·a>
 21   ··QUOTE···· ·<[[ref]]use·b>
 22   ··SET······ ·contents·of·a:·<[[ref]]use·a·noexpand>
 23   ··UNDEF···· ·contents·of·b:·<[[ref]]use·b·noexpand>
 24   ··UNSET···· ·<[[ref]]block·name=c·expand>
 25   ··USE,_$··· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a>
 26   ··WHILE···· ·<[[ref]]/block>
 27  [>]·<!---···· ·<[[ref]]block·name=d·expand>
 28  History······ · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 29  Wish_list···· ·<[[ref]]/block>
 30  Bugs········· ·<[[ref]]block·name=e>
 31 ··············· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 32 ··············· ·<[[ref]]/block>
 33 ··············· ·<[[ref]]set·time="2">
 34 ··············· ·<[[ref]]block·name=a>
 35 ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>.
 36 ··············· ·<[[ref]]/block>
 37 ··············· ·<[[ref]]use·c>
 38 ··············· ·<[[ref]]use·d>
 39 ··············· ·<[[ref]]use·e>
 40 ···············Note·that·these·comments·should·not·include·<·or·>,·that·is·you·should
 41 ···············not·use·it·to·comment·out·htp·code.·For·that·purpose·use·something
 42 ···············like·this:
 43 ···············<[[ref]]IF·[NOT]·conditional>
 44 ··············· · ·block·#1
 45 ···············[
 46 ···············<ELSEIF·[NOT]·conditional>
 47 ··············· · ·block·#2
 48 ···············...
 49 ···············]
 50 ···············[
 51 ···············<ELSE>
 52 ··············· · ·block·#3
 53 ···············]
 54 ···············<[[ref]]/IF>
  
30 ·····························Note·that·these·comments·should·not·include·<·or 
31 ·····························>,·that·is·you·should·not·use·it·to·comment·out 
32 ·····························htp·code.·For·that·purpose·use·something·like 
33 ·····························this: 
34 ·····························<[[ref]]SET·macroname1="macrovalue1" 
35 ·····························[macroname2="macrovalue2"·...]·[GLOBAL]> 
  
36 ·····························Make·sure·that·the·variable·is·never·defined·and55 ···············Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the
 56 ···············reason·why·you·don't·want·to·include·this·block
37 ·····························xyz·should·be·the·reason·why·you·don't·want·to 
38 ·····························include·this·block 
  
  
  
  
  
  
  
Offset 60, 17 lines modifiedOffset 77, 18 lines modified
  
  
60  page_source77  page_source
61  htp_project78  htp_project
62  htp_homepage79  htp_homepage
63 hosted·by80 hosted·by
64 Sourceforge81 Sourceforge
65 HTML·coding·[Powered_by82 HTML·coding
 83 [Powered_by
66 htp]84 htp]
67 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/85 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
68 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.86 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
69 ·····Maintainers:·Jochen_Hoenicke.87 ·····Maintainers:·Jochen_Hoenicke.
70 Copyright·©·1995–96·Jim·Nelson.88 Copyright·©·1995–96·Jim·Nelson.
71 Copyright·©·2001–2014·Jochen_Hoenicke.89 Copyright·©·2001–2014·Jochen_Hoenicke.
72 Permission·to·reproduce·and·distribute·this·hypertext·document·granted90 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to
73 according·to·terms·described·in·the·License_section.91 terms·described·in·the·License_section.
74 last·updated·Sat·May·16,·201592 last·updated·Sat·May·16,·2015
29.0 KB
./usr/share/doc/htp/def.html
    
Offset 114, 85 lines modifiedOffset 114, 99 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 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
121 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"title"</span>&gt;</span><br>122 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
122 &nbsp;·&nbsp;<span·class="htp-tag">&lt;h1&gt;</span><span·class="htp-tag">&lt;<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>&gt;</span><span·class="htp-tag">&lt;/h1&gt;</span><br> 
123 &nbsp;·&nbsp;<span·class="htp-tag">&lt;p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>&gt;</span><br> 
124 &nbsp;·&nbsp;·&nbsp;<span·class="htp-tag">&lt;<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>&gt;</span><br>123 &nbsp;·&nbsp;·a·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
125 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/p&gt;</span><br> 
126 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>124 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
127 <br> 
128 &nbsp;·<span·class="htp-tag">&lt;section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>&gt;</span><br> 
129 &nbsp;·&nbsp;·This·is·a·fancy·section.<br> 
130 &nbsp;·<span·class="htp-tag">&lt;/section&gt;</span><br> 
131 ill·also·have·an·ALT·attribute·appended·to·it<br> 
132 <br> 
133 &nbsp;·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
134 &nbsp;·remains·unchanged.<br>125 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 126 &nbsp;·&nbsp;·b·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
 127 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 128 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 129 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 130 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 131 &nbsp;·contents·of·a:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 132 &nbsp;·contents·of·b:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 133 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 134 &nbsp;·&nbsp;·c·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 135 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 136 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 137 &nbsp;·&nbsp;·d·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 138 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 139 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 140 &nbsp;·&nbsp;·e·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 141 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 142 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 143 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 144 &nbsp;·&nbsp;·a·is·defined·for·the·2nd·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
 145 &nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 146 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 147 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 148 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
135 </code></p>149 </code></p>
136 <h2>synopsis</h2>150 <h2>synopsis</h2>
137 <p>151 <p>
138 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a152 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a
139 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to153 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to
140 <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>
141 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.
142 For·example:156 For·example:
143 </p>157 </p>
144 ··<p><code>158 ··<p><code>
 159 &nbsp;·&nbsp;·File·image.gif·<span·class="htp-tag">&lt;<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>&gt;</span>&nbsp;kilobytes<br>
 160 &nbsp;·&nbsp;·Last·modified·<span·class="htp-tag">&lt;<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>&gt;</span>,·<span·class="htp-tag">&lt;<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>&gt;</span><br>
145 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>&gt;</span><br> 
146 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>&gt;</span><br> 
147 <br> 
148 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
149 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> 
150 &nbsp;·(no·URL·replacement).<br> 
151 <br> 
152 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>&gt;</span><br> 
153 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> 
154 <br> 
155 &nbsp;·But·for·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>&gt;</span><br> 
156 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> 
157 &nbsp;·will·not·be·added.<br> 
158 <br> 
159 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> 
160 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>&gt;</span><br> 
161 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>&gt;</span><br> 
162 <br> 
163 &nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>&gt;</span>&nbsp;and·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>&gt;</span>&nbsp;are·mapped·to<br> 
164 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> 
165 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> 
166 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> 
167 </code></p>161 </code></p>
168 <P>162 <P>
169 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to163 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to
170 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A164 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A
171 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster165 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster
172 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing166 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing
173 tag·with·a·preceding·slash.·For·example:167 tag·with·a·preceding·slash.·For·example:
174 </P>168 </P>
175 ··<p><code>169 ··<p><code>
 170 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 171 &nbsp;·&nbsp;·This·tag·will·fail:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
176 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
177 <span·class="htp-tag">&lt;<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>·&gt;</span><br> 
178 <br> 
179 ..·><br> 
180 <br> 
181 </code></p>172 </code></p>
182 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,173 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,
183 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>174 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>
184 <P>175 <P>
185 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were176 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were
186 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with177 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with
187 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their178 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their
188 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)179 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)
189 </P>180 </P>
190 ··<p><code>181 ··<p><code>
 182 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 183 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 184 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br>
 185 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 186 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
191 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>187 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 188 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 189 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br>
 190 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 191 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 192 <br>
 193 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 194 <br>
 195 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 196 <br>
 197 &nbsp;·This·will·fail:<br>
 198 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 199 <br>
 200 &nbsp;·Instead,·use·*·like·this:<br>
 201 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 202 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 203 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
Max diff block lines reached; 348/19013 bytes (1.83%) of diff not shown.
10.4 KB
html2text {}
    
Offset 1, 89 lines modifiedOffset 1, 104 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]]blockdef·name="section"·option="title"> 
5  Introduction· · <h1><[[ref]]use·title></h1> 
6  License······ · <p·class="section">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]]use·block>7  Tutorial····· ·<[[ref]]/block>
8  Usage········ · </p>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>.
9  HTP·Tags····· ·<[[ref]]/blockdef>28  History······ ·<[[ref]]/block>
 29  Wish_list···· ·<[[ref]]use·c>
 30  Bugs········· ·<[[ref]]use·d>
 31 ··············· ·<[[ref]]use·e>
10   ··ALTTEXT 
11   ··BLOCK···· ·<section·title="My·Section"> 
12   ··BLOCKDEF· · ·This·is·a·fancy·section. 
13  [>]·DEF······ ·</section> 
14   ··FILE·····ill·also·have·an·ALT·attribute·appended·to·it 
15   ··IF 
16   ··INC······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more 
17   ··IMG······information!"> 
18   ··IMAGEURL· ·remains·unchanged. 
19   ··OPT······*****·synopsis·*****32 ···············*****·synopsis·*****
20   ··OUTPUT···DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new·tags.·The33 ···············DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new·tags.
21   ··QUOTE····mechanism·is·very·similar·to·BLOCK·macros,·except·that·the·USE·tag·is·not34 ···············The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the·USE·tag·is
22   ··SET······used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name.·For35 ···············not·used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name.
 36 ···············For·example:
 37 ··············· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes
 38 ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE
 39 ···············NAME="image.gif"·DATE>
23   ··UNDEF····example: 
24   ··UNSET···· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> 
25   ··USE,_$··· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> 
26   ··WHILE 
27   ··<!---···· ·For·this·line:·<[[ref]]img·src="logo.gif"> 
28  History······ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions 
29  Wish_list···· ·(no·URL·replacement). 
30  Bugs 
31 ··············· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> 
32 ··············· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. 
  
33 ··············· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> 
34 ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions 
35 ··············· ·will·not·be·added. 
  
36 ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: 
37 ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> 
38 ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> 
  
39 ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are 
40 ···············mapped·to 
41 ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. 
42 ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second 
43 ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. 
44 ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to40 ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to
45 ···············and41 ···············and
46 ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly·faster42 ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly
47 ···············alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing·tag·with43 ···············faster·alternative·is·to·use·two·metatags,·the·opening·tag·and·the
48 ···············a·preceding·slash.·For·example:44 ···············closing·tag·with·a·preceding·slash.·For·example:
 45 ··············· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson"
 46 ···············email="jnelson@crl.com">
 47 ··············· · ·This·tag·will·fail:·<[[ref]]USE·name>
49 ···············<[[ref]]UNDEF·tagname> 
50 ···············<[[ref]]UNDEF·tagname1·tagname2·...·> 
  
51 ···············..·> 
  
52 ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end48 ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end
53 ···············tag.·It·is·not·that·slower.49 ···············tag.·It·is·not·that·slower.
54 ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a·SET50 ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a
55 ···············macro.·Option·names·are·parameterized·with·the·OPTION·attribute.·Multiple51 ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute.
56 ···············options·can·be·listed·by·separating·their·name·with·a·space·(which·therefore52 ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space
57 ···············requires·they·be·surrounded·by·quotes.)53 ···············(which·therefore·requires·they·be·surrounded·by·quotes.)
 54 ··············· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE">
58 ··············· · ·<[[ref]]unset·email_addr>55 ··············· · ·<[[ref]]IF·size>
 56 ··············· · · · ·<FONT·SIZE=${size}>
 57 ··············· · ·<[[ref]]/IF>
 58 ··············· · ·<[[ref]]IMG·SRC=pics/${src}>
 59 ··············· · ·<[[ref]]USE·title>
 60 ··············· · ·<[[ref]]IF·size>
 61 ··············· · · · ·</FONT>
 62 ··············· · ·<[[ref]]/IF>
 63 ··············· ·<[[ref]]/DEF>
  
 64 ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title">
  
 65 ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title">
  
 66 ··············· ·This·will·fail:
 67 ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title">
  
 68 ··············· ·Instead,·use·*·like·this:
 69 ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*">
 70 ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*>
 71 ··············· ·<[[ref]]/DEF>
 72 ··············· · 
 73 ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo">
59 ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is·invoked.74 ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is
60 ···············htp·assumes·that·all·parameter·options·to·the·metatag·are·optional.·This·is75 ···············invoked.·htp·assumes·that·all·parameter·options·to·the·metatag·are
61 ···············why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE·option·is·defined76 ···············optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE
62 ···············before·expanding·it·in·the·block.·If·a·parameter·is·required,·simply·expand77 ···············option·is·defined·before·expanding·it·in·the·block.·If·a·parameter·is
63 ···············it·without·first·checking.·When·htp·expands·the·metatag·and·the·macro·is·not 
64 ···············defined,·it·will·halt·processing·and·complain·with·an·error·message·and·the 
65 ···············required·macro·name.·Normally·htp·will·not·allow·parameters·not·listed·in·the 
66 ···············OPTION·attribute·to·be·added·to·the·tag.·This·is·why·the·third·invocation·of78 ···············required,·simply·expand·it·without·first·checking.·When·htp·expands·the
 79 ···············metatag·and·the·macro·is·not·defined,·it·will·halt·processing·and
Max diff block lines reached; 591/10642 bytes (5.55%) of diff not shown.
22.4 KB
./usr/share/doc/htp/expand.html
    
Offset 98, 49 lines modifiedOffset 98, 47 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·to99 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·of100 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·value101 another·macro.··This·other·macro·may·no·longer·have·the·correct·value
102 when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when102 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">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>=<span·class="htp-string">"Company·logo"</span>&gt;</span><br> 
106 <font·size="-2">&nbsp;2.·</font><br>105 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 106 <font·size="-2">&nbsp;2.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 107 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·a·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
 108 <font·size="-2">&nbsp;4.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 109 <font·size="-2">&nbsp;5.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 110 <font·size="-2">&nbsp;6.·</font>&nbsp;·&nbsp;·b·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
 111 <font·size="-2">&nbsp;7.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 112 <font·size="-2">&nbsp;8.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
107 <font·size="-2">&nbsp;3.·</font>&nbsp;·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br>113 <font·size="-2">&nbsp;9.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
108 <font·size="-2">&nbsp;4.·</font>&nbsp;·becomes·this·after·processing:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
109 <font·size="-2">&nbsp;5.·</font><br>114 <font·size="-2">10.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 115 <font·size="-2">11.·</font>&nbsp;·contents·of·a:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 116 <font·size="-2">12.·</font>&nbsp;·contents·of·b:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 117 <font·size="-2">13.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 118 <font·size="-2">14.·</font>&nbsp;·&nbsp;·c·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 119 <font·size="-2">15.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 120 <font·size="-2">16.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 121 <font·size="-2">17.·</font>&nbsp;·&nbsp;·d·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 122 <font·size="-2">18.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 123 <font·size="-2">19.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 124 <font·size="-2">20.·</font>&nbsp;·&nbsp;·e·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 125 <font·size="-2">21.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 126 <font·size="-2">22.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 127 <font·size="-2">23.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 128 <font·size="-2">24.·</font>&nbsp;·&nbsp;·a·is·defined·for·the·2nd·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
 129 <font·size="-2">25.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
110 <font·size="-2">&nbsp;6.·</font>&nbsp;·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br>130 <font·size="-2">26.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 131 <font·size="-2">27.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 132 <font·size="-2">28.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
111 <font·size="-2">&nbsp;7.·</font>&nbsp;·will·also·have·an·ALT·attribute·appended·to·it<br> 
112 <font·size="-2">&nbsp;8.·</font><br> 
113 <font·size="-2">&nbsp;9.·</font>&nbsp;·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
114 <font·size="-2">10.·</font>&nbsp;·remains·unchanged.<br> 
115 </code></p>133 </code></p>
116 This·produces·the·following:134 This·produces·the·following:
117 ··<p><code>135 ··<p><code>
 136 &nbsp;·&nbsp;·File·image.gif·<span·class="htp-tag">&lt;<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>&gt;</span>&nbsp;kilobytes<br>
 137 &nbsp;·&nbsp;·Last·modified·<span·class="htp-tag">&lt;<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>&gt;</span>,·<span·class="htp-tag">&lt;<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>&gt;</span><br>
118 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>&gt;</span><br> 
119 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>&gt;</span><br> 
120 <br> 
121 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
122 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> 
123 &nbsp;·(no·URL·replacement).<br> 
124 <br> 
125 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>&gt;</span><br> 
126 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> 
127 <br> 
128 &nbsp;·But·for·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>&gt;</span><br> 
129 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> 
130 &nbsp;·will·not·be·added.<br> 
131 <br> 
132 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> 
133 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>&gt;</span><br> 
134 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>&gt;</span><br> 
135 <br> 
136 &nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>&gt;</span>&nbsp;and·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>&gt;</span>&nbsp;are·mapped·to<br> 
137 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> 
138 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> 
139 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> 
140 </code></p>138 </code></p>
141 <P>139 <P>
142 When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a140 When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a
143 are·taken·literally,·however,·the·contents·for·b·are·already·expanded141 are·taken·literally,·however,·the·contents·for·b·are·already·expanded
144 so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it142 so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it
145 is·used,·while·the·contents·of·b·are·already·expanded.143 is·used,·while·the·contents·of·b·are·already·expanded.
146 </P>144 </P>
8.86 KB
html2text {}
    
Offset 1, 78 lines modifiedOffset 1, 76 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·scope.·A4 Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current·scope.
5  Introduction···scope·is·for·example·the·definition·of·a·metatag.·Once·the·definition·is5  Introduction···A·scope·is·for·example·the·definition·of·a·metatag.·Once·the·definition
6  License········expanded·and·the·metatag·has·finished·the·macro·is·automatically·removed.·In6  License········is·expanded·and·the·metatag·has·finished·the·macro·is·automatically
7  Tutorial·······some·cases·you·want·to·define·a·macro·inside·a·metatag·and·use·it·later.·You7  Tutorial·······removed.·In·some·cases·you·want·to·define·a·macro·inside·a·metatag·and
8  Usage··········can·do·this·with·the·global·attribute·that·you·can·add·to·[[ref]]set,·[8  Usage··········use·it·later.·You·can·do·this·with·the·global·attribute·that·you·can·add
9   ··Command-···[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[[ref]]blockdef·tags.9   ··Command-···to·[[ref]]set,·[[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[[ref]]blockdef
 10 ······line·······tags.
10 ······line·······*****·The·expand·attribute·*****11   ··Options····*****·The·expand·attribute·*****
11   ··Options····The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all·block12   ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all
12   ··Predefined·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp·uses·a·lazy13 ······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  History········on.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·html
 17  History········code·between·the·tags·is·just·copied·literally·into·the·macro·named
 18  Wish_list······block,·without·any·expansion·going·on.
18  Wish_list······However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is·expanded19  Bugs···········However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is
19  Bugs···········immediately.·This·is·useful·if·you·want·to·store·something·in·a·block·macro,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·other·macro·may·no21 ·················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 ················· 1. ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> 
24 ················· 2. 
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.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]]set·time="0">
 26 ················· 2. ·<[[ref]]block·name=a>
 27 ················· 3. · ·a·is·expanded·at·time·<[[ref]]use·time>.
 28 ················· 4. ·<[[ref]]/block>
 29 ················· 5. ·<[[ref]]block·name=b·expand>
 30 ················· 6. · ·b·is·expanded·at·time·<[[ref]]use·time>.
 31 ················· 7. ·<[[ref]]/block>
 32 ················· 8. ·<[[ref]]set·time="1">
 33 ················· 9. ·<[[ref]]use·a>
 34 ·················10. ·<[[ref]]use·b>
 35 ·················11. ·contents·of·a:·<[[ref]]use·a·noexpand>
 36 ·················12. ·contents·of·b:·<[[ref]]use·b·noexpand>
 37 ·················13. ·<[[ref]]block·name=c·expand>
 38 ·················14. · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a>
 39 ·················15. ·<[[ref]]/block>
 40 ·················16. ·<[[ref]]block·name=d·expand>
 41 ·················17. · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 42 ·················18. ·<[[ref]]/block>
 43 ·················19. ·<[[ref]]block·name=e>
 44 ·················20. · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 45 ·················21. ·<[[ref]]/block>
 46 ·················22. ·<[[ref]]set·time="2">
 47 ·················23. ·<[[ref]]block·name=a>
 48 ·················24. · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>.
 49 ·················25. ·<[[ref]]/block>
 50 ·················26. ·<[[ref]]use·c>
 51 ·················27. ·<[[ref]]use·d>
 52 ·················28. ·<[[ref]]use·e>
35 ·················This·produces·the·following:53 ·················This·produces·the·following:
 54 ················· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes
 55 ················· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE
 56 ·················NAME="image.gif"·DATE>
36 ················· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> 
37 ················· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> 
  
38 ················· ·For·this·line:·<[[ref]]img·src="logo.gif"> 
39 ················· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions 
40 ················· ·(no·URL·replacement). 
  
41 ················· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> 
42 ················· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. 
  
43 ················· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> 
44 ················· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions 
45 ················· ·will·not·be·added. 
  
46 ················· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: 
47 ················· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> 
48 ················· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> 
  
49 ················· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are 
50 ·················mapped·to 
51 ················· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. 
52 ················· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second 
53 ················· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. 
54 ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are·taken57 ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are
55 ·················literally,·however,·the·contents·for·b·are·already·expanded·so·the·macro·time58 ·················taken·literally,·however,·the·contents·for·b·are·already·expanded·so·the
56 ·················is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the·contents·of·b·are59 ·················macro·time·is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the
57 ·················already·expanded.60 ·················contents·of·b·are·already·expanded.
58 ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute61 ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute
59 ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show·you62 ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show
60 ·················what·the·value·of·the·block·macros·really·is.63 ·················you·what·the·value·of·the·block·macros·really·is.
61 ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent·double64 ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent
62 ·················expansion·and·to·restore·the·original·lazy·expansion·policy·when·you·have·to65 ·················double·expansion·and·to·restore·the·original·lazy·expansion·policy·when
63 ·················use·the·expand·attribute·as·for·block·d·in·the·example·above.·See·the·section66 ·················you·have·to·use·the·expand·attribute·as·for·block·d·in·the·example·above.
64 ·················example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb:·The·use·tags·in·an67 ·················See·the·section·example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb:
65 ·················expanded·block·should·be·tagged·with·noexpand.68 ·················The·use·tags·in·an·expanded·block·should·be·tagged·with·noexpand.
  
  
  
  
  
  
  
26.1 KB
./usr/share/doc/htp/file.html
    
Offset 114, 70 lines modifiedOffset 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 &nbsp;·&nbsp;·a·is·expanded·at·time·1.<br>
 122 &nbsp;·&nbsp;·b·is·expanded·at·time·0.<br>
 123 &nbsp;·contents·of·a:·&nbsp;·a·is·expanded·at·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
 124 &nbsp;·contents·of·b:·&nbsp;·b·is·expanded·at·time·0.<br>
 125 &nbsp;·&nbsp;·c·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·1.<br>
 126 &nbsp;·&nbsp;·d·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·2.<br>
 127 &nbsp;·&nbsp;·e·is·expanded·at·time·2;·&nbsp;·a·is·defined·for·the·2nd·time·<span·class="htp-tag">&lt;<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>&gt;</span>.<br>
121 &nbsp;·<span·class="htp-tag">&lt;<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>=<span·class="htp-string">"Company·logo"</span>&gt;</span><br> 
122 <br> 
123 &nbsp;·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
124 &nbsp;·becomes·this·after·processing:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
125 <br> 
126 &nbsp;·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
127 &nbsp;·will·also·have·an·ALT·attribute·appended·to·it<br> 
128 <br> 
129 &nbsp;·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
130 &nbsp;·remains·unchanged.<br> 
131 </code></p>128 </code></p>
132 <h2>synopsis</h2>129 <h2>synopsis</h2>
133 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.130 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.
134 The·output·file's·name,·the·current·date·and·time,·and·the·contents·of131 The·output·file's·name,·the·current·date·and·time,·and·the·contents·of
135 another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be132 another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be
136 added·to·the·output·file·as·well.133 added·to·the·output·file·as·well.
137 <P>134 <P>
138 As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the135 As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the
139 following·is·perfectly·acceptable:136 following·is·perfectly·acceptable:
140 ··<p><code>137 ··<p><code>
 138 <span·class="htp-tag">&lt;<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>&gt;</span><br>
141 <span·class="htp-tag">&lt;<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="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>&gt;</span><br> 
142 text·block<br> 
143 <span·class="htp-tag">&lt;<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</a>&gt;</span><br> 
144 <br>139 <br>
145 </code></p>140 </code></p>
146 <P>141 <P>
147 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>142 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>
148 <P>143 <P>
149 To·include·information·about·another·file,·such·as·an·archive·file·or144 To·include·information·about·another·file,·such·as·an·archive·file·or
150 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the145 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the
151 type·of·information·to·be·displayed:146 type·of·information·to·be·displayed:
152 ··<p><code>147 ··<p><code>
 148 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span>...<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
153 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
154 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
155 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br> 
156 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
157 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
158 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
159 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
160 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
161 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
162 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
163 <br> 
164 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
165 <br> 
166 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
167 <br> 
168 &nbsp;·This·will·fail:<br> 
169 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
170 <br> 
171 &nbsp;·Instead,·use·*·like·this:<br> 
172 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
173 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
174 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
175 &nbsp;·&nbsp;·<br> 
176 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
177 </code></p>149 </code></p>
178 <P>150 <P>
179 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the151 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the
180 information·is·displayed.··In·anything·other·than·byte·format,·the·information152 information·is·displayed.··In·anything·other·than·byte·format,·the·information
181 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number153 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number
182 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional154 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional
183 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no155 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no
Offset 206, 18 lines modifiedOffset 178, 38 lines modified
206 <P>178 <P>
207 Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are179 Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are
208 interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros180 interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros
209 are·available·only·to·the·include·file·(and·any·macros·or·included·files·it181 are·available·only·to·the·include·file·(and·any·macros·or·included·files·it
210 holds).··After·the·file·is·completely·included,·the·macros·are·no·longer182 holds).··After·the·file·is·completely·included,·the·macros·are·no·longer
211 available.··So:183 available.··So:
212 ··<p><code>184 ··<p><code>
 185 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
213 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br> 
214 &nbsp;·&nbsp;·...<br> 
215 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>186 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 187 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br>
 188 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 189 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 190 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 191 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 192 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br>
 193 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
216 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br>194 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 195 <br>
 196 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 197 <br>
 198 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 199 <br>
 200 &nbsp;·This·will·fail:<br>
 201 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 202 <br>
 203 &nbsp;·Instead,·use·*·like·this:<br>
 204 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 205 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 206 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 207 &nbsp;·&nbsp;·<br>
 208 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
217 </code></p>209 </code></p>
218 <P>210 <P>
219 Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included211 Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included
220 file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the212 file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the
221 second·statement·will·fail.)213 second·statement·will·fail.)
222 <P>214 <P>
223 <h3><a·name="template">TEMPLATE</a></h3>215 <h3><a·name="template">TEMPLATE</a></h3>
12.8 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 60 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·FILE·******2 ******·htp·on-line·reference·:·FILE·******
3 Table_of·······*****·syntax·*****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>.
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······*****·synopsis·*****12   ··BLOCKDEF·*****·synopsis·*****
17   ··IMG······FILE·has·several·optional·parameters·of·differing·purpose.·The·output13   ··DEF······FILE·has·several·optional·parameters·of·differing·purpose.·The·output
18   ··IMAGEURL·file's·name,·the·current·date·and·time,·and·the·contents·of·another·file14  [>]·FILE·····file's·name,·the·current·date·and·time,·and·the·contents·of·another·file
19   ··OPT······may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the15   ··IF·······may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the
20   ··OUTPUT···output·file·as·well.16   ··INC······output·file·as·well.
21   ··QUOTE····As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the17   ··IMG······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the
22   ··SET······following·is·perfectly·acceptable:18   ··IMAGEURL·following·is·perfectly·acceptable:
 19   ··OPT······<[[ref]]img·src="filename"·...>
 20   ··OUTPUT
23   ··UNDEF····<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> 
24   ··UNSET····text·block 
25   ··USE,_$···<[[ref]]/OUTPUT> 
26   ··WHILE 
27   ··<!---····****·NAME,·TIME,·SIZE·****21   ··QUOTE····****·NAME,·TIME,·SIZE·****
28  History······To·include·information·about·another·file,·such·as·an·archive·file·or22   ··SET······To·include·information·about·another·file,·such·as·an·archive·file·or
29  Wish_list····graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the23   ··UNDEF····graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the
30  Bugs·········type·of·information·to·be·displayed:24   ··UNSET····type·of·information·to·be·displayed:
 25   ··USE,_$··· · ·<[[ref]]IF·name>...<[[ref]]/IF>
 26   ··WHILE····For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the
 27   ··<!---····information·is·displayed.·In·anything·other·than·byte·format,·the
 28  History······information·is·displayed·in·floating-point·notation.·The·amount·of
 29  Wish_list····precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be
 30  Bugs·········set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero
 31 ···············(0),·which·means·no·fractional·portion·is·displayed.
 32 ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept
 33 ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library
 34 ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually
 35 ···············any·format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the
 36 ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e.,
 37 ···············just·using·05:04:11·PM).
 38 ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function
 39 ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask
 40 ···············an·experienced·C·programmer·for·help,·or·consider·just·sticking·to·the
 41 ···············default·formatting.
 42 ···············****·INCLUDE·****
 43 ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is
 44 ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the
 45 ···············source·at·the·same·location·as·the·FILE·markup·tag.
 46 ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the
 47 ···············operating·system's·directory·separator.
 48 ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are
 49 ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros
 50 ···············are·available·only·to·the·include·file·(and·any·macros·or·included·files·it
 51 ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer
 52 ···············available.·So:
31 ··············· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE">53 ··············· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE">
32 ··············· · ·<[[ref]]IF·size>54 ··············· · ·<[[ref]]IF·size>
33 ··············· · · · ·<FONT·SIZE=${size}>55 ··············· · · · ·<FONT·SIZE=${size}>
34 ··············· · ·<[[ref]]/IF>56 ··············· · ·<[[ref]]/IF>
35 ··············· · ·<[[ref]]IMG·SRC=pics/${src}>57 ··············· · ·<[[ref]]IMG·SRC=pics/${src}>
36 ··············· · ·<[[ref]]USE·title>58 ··············· · ·<[[ref]]USE·title>
37 ··············· · ·<[[ref]]IF·size>59 ··············· · ·<[[ref]]IF·size>
Offset 49, 85 lines modifiedOffset 71, 54 lines modified
  
49 ··············· ·Instead,·use·*·like·this:71 ··············· ·Instead,·use·*·like·this:
50 ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*">72 ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*">
51 ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*>73 ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*>
52 ··············· ·<[[ref]]/DEF>74 ··············· ·<[[ref]]/DEF>
53 ··············· · 75 ··············· · 
54 ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo">76 ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo">
55 ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the 
56 ···············information·is·displayed.·In·anything·other·than·byte·format,·the 
57 ···············information·is·displayed·in·floating-point·notation.·The·amount·of 
58 ···············precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be 
59 ···············set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero 
60 ···············(0),·which·means·no·fractional·portion·is·displayed. 
61 ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now 
62 ···············accept·formatting·characters·that·are·passed·directly·into·the·ANSI·C 
63 ···············library·function.·This·allows·for·the·time·and·date·to·be·displayed·in 
64 ···············virtually·any·format.·Users·not·wishing·to·mess·around·with·this·should 
65 ···············stick·to·the·default·format,·which·is·used·if·no·formatting·value·is 
66 ···············specified·(i.e.,·just·using·05:04:11·PM). 
67 ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library 
68 ···············function·strftime()·for·information·on·how·to·build·a·format·string.·If 
69 ···············unsure,·ask·an·experienced·C·programmer·for·help,·or·consider·just 
70 ···············sticking·to·the·default·formatting. 
71 ···············****·INCLUDE·**** 
72 ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is 
73 ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the 
74 ···············source·at·the·same·location·as·the·FILE·markup·tag. 
75 ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the 
76 ···············operating·system's·directory·separator. 
77 ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are 
78 ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros 
79 ···············are·available·only·to·the·include·file·(and·any·macros·or·included·files 
80 ···············it·holds).·After·the·file·is·completely·included,·the·macros·are·no 
81 ···············longer·available.·So: 
82 ··············· ·<[[ref]]WHILE·NOT·i="10"> 
83 ··············· · ·... 
84 ··············· · ·<[[ref]]INC·i> 
85 ··············· ·<[[ref]]/WHILE> 
86 ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the77 ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included
87 ···············included·file.·They·are·not·available,·however,·past·the·tag·(which·is78 ···············file.·They·are·not·available,·however,·past·the·tag·(which·is·why·the
88 ···············why·the·second·statement·will·fail.)79 ···············second·statement·will·fail.)
89 ···············****·TEMPLATE·****80 ···············****·TEMPLATE·****
90 ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is81 ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is
91 ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input82 ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input
92 ···············file·can·define·many·"standard"·macros,·which·are·then·expanded·by·a83 ···············file·can·define·many·"standard"·macros,·which·are·then·expanded·by·a
93 ···············template·file·to·form·a·consistent·page·layout.84 ···············template·file·to·form·a·consistent·page·layout.
94 ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename85 ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename
95 ···············specified·will·be·processed·by·htp.·If·multiple·template·files·need·to·be86 ···············specified·will·be·processed·by·htp.·If·multiple·template·files·need·to·be
96 ···············included,·specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE87 ···············included,·specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE·to
97 ···············to·branch·off.88 ···············branch·off.
Max diff block lines reached; 4063/13126 bytes (30.95%) of diff not shown.
14.0 KB
./usr/share/doc/htp/if.html
    
Offset 114, 73 lines modifiedOffset 114, 31 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·&nbsp;·File·image.gif·<span·class="htp-tag">&lt;<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>&gt;</span>&nbsp;kilobytes<br>
 122 &nbsp;·&nbsp;·Last·modified·<span·class="htp-tag">&lt;<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>&gt;</span>,·<span·class="htp-tag">&lt;<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>&gt;</span><br>
121 </code></p>123 </code></p>
122 <h2>synopsis</h2>124 <h2>synopsis</h2>
123 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building125 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building
124 blocks·for·conditional·processing.··The·basic·form·is·shown·above.126 blocks·for·conditional·processing.··The·basic·form·is·shown·above.
125 <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A127 <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A
126 compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal128 compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal
127 string:129 string:
128 ··<p><code>130 ··<p><code>
 131 <span·class="htp-tag">&lt;<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>&gt;</span><br>
129 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>&gt;</span><br> 
130 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>&gt;</span><br> 
131 <br>132 <br>
132 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
133 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> 
134 &nbsp;·(no·URL·replacement).<br> 
135 <br> 
136 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>&gt;</span><br> 
137 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> 
138 <br> 
139 &nbsp;·But·for·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>&gt;</span><br> 
140 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> 
141 &nbsp;·will·not·be·added.<br> 
142 <br> 
143 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> 
144 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>&gt;</span><br> 
145 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>&gt;</span><br> 
146 <br> 
147 &nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>&gt;</span>&nbsp;and·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>&gt;</span>&nbsp;are·mapped·to<br> 
148 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> 
149 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> 
150 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> 
151 </code></p>133 </code></p>
152 <P>134 <P>
153 and·a·defined·operator·is·a·test·of·a·macro's·existance:135 and·a·defined·operator·is·a·test·of·a·macro's·existance:
154 <P>136 <P>
155 ··<p><code>137 ··<p><code>
156 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
157 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
158 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br> 
159 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
160 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
161 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
162 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
163 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
164 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
165 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
166 <br> 
167 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
168 <br> 
169 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
170 <br> 
171 &nbsp;·This·will·fail:<br> 
172 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
173 <br> 
174 &nbsp;·Instead,·use·*·like·this:<br> 
175 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
176 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
177 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
178 &nbsp;·&nbsp;·<br> 
179 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
180 </code></p>138 </code></p>
181 <P>139 <P>
182 If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the140 If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the
183 conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that141 conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that
184 evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the142 evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the
185 ELSE·block·is·taken·if·it·is·present.··A·conditional·block143 ELSE·block·is·taken·if·it·is·present.··A·conditional·block
186 <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested.144 <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested.
4.92 KB
html2text {}
    
Offset 1, 80 lines modifiedOffset 1, 38 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·······*****·syntax·*****3 Table_of·······*****·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>
4 Contents·······*****·synopsis·*****7  Tutorial·····*****·synopsis·*****
5  Introduction·IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional8  Usage········IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional
6  License······processing.·The·basic·form·is·shown·above.9  HTP·Tags·····processing.·The·basic·form·is·shown·above.
7  Tutorial·····"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare10   ··ALTTEXT··"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare
8  Usage········operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string:11   ··BLOCK····operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string:
 12   ··BLOCKDEF·<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]>
 13   ··DEF
 14   ··FILE·····and·a·defined·operator·is·a·test·of·a·macro's·existance:
 15  [>]·IF·······If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the
 16   ··INC······conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates
 17   ··IMG······to·true·is·chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is
 18   ··IMAGEURL·taken·if·it·is·present.·A·conditional·block·must·be·closed·with·the·/IF
 19   ··OPT······tag.·IF·tags·can·be·nested.
 20   ··OUTPUT
 21   ··QUOTE
9  HTP·Tags····· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> 
10   ··ALTTEXT·· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> 
11   ··BLOCK 
12   ··BLOCKDEF· ·For·this·line:·<[[ref]]img·src="logo.gif"> 
13   ··DEF······ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions 
14   ··FILE····· ·(no·URL·replacement). 
15  [>]·IF 
16   ··INC······ ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> 
17   ··IMG······ ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. 
18   ··IMAGEURL 
19   ··OPT······ ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> 
20   ··OUTPUT··· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions 
21   ··QUOTE···· ·will·not·be·added. 
22   ··SET22   ··SET
23   ··UNDEF···· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: 
24   ··UNSET···· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> 
25   ··USE,_$··· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/">23   ··UNDEF
 24   ··UNSET
 25   ··USE,_$
26   ··WHILE26   ··WHILE
 27   ··<!---
 28  History
 29  Wish_list
 30  Bugs
27   ··<!---···· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are 
28  History······mapped·to 
29  Wish_list···· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. 
30  Bugs········· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second 
31 ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. 
32 ···············and·a·defined·operator·is·a·test·of·a·macro's·existance: 
33 ··············· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> 
34 ··············· · ·<[[ref]]IF·size> 
35 ··············· · · · ·<FONT·SIZE=${size}> 
36 ··············· · ·<[[ref]]/IF> 
37 ··············· · ·<[[ref]]IMG·SRC=pics/${src}> 
38 ··············· · ·<[[ref]]USE·title> 
39 ··············· · ·<[[ref]]IF·size> 
40 ··············· · · · ·</FONT> 
41 ··············· · ·<[[ref]]/IF> 
42 ··············· ·<[[ref]]/DEF> 
  
43 ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> 
  
44 ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> 
  
45 ··············· ·This·will·fail: 
46 ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> 
  
47 ··············· ·Instead,·use·*·like·this: 
48 ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> 
49 ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> 
50 ··············· ·<[[ref]]/DEF> 
51 ··············· ·  
52 ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> 
53 ···············If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the·conditional 
54 ···············is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates·to·true·is 
55 ···············chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is·taken·if·it·is 
56 ···············present.·A·conditional·block·must·be·closed·with·the·/IF·tag.·IF·tags·can·be 
57 ···············nested. 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Offset 89, 10 lines modifiedOffset 47, 10 lines modified
89 [Powered_by47 [Powered_by
90 htp]48 htp]
91 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/49 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
92 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.50 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
93 ·····Maintainers:·Jochen_Hoenicke.51 ·····Maintainers:·Jochen_Hoenicke.
94 Copyright·©·1995–96·Jim·Nelson.52 Copyright·©·1995–96·Jim·Nelson.
95 Copyright·©·2001–2014·Jochen_Hoenicke.53 Copyright·©·2001–2014·Jochen_Hoenicke.
96 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms54 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to
97 described·in·the·License_section.55 terms·described·in·the·License_section.
98 last·updated·Sat·May·16,·201556 last·updated·Sat·May·16,·2015
12.6 KB
./usr/share/doc/htp/imageurl.html
    
Offset 114, 20 lines modifiedOffset 114, 16 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 122 &nbsp;·&nbsp;·This·tag·will·fail:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;EM&gt;</span>File·"<span·class="htp-tag">&lt;<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>&gt;</span>"·last·updated·<span·class="htp-tag">&lt;<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>&gt;</span>,·<span·class="htp-tag">&lt;<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>&gt;</span><span·class="htp-tag">&lt;/EM&gt;</span><br> 
122 PT·(PRECIOUS|NOPRECIOUS)><br> 
123 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">CONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">SEMICONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">NOCONDENSE</span><span·class="ebnf">)</span>&gt;</span><br> 
124 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="ebnf">(</span><span·class="htp-value">HTML<span·class="ebnf">|</span>SQUARE<span·class="ebnf">|</span>CURLY<span·class="ebnf">)</span></span>&gt;</span><br> 
125 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">XML</span><span·class="ebnf">|</span><span·class="htp-attrib">XML</span>=<span·class="htp-value">FALSE<span·class="ebnf">)</span></span>&gt;</span><br> 
126 <br> 
127 </code></p>123 </code></p>
128 <h2>synopsis</h2>124 <h2>synopsis</h2>
129 <P>125 <P>
130 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local126 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local
131 file·system.··declares·an·URL·replacement·that·is·used·for127 file·system.··declares·an·URL·replacement·that·is·used·for
132 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions128 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions
133 takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is129 takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is
Offset 141, 16 lines modifiedOffset 137, 38 lines modified
141 checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC137 checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC
142 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.
143 If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and139 If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and
144 looked·up·in·the·current·directory.</P>140 looked·up·in·the·current·directory.</P>
145 <P>141 <P>
146 For·example:</P>142 For·example:</P>
147 ··<p><code>143 ··<p><code>
148 <span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>[·...·truncated·by·diffoscope;·len:·117,·SHA:·27e4f3684e92be27f5222155df1a3c3432e8ef881a5250721d08d15f00db7845·...·]</span>&gt;</span><br>144 &nbsp;·<span·class="htp-tag">&lt;<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:·36,·SHA:·a48e3b5043fdef3852f24d4ca2018699e1810cae7d53ba3772ebebc1f092846f·...·]</span>&gt;</span><br>
 145 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 146 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br>
 147 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 148 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 149 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 150 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 151 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br>
 152 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 153 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 154 <br>
 155 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 156 <br>
 157 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 158 <br>
 159 &nbsp;·This·will·fail:<br>
 160 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
149 <br>161 <br>
 162 &nbsp;·Instead,·use·*·like·this:<br>
 163 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 164 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 165 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 166 &nbsp;·&nbsp;·<br>
 167 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
150 </code></p>168 </code></p>
151 <P>169 <P>
152 If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as170 If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as
153 an·undefine,·and·is·removed.</P>171 an·undefine,·and·is·removed.</P>
154 <P>172 <P>
155 Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout173 Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout
156 a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an174 a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an
5.15 KB
html2text {}
    
Offset 1, 42 lines modifiedOffset 1, 60 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·IMAGEURL·******2 ******·htp·on-line·reference·:·IMAGEURL·******
3 Table_of·······*****·syntax·*****3 Table_of·······*****·syntax·*****
 4 Contents······· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson"
 5  Introduction·email="jnelson@crl.com">
 6  License······ · ·This·tag·will·fail:·<[[ref]]USE·name>
4 Contents······· · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ 
5  Introduction·[ref]]FILE·DATE></EM> 
6  License······PT·(PRECIOUS|NOPRECIOUS)> 
7  Tutorial·····<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> 
8  Usage········<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> 
9  HTP·Tags·····<[[ref]]OPT·(XML|XML=FALSE)> 
10   ··ALTTEXT 
11   ··BLOCK····*****·synopsis·*****7  Tutorial·····*****·synopsis·*****
12   ··BLOCKDEF·IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system.8  Usage········IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system.
13   ··DEF······declares·an·URL·replacement·that·is·used·for·size·lookups·in·any·IMG9  HTP·Tags·····declares·an·URL·replacement·that·is·used·for·size·lookups·in·any
14   ··FILE·····tag.·This·definitions·takes·effect·only·if·the·IMGXY·option·is·enabled.10   ··ALTTEXT··IMG·tag.·This·definitions·takes·effect·only·if·the·IMGXY·option·is
15   ··IF·······Beacause·htp·can't·lookup·files·in·the·world·wide·web·you·have·to·map11   ··BLOCK····enabled.·Beacause·htp·can't·lookup·files·in·the·world·wide·web·you
16   ··INC······absolute·image·URLs·to·a·directory·in·the·local·file·system.12   ··BLOCKDEF·have·to·map·absolute·image·URLs·to·a·directory·in·the·local·file
 13   ··DEF······system.
17   ··IMG······When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and·height14   ··FILE·····When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and
18  [>]·IMAGEURL·the·defined·URL·replacements·will·be·taken·into·account·(later15   ··IF·······height·the·defined·URL·replacements·will·be·taken·into·account
19   ··OPT······definitions·take·precedence·to·earlier):·For·each·defined·imageurl·it16   ··INC······(later·definitions·take·precedence·to·earlier):·For·each·defined
20   ··OUTPUT···checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC17   ··IMG······imageurl·it·checks·(case-insensitive)·if·it·is·a·prefix·of·the
21   ··QUOTE····attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH.·If 
22   ··SET······no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and·looked 
23   ··UNDEF····up·in·the·current·directory.18  [>]·IMAGEURL·image's·SRC·attribute.·If·it·matches·this·prefix·is·replaced·by
 19   ··OPT······the·given·PATH.·If·no·IMAGEURL·matches·the·SRC·is·considered·as
 20   ··OUTPUT···relative·link·and·looked·up·in·the·current·directory.
24   ··UNSET····For·example:21   ··QUOTE····For·example:
25   ··USE,_$···<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] 
26   ··WHILE····[GLOBAL]> 
27   ··<!---22   ··SET······ ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE">
 23   ··UNDEF···· · ·<[[ref]]IF·size>
 24   ··UNSET···· · · · ·<FONT·SIZE=${size}>
 25   ··USE,_$··· · ·<[[ref]]/IF>
 26   ··WHILE···· · ·<[[ref]]IMG·SRC=pics/${src}>
 27   ··<!---···· · ·<[[ref]]USE·title>
 28  History······ · ·<[[ref]]IF·size>
 29  Wish_list···· · · · ·</FONT>
 30  Bugs········· · ·<[[ref]]/IF>
 31 ··············· ·<[[ref]]/DEF>
  
 32 ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title">
  
 33 ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title">
  
 34 ··············· ·This·will·fail:
 35 ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title">
  
 36 ··············· ·Instead,·use·*·like·this:
 37 ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*">
 38 ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*>
 39 ··············· ·<[[ref]]/DEF>
 40 ··············· · 
 41 ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo">
28  History······If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is42 ···············If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is
29  Wish_list····treated·as·an·undefine,·and·is·removed.43 ···············treated·as·an·undefine,·and·is·removed.
30  Bugs·········Since·you·usually·need·the·url·mapping·for·a·number·of·images·used44 ···············Since·you·usually·need·the·url·mapping·for·a·number·of·images·used
31 ···············throughout·a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into45 ···············throughout·a·set·of·documents,·IMAGEURL·is·most·appropriately·put
32 ···············an·include_file·or·the·htp.def·file.46 ···············into·an·include_file·or·the·htp.def·file.
33 ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically·add47 ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically
34 ···············an·ALT_text·attribute·to·IMG·tags.48 ···············add·an·ALT_text·attribute·to·IMG·tags.
  
  
  
  
  
  
  
Offset 62, 10 lines modifiedOffset 80, 10 lines modified
62 [Powered_by80 [Powered_by
63 htp]81 htp]
64 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/82 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
65 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.83 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
66 ·····Maintainers:·Jochen_Hoenicke.84 ·····Maintainers:·Jochen_Hoenicke.
67 Copyright·©·1995–96·Jim·Nelson.85 Copyright·©·1995–96·Jim·Nelson.
68 Copyright·©·2001–2014·Jochen_Hoenicke.86 Copyright·©·2001–2014·Jochen_Hoenicke.
69 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to87 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according
70 terms·described·in·the·License_section.88 to·terms·described·in·the·License_section.
71 last·updated·Sat·May·16,·201589 last·updated·Sat·May·16,·2015
4.8 KB
./usr/share/doc/htp/img.html
    
Offset 115, 15 lines modifiedOffset 115, 14 lines modified
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 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>&gt;</span>...<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>&gt;</span>...<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
122 ast·updated·<span·class="htp-tag">&lt;<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>&gt;</span>,·<span·class="htp-tag">&lt;<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>&gt;</span><span·class="htp-tag">&lt;/EM&gt;</span><br> 
123 </code></p>122 </code></p>
124 <h2>synopsis</h2>123 <h2>synopsis</h2>
125 <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified124 <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·advantage125 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·especially126 of·not·having·to·determine·each·image's·size·manually,·which·is·especially
128 useful·if·the·image·may·change·frequently.·</P>127 useful·if·the·image·may·change·frequently.·</P>
129 <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup128 <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup
3.5 KB
html2text {}
    
Offset 1, 39 lines modifiedOffset 1, 37 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·IMG·******2 ******·htp·on-line·reference·:·IMG·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction··············· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF>4  Introduction··············· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF>
5  License····················ast·updated·<[[ref]]FILE·TIME>,·<[[ref]]FILE 
6  Tutorial···················DATE></EM> 
7  Usage······················*****·synopsis·*****5  License····················*****·synopsis·*****
8  HTP·Tags···················img·is·a·standard·HTML·tag.·htp·can·add·the6  Tutorial···················img·is·a·standard·HTML·tag.·htp·can·add·the
9   ··ALTTEXT················specified·image's·width·and·height·to·the·tag7  Usage······················specified·image's·width·and·height·to·the·tag
10   ··BLOCK··················automatically.·This·has·the·advantage·of·not8  HTP·Tags···················automatically.·This·has·the·advantage·of·not
11   ··BLOCKDEF···············having·to·determine·each·image's·size·manually,9   ··ALTTEXT················having·to·determine·each·image's·size·manually,
12   ··DEF····················which·is·especially·useful·if·the·image·may·change10   ··BLOCK··················which·is·especially·useful·if·the·image·may·change
13   ··FILE···················frequently.11   ··BLOCKDEF···············frequently.
14   ··IF·····················htp·adds·this·information·with·the·WIDTH·and12   ··DEF····················htp·adds·this·information·with·the·WIDTH·and
15   ··INC····················HEIGHT·markup·attributes.·If·htp·detects·these13   ··FILE···················HEIGHT·markup·attributes.·If·htp·detects·these
16  [>]·IMG····················attributes·are·already·present·in·the·tag,·it·will14   ··IF·····················attributes·are·already·present·in·the·tag,·it·will
17   ··IMAGEURL···············not·modify·the·values.·If·htp·cannot·find·the15   ··INC····················not·modify·the·values.·If·htp·cannot·find·the
18   ··OPT····················image·file,·it·will·issue·a·warning·but·not·halt16  [>]·IMG····················image·file,·it·will·issue·a·warning·but·not·halt
19   ··OUTPUT·················processing.17   ··IMAGEURL···············processing.
20   ··QUOTE··················At·this·time,·GIF·(Graphic·Interchange·Format),18   ··OPT····················At·this·time,·GIF·(Graphic·Interchange·Format),
21   ··SET····················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG19   ··OUTPUT·················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG
22   ··UNDEF··················File·Interchange·Format)·are·supported.20   ··QUOTE··················File·Interchange·Format)·are·supported.
23   ··UNSET··················The·IMGXY_and_NOIMGXY·options·control·whether·or21   ··SET····················The·IMGXY_and_NOIMGXY·options·control·whether·or
24   ··USE,_$·················not·htp·actually·adds·this·information·as·it22   ··UNDEF··················not·htp·actually·adds·this·information·as·it
25   ··WHILE··················executes.23   ··UNSET··················executes.
26   ··<!---··················Since·htp·is·able·to·lookup·files·only·in·the24   ··USE,_$·················Since·htp·is·able·to·lookup·files·only·in·the
27  History····················local·filesystem,·the·IMAGEURL·tag·may·be·used·to25   ··WHILE··················local·filesystem,·the·IMAGEURL·tag·may·be·used·to
28  Wish_list··················map·URLs·to·local·files.26   ··<!---··················map·URLs·to·local·files.
29  Bugs·······················htp·can·also·add·default·ALT·text·to·IMG·tags27  History····················htp·can·also·add·default·ALT·text·to·IMG·tags
30 ·····························using·ALTTEXT.28  Wish_list··················using·ALTTEXT.
 29  Bugs
  
  
  
  
  
  
  
11.1 KB
./usr/share/doc/htp/inc.html
    
Offset 114, 19 lines modifiedOffset 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">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"imageurl"</span>·<span·class="ebnf">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="ebnf">]</span>&gt;</span><br>
121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;EM&gt;</span>File·"<span·class="htp-tag">&lt;<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>&gt;</span>"·last·updated·<span·class="htp-tag">&lt;<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>&gt;</span>,·<span·class="htp-tag">&lt;<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>&gt;</span><span·class="htp-tag">&lt;/EM&gt;</span><br> 
122 PT·(PRECIOUS|NOPRECIOUS)><br> 
123 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">CONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">SEMICONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">NOCONDENSE</span><span·class="ebnf">)</span>&gt;</span><br> 
124 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="ebnf">(</span><span·class="htp-value">HTML<span·class="ebnf">|</span>SQUARE<span·class="ebnf">|</span>CURLY<span·class="ebnf">)</span></span>&gt;</span><br> 
125 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">XML</span><span·class="ebnf">|</span><span·class="htp-attrib">XML</span>=<span·class="htp-value">FALSE<span·class="ebnf">)</span></span>&gt;</span><br> 
126 <br>122 <br>
127 </code></p>123 </code></p>
128 <h2>synopsis</h2>124 <h2>synopsis</h2>
129 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a125 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a
130 variable·or·for·variable·addition.··The·basic·form·is·shown·above.126 variable·or·for·variable·addition.··The·basic·form·is·shown·above.
131 <P>127 <P>
132 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a128 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a
Offset 134, 14 lines modifiedOffset 130, 38 lines modified
134 macroname·must·be·the·name·of·a·defined·macro·that·contains·an130 macroname·must·be·the·name·of·a·defined·macro·that·contains·an
135 integer.··If·the·increment·is·ommitted·it·defaults·to·1.131 integer.··If·the·increment·is·ommitted·it·defaults·to·1.
136 The·effect·of·this·operation·is·that·the·macro·is·redefined132 The·effect·of·this·operation·is·that·the·macro·is·redefined
137 to·contain·the·sum·of·its·previous·value·and·its·increment.133 to·contain·the·sum·of·its·previous·value·and·its·increment.
138 <P>134 <P>
139 To·increment·or·decrement·a·variable·you·can·use·this·form:135 To·increment·or·decrement·a·variable·you·can·use·this·form:
140 ··<p><code>136 ··<p><code>
 137 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 138 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 139 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br>
 140 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 141 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 142 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 143 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 144 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br>
 145 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 146 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 147 <br>
 148 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 149 <br>
 150 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 151 <br>
 152 &nbsp;·This·will·fail:<br>
 153 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
 154 <br>
 155 &nbsp;·Instead,·use·*·like·this:<br>
 156 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 157 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 158 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 159 &nbsp;·&nbsp;·<br>
 160 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br>
141 </code></p>161 </code></p>
142 <p>162 <p>
143 Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It163 Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It
144 may·give·weired·results·when·used·on·arbitrary·strings.··The·integer164 may·give·weired·results·when·used·on·arbitrary·strings.··The·integer
145 values·are·limited·to·the·range·-2^31..2^31.165 values·are·limited·to·the·range·-2^31..2^31.
146 <P>166 <P>
147 Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.167 Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.
4.27 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 58 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·INC·******2 ******·htp·on-line·reference·:·INC·******
3 Table_of·······*****·syntax·*****3 Table_of·······*****·syntax·*****
 4 Contents·······<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"
 5  Introduction·]>
 6  License
4 Contents······· · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[ 
5  Introduction·[ref]]FILE·DATE></EM> 
6  License······PT·(PRECIOUS|NOPRECIOUS)> 
7  Tutorial·····<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> 
8  Usage········<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> 
9  HTP·Tags·····<[[ref]]OPT·(XML|XML=FALSE)> 
10   ··ALTTEXT 
11   ··BLOCK····*****·synopsis·*****7  Tutorial·····*****·synopsis·*****
12   ··BLOCKDEF·The·INC·can·be·used·for·incrementing/decrementing·a·variable·or·for8  Usage········The·INC·can·be·used·for·incrementing/decrementing·a·variable·or
13   ··DEF······variable·addition.·The·basic·form·is·shown·above.9  HTP·Tags·····for·variable·addition.·The·basic·form·is·shown·above.
14   ··FILE·····The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be·a10   ··ALTTEXT··The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be
15   ··IF·······literal·string·or·a·macro·preceeded·by·the·'$'-operator.·The·macroname11   ··BLOCK····a·literal·string·or·a·macro·preceeded·by·the·'$'-operator.·The
16  [>]·INC······must·be·the·name·of·a·defined·macro·that·contains·an·integer.·If·the 
17   ··IMG······increment·is·ommitted·it·defaults·to·1.·The·effect·of·this·operation·is 
18   ··IMAGEURL·that·the·macro·is·redefined·to·contain·the·sum·of·its·previous·value 
19   ··OPT······and·its·increment.12   ··BLOCKDEF·macroname·must·be·the·name·of·a·defined·macro·that·contains·an
 13   ··DEF······integer.·If·the·increment·is·ommitted·it·defaults·to·1.·The·effect
 14   ··FILE·····of·this·operation·is·that·the·macro·is·redefined·to·contain·the
 15   ··IF·······sum·of·its·previous·value·and·its·increment.
20   ··OUTPUT···To·increment·or·decrement·a·variable·you·can·use·this·form:16  [>]·INC······To·increment·or·decrement·a·variable·you·can·use·this·form:
21   ··QUOTE····Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.·It 
22   ··SET······may·give·weired·results·when·used·on·arbitrary·strings.·The·integer 
23   ··UNDEF····values·are·limited·to·the·range·-2^31..2^31. 
24   ··UNSET····Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.·The 
25   ··USE,_$···INC·tag·is·useful·in·conjunction·with·WHILE·to·iterate·over·the·defined 
26   ··WHILE····blocks.17   ··IMG······ ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE">
 18   ··IMAGEURL· · ·<[[ref]]IF·size>
 19   ··OPT······ · · · ·<FONT·SIZE=${size}>
 20   ··OUTPUT··· · ·<[[ref]]/IF>
 21   ··QUOTE···· · ·<[[ref]]IMG·SRC=pics/${src}>
 22   ··SET······ · ·<[[ref]]USE·title>
 23   ··UNDEF···· · ·<[[ref]]IF·size>
 24   ··UNSET···· · · · ·</FONT>
 25   ··USE,_$··· · ·<[[ref]]/IF>
 26   ··WHILE···· ·<[[ref]]/DEF>
27   ··<!---27   ··<!---
28  History28  History······ ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title">
29  Wish_list29  Wish_list
30  Bugs30  Bugs········· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title">
  
 31 ··············· ·This·will·fail:
 32 ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title">
  
 33 ··············· ·Instead,·use·*·like·this:
 34 ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*">
 35 ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*>
 36 ··············· ·<[[ref]]/DEF>
 37 ··············· · 
 38 ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo">
 39 ···············Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.
 40 ···············It·may·give·weired·results·when·used·on·arbitrary·strings.·The
 41 ···············integer·values·are·limited·to·the·range·-2^31..2^31.
 42 ···············Note·further·that·htp·wasn't·designed·to·do·extensive
 43 ···············calculations.·The·INC·tag·is·useful·in·conjunction·with·WHILE·to
 44 ···············iterate·over·the·defined·blocks.
  
  
  
  
  
  
  
  
  
  
  
Offset 54, 10 lines modifiedOffset 74, 10 lines modified
54 [Powered_by74 [Powered_by
55 htp]75 htp]
56 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/76 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
57 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.77 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
58 ·····Maintainers:·Jochen_Hoenicke.78 ·····Maintainers:·Jochen_Hoenicke.
59 Copyright·©·1995–96·Jim·Nelson.79 Copyright·©·1995–96·Jim·Nelson.
60 Copyright·©·2001–2014·Jochen_Hoenicke.80 Copyright·©·2001–2014·Jochen_Hoenicke.
61 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to81 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according
62 terms·described·in·the·License_section.82 to·terms·described·in·the·License_section.
63 last·updated·Sat·May·16,·201583 last·updated·Sat·May·16,·2015
32.0 KB
./usr/share/doc/htp/metatag.html
    
Offset 88, 36 lines modifiedOffset 88, 18 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·and88 <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·a91 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">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>&gt;</span><br> 
96 <font·size="-2">&nbsp;2.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-[·...·truncated·by·diffoscope;·len:·69,·SHA:·17ca75aae63ad9eeefaa60ec932da743d1319272a38594e6f3330a9f8dff8d3c·...·]</span>&gt;</span><br>95 <font·size="-2">&nbsp;1.·</font><span·class="htp-tag">&lt;<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="htp-attrib">[APPE[·...·truncated·by·diffoscope;·len:·44,·SHA:·383f79db1c9cd344af2d0950186a12c478d0d0c3709b8c9fbdf3af5df93772d7·...·]</span>&gt;</span><br>
 96 <font·size="-2">&nbsp;2.·</font>text·block<br>
 97 <font·size="-2">&nbsp;3.·</font><span·class="htp-tag">&lt;<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</a>&gt;</span><br>
97 <font·size="-2">&nbsp;3.·</font><br>98 <font·size="-2">&nbsp;4.·</font><br>
98 <font·size="-2">&nbsp;4.·</font>&nbsp;·For·this·line:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
99 <font·size="-2">&nbsp;5.·</font>&nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> 
100 <font·size="-2">&nbsp;6.·</font>&nbsp;·(no·URL·replacement).<br> 
101 <font·size="-2">&nbsp;7.·</font><br> 
102 <font·size="-2">&nbsp;8.·</font>&nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>&gt;</span><br> 
103 <font·size="-2">&nbsp;9.·</font>&nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> 
104 <font·size="-2">10.·</font><br> 
105 <font·size="-2">11.·</font>&nbsp;·But·for·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>&gt;</span><br> 
106 <font·size="-2">12.·</font>&nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> 
107 <font·size="-2">13.·</font>&nbsp;·will·not·be·added.<br> 
108 <font·size="-2">14.·</font><br> 
109 <font·size="-2">15.·</font>&nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> 
110 <font·size="-2">16.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>&gt;</span><br> 
111 <font·size="-2">17.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>&gt;</span><br> 
112 <font·size="-2">18.·</font><br> 
113 <font·size="-2">19.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>&gt;</span>&nbsp;and·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>&gt;</span>&nbsp;are·mapped·to<br> 
114 <font·size="-2">20.·</font>&nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> 
115 <font·size="-2">21.·</font>&nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> 
116 <font·size="-2">22.·</font>&nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> 
117 </code></p>99 </code></p>
118 <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.100 <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.
119 The·html·code·which·implements·this·rule·is·following·in·lines·2-8.101 The·html·code·which·implements·this·rule·is·following·in·lines·2-8.
120 between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and102 between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and
121 <code>/def</code></a>·tags.··You·don't·have·to·understand·this103 <code>/def</code></a>·tags.··You·don't·have·to·understand·this
122 html·code,·but·you·should·understand·that·this·is·just·pure·html·to104 html·code,·but·you·should·understand·that·this·is·just·pure·html·to
123 draw·the·fancy·rule.·Every·time·you·write·<code>&lt;imghr&gt;</code>105 draw·the·fancy·rule.·Every·time·you·write·<code>&lt;imghr&gt;</code>
Offset 127, 62 lines modifiedOffset 109, 41 lines modified
127 file</a>.··</p>109 file</a>.··</p>
128 <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing110 <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing
129 variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp111 variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp
130 encounters·a·blockdef·tag·it·will·automatically·search·for·the112 encounters·a·blockdef·tag·it·will·automatically·search·for·the
131 matching·closing·tag·and·put·everything·between·these·tags·in·a·block113 matching·closing·tag·and·put·everything·between·these·tags·in·a·block
132 macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P>114 macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P>
133 ··<p><code>115 ··<p><code>
 116 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 117 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;b&gt;</span><span·class="htp-tag">&lt;i&gt;</span><br>
134 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
135 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
136 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br> 
137 <font·size="-2">&nbsp;4.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
138 <font·size="-2">&nbsp;5.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
139 <font·size="-2">&nbsp;6.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>118 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 119 <font·size="-2">&nbsp;4.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&gt;</span><br>
140 <font·size="-2">&nbsp;7.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
141 <font·size="-2">&nbsp;8.·</font>&nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
142 <font·size="-2">&nbsp;9.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
143 <font·size="-2">10.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>120 <font·size="-2">&nbsp;5.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>
144 <font·size="-2">11.·</font><br>121 <font·size="-2">&nbsp;6.·</font><br>
 122 <font·size="-2">&nbsp;7.·</font>&nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br>
145 <font·size="-2">12.·</font>&nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
146 <font·size="-2">13.·</font><br> 
147 <font·size="-2">14.·</font>&nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
148 <font·size="-2">15.·</font><br> 
149 <font·size="-2">16.·</font>&nbsp;·This·will·fail:<br> 
150 <font·size="-2">17.·</font>&nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
151 <font·size="-2">18.·</font><br> 
152 <font·size="-2">19.·</font>&nbsp;·Instead,·use·*·like·this:<br> 
153 <font·size="-2">20.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
154 <font·size="-2">21.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
155 <font·size="-2">22.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
156 <font·size="-2">23.·</font>&nbsp;·&nbsp;·<br> 
157 <font·size="-2">24.·</font>&nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
158 </code></p>123 </code></p>
159 <h2>Using·parameters</h2>124 <h2>Using·parameters</h2>
160 <p>·More·sophisticated·tags·accept·parameters.··The125 <p>·More·sophisticated·tags·accept·parameters.··The
161 <code>option</code>·parameter·lets·multiple·metatag·parameters·be126 <code>option</code>·parameter·lets·multiple·metatag·parameters·be
162 named·and·expanded·inside·the·<code>def</code>·or127 named·and·expanded·inside·the·<code>def</code>·or
163 <code>blockdef</code>·block:·</p>128 <code>blockdef</code>·block:·</p>
164 ··<p><code>129 ··<p><code>
165 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br>130 <font·size="-2">&nbsp;1.·</font><span·class="htp-tag">&lt;<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class=[·...·truncated·by·diffoscope;·len:·17,·SHA:·caad84c8bc3777dc8199258e880f877b9b82b192a94413c7375c9beda919cf50·...·]</span>&gt;</span><br>
166 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br>131 <font·size="-2">&nbsp;2.·</font><br>
167 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
168 <font·size="-2">&nbsp;4.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br> 
169 </code></p>132 </code></p>
170 <h2>Saving·blocks·for·later</h2>133 <h2>Saving·blocks·for·later</h2>
171 <p>When·you·are·using·templates,·the·html·should·only·be·written·by134 <p>When·you·are·using·templates,·the·html·should·only·be·written·by
172 the·template·file.··The·normal·htp·files·should·just·define·macros135 the·template·file.··The·normal·htp·files·should·just·define·macros
173 that·are·used·later·in·the·template.··So·you·may·want·to·write·block136 that·are·used·later·in·the·template.··So·you·may·want·to·write·block
174 tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this137 tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this
175 is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to138 is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to
176 do·this:</p>139 do·this:</p>
177 ··<p><code>140 ··<p><code>
178 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>141 <font·size="-2">&nbsp;1.·</font><span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>[·...·truncated·by·diffoscope;·len:·117,·SHA:·27e4f3684e92be27f5222155df1a3c3432e8ef881a5250721d08d15f00db7845·...·]</span>&gt;</span><br>
179 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br>142 <font·size="-2">&nbsp;2.·</font><br>
180 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
181 <font·size="-2">&nbsp;4.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br> 
182 </code></p>143 </code></p>
183 <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a144 <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a
184 counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is145 counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is
185 increased·for·every·section·(line·3)·and·then·the·block·macro·name·is146 increased·for·every·section·(line·3)·and·then·the·block·macro·name·is
186 build·from·this·counter.··So·the·first·section·is·stored·in·block147 build·from·this·counter.··So·the·first·section·is·stored·in·block
187 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>·flag148 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
188 in·line·4·tells·htp·that·these·macros·should·be·defined·globally149 in·line·4·tells·htp·that·these·macros·should·be·defined·globally
Offset 201, 21 lines modifiedOffset 162, 15 lines modified
201 contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be162 contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be
202 expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the163 expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the
203 template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you164 template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you
204 use·expand·in·a·block·around·it.</p>165 use·expand·in·a·block·around·it.</p>
205 <p>To·close·this·example·we·show·how·to·expand·the166 <p>To·close·this·example·we·show·how·to·expand·the
206 <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p>167 <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p>
207 ··<p><code>168 ··<p><code>
 169 <font·size="-2">&nbsp;1.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
208 <font·size="-2">&nbsp;1.·</font><span·class="htp-tag">&lt;<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>&gt;</span><br> 
209 <font·size="-2">&nbsp;2.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
210 <font·size="-2">&nbsp;3.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
211 <font·size="-2">&nbsp;4.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
212 <font·size="-2">&nbsp;5.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
213 <font·size="-2">&nbsp;6.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>&gt;</span><br> 
214 <font·size="-2">&nbsp;7.·</font><span·class="htp-tag">&lt;<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>&gt;</span><br> 
215 </code></p>170 </code></p>
216 <p>171 <p>
217 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·whether172 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
218 the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is173 the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is
219 evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards174 evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards
220 the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This175 the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This
Max diff block lines reached; 0/17942 bytes (0.00%) of diff not shown.
14.4 KB
html2text {}
    
Offset 1, 135 lines modifiedOffset 1, 95 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·define·a·metatag4 Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define·a
5  Introduction··you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fact·metatags·are5  Introduction··metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fact
6  License·······just·like·block·macros,·but·they·have·a·nicer·syntax.·With·metatags·you·can6  License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer·syntax.·With
7  Tutorial······expand·htp's·functionality.7  Tutorial······metatags·you·can·expand·htp's·functionality.
8   ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and·undefined8   ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and
9   ··Including·with·the·[[ref]]undef·tag.9   ··Including·undefined·with·the·[[ref]]undef·tag.
10   ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal·rule10   ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal
11   ··Files·····out·of·several·images.11   ··Files·····rule·out·of·several·images.
12  [>]·Metatags·· 1. ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> 
13  Usage········· 2. ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> 
14  HTP_Tags······ 3. 
15  History······· 4. ·For·this·line:·<[[ref]]img·src="logo.gif"> 
16  Wish_list····· 5. ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions 
17  Bugs·········· 6. ·(no·URL·replacement).12  [>]·Metatags·· 1.<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]>
 13  Usage········· 2.text·block
 14  HTP_Tags······ 3.<[[ref]]/OUTPUT>
 15  History······· 4.
 16  Wish_list·····In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The
 17  Bugs··········html·code·which·implements·this·rule·is·following·in·lines·2-8.·between
 18 ················the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand·this·html
 19 ················code,·but·you·should·understand·that·this·is·just·pure·html·to·draw·the
 20 ················fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12·htp·will·replace
 21 ················this·tag·with·the·corresponding·html·code.·To·make·metatags·available·to
 22 ················all·htp·documents·in·your·project,·place·them·in·a·common·[[ref]]include
 23 ················file.
 24 ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing
 25 ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.·When
 26 ················htp·encounters·a·blockdef·tag·it·will·automatically·search·for·the
 27 ················matching·closing·tag·and·put·everything·between·these·tags·in·a·block
 28 ················macro·named·block.·Here·is·an·example·for·this.
 29 ················ 1. ·<[[ref]]blockdef·name="bolditalic">
 30 ················ 2. · ·<b><i>
 31 ················ 3. · ·<[[ref]]use·block>
 32 ················ 4. · ·</i></b>
 33 ················ 5. ·<[[ref]]/blockdef>
18 ················ 7.34 ················ 6.
 35 ················ 7. ·This·is·<bolditalic>bold·and·italic</bolditalic>
19 ················ 8. ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> 
20 ················ 9. ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. 
21 ················10. 
22 ················11. ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> 
23 ················12. ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions 
24 ················13. ·will·not·be·added. 
25 ················14. 
26 ················15. ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: 
27 ················16. ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> 
28 ················17. ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> 
29 ················18. 
30 ················19. ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are 
31 ················mapped·to 
32 ················20. ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. 
33 ················21. ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second 
34 ················22. ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. 
35 ················In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The·html·code 
36 ················which·implements·this·rule·is·following·in·lines·2-8.·between·the·[[ref]]def_and 
37 ················/def·tags.·You·don't·have·to·understand·this·html·code,·but·you·should 
38 ················understand·that·this·is·just·pure·html·to·draw·the·fancy·rule.·Every·time·you 
39 ················write·<imghr>·as·in·line·12·htp·will·replace·this·tag·with·the·corresponding 
40 ················html·code.·To·make·metatags·available·to·all·htp·documents·in·your·project, 
41 ················place·them·in·a·common·[[ref]]include_file. 
42 ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing·variant.·For 
43 ················this·purpose·you·should·use·the·[[ref]]blockdef·tag.·When·htp·encounters·a 
44 ················blockdef·tag·it·will·automatically·search·for·the·matching·closing·tag·and·put 
45 ················everything·between·these·tags·in·a·block·macro·named·block.·Here·is·an·example 
46 ················for·this. 
47 ················ 1. ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> 
48 ················ 2. · ·<[[ref]]IF·size> 
49 ················ 3. · · · ·<FONT·SIZE=${size}> 
50 ················ 4. · ·<[[ref]]/IF> 
51 ················ 5. · ·<[[ref]]IMG·SRC=pics/${src}> 
52 ················ 6. · ·<[[ref]]USE·title> 
53 ················ 7. · ·<[[ref]]IF·size> 
54 ················ 8. · · · ·</FONT> 
55 ················ 9. · ·<[[ref]]/IF> 
56 ················10. ·<[[ref]]/DEF> 
57 ················11. 
58 ················12. ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> 
59 ················13. 
60 ················14. ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> 
61 ················15. 
62 ················16. ·This·will·fail: 
63 ················17. ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> 
64 ················18. 
65 ················19. ·Instead,·use·*·like·this: 
66 ················20. ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> 
67 ················21. · ·<[[ref]]IMG·SRC="pics/${src}"·$*> 
68 ················22. ·<[[ref]]/DEF> 
69 ················23. ·  
70 ················24. ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> 
71 ················*****·Using·parameters·*****36 ················*****·Using·parameters·*****
72 ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets·multiple37 ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets
73 ················metatag·parameters·be·named·and·expanded·inside·the·def·or·blockdef·block:38 ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or
74 ················ 1. ·<[[ref]]WHILE·NOT·i="10">39 ················blockdef·block:
 40 ················ 1.<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]>
75 ················ 2. · ·...41 ················ 2.
76 ················ 3. · ·<[[ref]]INC·i> 
77 ················ 4. ·<[[ref]]/WHILE> 
78 ················*****·Saving·blocks·for·later·*****42 ················*****·Saving·blocks·for·later·*****
79 ················When·you·are·using·templates,·the·html·should·only·be·written·by·the·template43 ················When·you·are·using·templates,·the·html·should·only·be·written·by·the
80 ················file.·The·normal·htp·files·should·just·define·macros·that·are·used·later·in·the44 ················template·file.·The·normal·htp·files·should·just·define·macros·that·are
81 ················template.·So·you·may·want·to·write·block·tags·that·just·save·the·block·in·a45 ················used·later·in·the·template.·So·you·may·want·to·write·block·tags·that
82 ················macro·for·later·use.·Although·this·is·possible·with·htp·it·is·quite·tricky,·so46 ················just·save·the·block·in·a·macro·for·later·use.·Although·this·is·possible
83 ················here·we·present·the·way·to·do·this:47 ················with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to·do·this:
84 ················ 1. ·<[[ref]]WHILE·sect-$i>48 ················ 1.<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...]
 49 ················[GLOBAL]>
85 ················ 2. · ·...50 ················ 2.
86 ················ 3. · ·<[[ref]]INC·i> 
87 ················ 4. ·<[[ref]]/WHILE> 
88 ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter·sect-ctr51 ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter
89 ················that·enumerates·the·sections.·It·is·increased·for·every·section·(line·3)·and52 ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every·section
90 ················then·the·block·macro·name·is·build·from·this·counter.·So·the·first·section·is53 ················(line·3)·and·then·the·block·macro·name·is·build·from·this·counter.·So
91 ················stored·in·block·sect-1,·the·second·in·sect-2·and·so·on.·The·[[ref]]global·flag 
92 ················in·line·4·tells·htp·that·these·macros·should·be·defined·globally·for·the 
93 ················remaining·run.·Otherwise·they·would·be·forgotten·at·the·end·of·the·section 
94 ················macro.54 ················the·first·section·is·stored·in·block·sect-1,·the·second·in·sect-2·and·so
 55 ················on.·The·[[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should
 56 ················be·defined·globally·for·the·remaining·run.·Otherwise·they·would·be
 57 ················forgotten·at·the·end·of·the·section·macro.
95 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and·5.58 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and·5.
96 ················Normally·when·you·define·a·block·macro·the·code·between·the·start·and·end·tag·is59 ················Normally·when·you·define·a·block·macro·the·code·between·the·start·and
97 ················literally·copied·into·the·macro·value.·The·expansion·takes·place·when·the·macro60 ················end·tag·is·literally·copied·into·the·macro·value.·The·expansion·takes
98 ················is·used.·In·this·case·that·doesn't·make·sense;·all·macros·sect-1,·sect-2·and·so 
99 ················on·would·just·contain·the·same·value,·namely·<use·block>·and·block·wouldn't·be 
Max diff block lines reached; 1735/14705 bytes (11.80%) of diff not shown.
5.49 KB
./usr/share/doc/htp/opt.html
    
Offset 114, 23 lines modifiedOffset 114, 22 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 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>&gt;</span><br> 
123 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>121 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">IMGXY</span><span·class="ebnf">|</span><span·class="htp-attrib">NOIMGXY</span><s[·...·truncated·by·diffoscope;·len:·24,·SHA:·0fcbb3ccab6e0e284157bbeae8d3c612b5c113dedf1d7dea45386c5b63c80ec0·...·]>&gt;</span><br>
 122 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">QUIET</span><span·class="ebnf">|</span><span·class="htp-attrib">VERBOSE</span><span·class="ebnf">)</span>&gt;</span><br>
 123 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">DEPEND</span><span·class="ebnf">|</span><span·class="htp-attrib">NODEPEND</span><span·class="ebnf">)</span>&gt;</span><br>
 124 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">PRECIOUS</span><span·class="ebnf">|</span><span·class="htp-attrib">NOPRECIOUS</span><span·class="ebnf">)</span>&gt;</span><br>
 125 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">CONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">SEMICONDENSE</span><span·class="ebnf">|</span><span·class="htp-attrib">NOCONDENSE</span><span·class="ebnf">)</span>&gt;</span><br>
 126 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="ebnf">(</span><span·class="htp-value">HTML<span·class="ebnf">|</span>SQUARE<span·class="ebnf">|</span>CURLY<span·class="ebnf">)</span></span>&gt;</span><br>
 127 <span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="ebnf">(</span><span·class="htp-attrib">XML</span><span·class="ebnf">|</span><span·class="htp-attrib">XML</span>=<span·class="htp-value">FALSE<span·class="ebnf">)</span></span>&gt;</span><br>
124 <br>128 <br>
125 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/font&gt;</span><br> 
127 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br> 
128 <br> 
129 &nbsp;·<span·class="htp-tag">&lt;bigfont&gt;</span>Some·large·text<span·class="htp-tag">&lt;/bigfont&gt;</span><br> 
130 </code></p>129 </code></p>
131 <h2>synopsis</h2>130 <h2>synopsis</h2>
132 <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing131 <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing
133 options·inside·the·actual·document·being·processed.··The·options·are132 options·inside·the·actual·document·being·processed.··The·options·are
134 used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not133 used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not
135 preceded·by·a·&lsquo;-&rsquo;·character.134 preceded·by·a·&lsquo;-&rsquo;·character.
136 <P>135 <P>
1.72 KB
html2text {}
    
Offset 1, 25 lines modifiedOffset 1, 25 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]]def·name="bigfont"> 
5  Introduction· · ·<font·size="+4"> 
6  License······ ·<[[ref]]/def> 
7  Tutorial 
8  Usage········ ·<[[ref]]def·name="/bigfont"> 
9  HTP·Tags····· · ·</font> 
10   ··ALTTEXT·· ·<[[ref]]/def>4 Contents·······<[[ref]]OPT·(IMGXY|NOIMGXY)>
 5  Introduction·<[[ref]]OPT·(QUIET|VERBOSE)>
 6  License······<[[ref]]OPT·(DEPEND|NODEPEND)>
 7  Tutorial·····<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)>
 8  Usage········<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)>
 9  HTP·Tags·····<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)>
 10   ··ALTTEXT··<[[ref]]OPT·(XML|XML=FALSE)>
11   ··BLOCK11   ··BLOCK
12   ··BLOCKDEF· ·<bigfont>Some·large·text</bigfont> 
13   ··DEF······*****·synopsis·*****12   ··BLOCKDEF·*****·synopsis·*****
14   ··FILE·····OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the13   ··DEF······OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the
15   ··IF·······actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be14   ··FILE·····actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be
16   ··INC······on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character.15   ··IF·······on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character.
17   ··IMG······Click·here·for·more_information_on_using_customization_options_with_htp.16   ··INC······Click·here·for·more_information_on_using_customization_options_with_htp.
 17   ··IMG
18   ··IMAGEURL18   ··IMAGEURL
19  [>]·OPT19  [>]·OPT
20   ··OUTPUT20   ··OUTPUT
21   ··QUOTE21   ··QUOTE
22   ··SET22   ··SET
23   ··UNDEF23   ··UNDEF
24   ··UNSET24   ··UNSET
Offset 31, 15 lines modifiedOffset 31, 14 lines modified
31  Bugs31  Bugs
  
  
  
  
  
  
  
32  page_source32  page_source
33  htp_project33  htp_project
34  htp_homepage34  htp_homepage
35 hosted·by35 hosted·by
36 Sourceforge36 Sourceforge
37 HTML·coding37 HTML·coding
38 [Powered_by38 [Powered_by
3.66 KB
./usr/share/doc/htp/output.html
    
Offset 114, 18 lines modifiedOffset 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">&lt;<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="ebnf">[</span><span·class="htp-attrib">ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>&gt;</span><br>
121 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<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>·&gt;</span><br> 
123 <br> 
124 ..·><br> 
125 <br>122 <br>
126 </code></p>123 </code></p>
127 <h2>synopsis</h2>124 <h2>synopsis</h2>
128 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary125 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary
129 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the126 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the
130 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>127 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>
131 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you128 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you
2.31 KB
html2text {}
    
Offset 1, 28 lines modifiedOffset 1, 28 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·OUTPUT·******2 ******·htp·on-line·reference·:·OUTPUT·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]>
 5  License
4  Introduction···············<[[ref]]UNDEF·tagname> 
5  License····················<[[ref]]UNDEF·tagname1·tagname2·...·> 
6  Tutorial 
7  Usage······················..·> 
8  HTP·Tags 
9   ··ALTTEXT················*****·synopsis·*****6  Tutorial···················*****·synopsis·*****
10   ··BLOCK··················The·OUTPUT·tag·can·be·used·to·create·auxillary7  Usage······················The·OUTPUT·tag·can·be·used·to·create·auxillary
11   ··BLOCKDEF···············files·besides·the·main·HTML·file.·The·text·between8  HTP·Tags···················files·besides·the·main·HTML·file.·The·text·between
12   ··DEF····················this·tag·and·the·corresponding·</OUTPUT>·tag·is9   ··ALTTEXT················this·tag·and·the·corresponding·</OUTPUT>·tag·is
13   ··FILE···················written·to·output·file.10   ··BLOCK··················written·to·output·file.
14   ··IF·····················Normally·the·outputfile·is·cleared·before·writing11   ··BLOCKDEF···············Normally·the·outputfile·is·cleared·before·writing
15   ··INC····················to·it,·but·you·can·use·the·APPEND·attribute·to12   ··DEF····················to·it,·but·you·can·use·the·APPEND·attribute·to
16   ··IMG····················extend·an·existing·file.·The·text·written·to·the13   ··FILE···················extend·an·existing·file.·The·text·written·to·the
17   ··IMAGEURL···············file·is·normally·not·expanded,·i.e.·all·tags14   ··IF·····················file·is·normally·not·expanded,·i.e.·all·tags
18   ··OPT····················inside·this·block·are·not·executed·but·written15   ··INC····················inside·this·block·are·not·executed·but·written
19  [>]·OUTPUT·················unmodified·to·the·file.·However,·you·can·use·the16   ··IMG····················unmodified·to·the·file.·However,·you·can·use·the
20   ··QUOTE··················EXPAND·attribute·to·override·this·behaviour.17   ··IMAGEURL···············EXPAND·attribute·to·override·this·behaviour.
 18   ··OPT
 19  [>]·OUTPUT
 20   ··QUOTE
21   ··SET21   ··SET
22   ··UNDEF22   ··UNDEF
23   ··UNSET23   ··UNSET
24   ··USE,_$24   ··USE,_$
25   ··WHILE25   ··WHILE
26   ··<!---26   ··<!---
27  History27  History
Offset 31, 17 lines modifiedOffset 31, 14 lines modified
  
  
  
  
  
  
  
  
  
  
  
31  page_source31  page_source
32  htp_project32  htp_project
33  htp_homepage33  htp_homepage
34 hosted·by34 hosted·by
35 Sourceforge35 Sourceforge
36 HTML·coding·[Powered_by36 HTML·coding·[Powered_by
2.58 KB
./usr/share/doc/htp/quote.html
    
Offset 114, 19 lines modifiedOffset 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 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<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>·&gt;</span><br> 
123 <br> 
124 ..·><br> 
125 <br> 
126 </code></p>121 </code></p>
127 <h2>synopsis</h2>122 <h2>synopsis</h2>
128 <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise123 <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise
129 be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a124 be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a
130 surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early125 surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early
131 expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still126 expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still
132 done·inside·a·quote·block.127 done·inside·a·quote·block.
1.55 KB
html2text {}
    
Offset 1, 23 lines modifiedOffset 1, 23 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·QUOTE·******2 ******·htp·on-line·reference·:·QUOTE·******
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······················..·> 
8  HTP·Tags 
9   ··ALTTEXT················*****·synopsis·*****4  Introduction···············*****·synopsis·*****
10   ··BLOCK··················QUOTE·is·used·to·quote·a·macro·that·would5  License····················QUOTE·is·used·to·quote·a·macro·that·would
11   ··BLOCKDEF···············otherwise·be·interpreted·by·HTP.·It·may·be·useful6  Tutorial···················otherwise·be·interpreted·by·HTP.·It·may·be·useful
12   ··DEF····················in·conjunction·with·a·surrounding·EXPANDed·block7  Usage······················in·conjunction·with·a·surrounding·EXPANDed·block
13   ··FILE···················to·prevent·early·expansion·of·some·contained8  HTP·Tags···················to·prevent·early·expansion·of·some·contained
14   ··IF·····················blocks.·Note·that·'$'·evaluation·is·still·done9   ··ALTTEXT················blocks.·Note·that·'$'·evaluation·is·still·done
15   ··INC····················inside·a·quote·block.10   ··BLOCK··················inside·a·quote·block.
 11   ··BLOCKDEF
 12   ··DEF
 13   ··FILE
 14   ··IF
 15   ··INC
16   ··IMG16   ··IMG
17   ··IMAGEURL17   ··IMAGEURL
18   ··OPT18   ··OPT
19   ··OUTPUT19   ··OUTPUT
20  [>]·QUOTE20  [>]·QUOTE
21   ··SET21   ··SET
22   ··UNDEF22   ··UNDEF
Offset 25, 19 lines modifiedOffset 25, 14 lines modified
25   ··USE,_$25   ··USE,_$
26   ··WHILE26   ··WHILE
27   ··<!---27   ··<!---
28  History28  History
29  Wish_list29  Wish_list
30  Bugs30  Bugs
  
  
  
  
  
  
31  page_source31  page_source
32  htp_project32  htp_project
33  htp_homepage33  htp_homepage
34 hosted·by34 hosted·by
35 Sourceforge35 Sourceforge
36 HTML·coding·[Powered_by36 HTML·coding·[Powered_by
37 htp]37 htp]
11.1 KB
./usr/share/doc/htp/set.html
    
Offset 114, 43 lines modifiedOffset 114, 29 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 &nbsp;·<span·class="htp-tag">&lt;<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:·35,·SHA:·c02c60efeede59c75458d33ad4ae848f84ce4a771d38a9fc0c63fe781fd48e8f·...·]"</span>&gt;</span><br>121 <span·class="htp-tag">&lt;<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>&gt;</span><br>
 122 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 123 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>125 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
123 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br> 
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
125 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
127 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
128 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
129 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
130 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>126 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>&gt;</span><br>
 127 <span·class="htp-tag">&lt;<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>&gt;</span><br>
131 <br> 
132 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
133 <br> 
134 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
135 <br> 
136 &nbsp;·This·will·fail:<br> 
137 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
138 <br> 
139 &nbsp;·Instead,·use·*·like·this:<br> 
140 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
141 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
142 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
143 &nbsp;·&nbsp;·<br> 
144 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
145 </code></p>128 </code></p>
146 <h2>synopsis</h2>129 <h2>synopsis</h2>
147 <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded130 <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded
148 anywhere·in·the·HTML·document.··To·create·a·macro:131 anywhere·in·the·HTML·document.··To·create·a·macro:
149 ··<p><code>132 ··<p><code>
 133 <span·class="htp-tag">&lt;<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>&gt;</span><br>
 134 <span·class="htp-tag">&lt;<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>·&gt;</span><br>
 135 <br>
150 </code></p>136 </code></p>
151 <P>137 <P>
152 The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html">138 The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html">
153 USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular139 USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular
154 text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the140 text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the
155 <A·HREF="use.html">'$'</A>·operator.141 <A·HREF="use.html">'$'</A>·operator.
156 <P>142 <P>
4.84 KB
html2text {}
    
Offset 1, 51 lines modifiedOffset 1, 43 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·SET·******2 ******·htp·on-line·reference·:·SET·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]file·include="header.hti">
 5  License···················· ·<[[ref]]set·sect-ctr="1">
 6  Tutorial··················· ·<[[ref]]while·sect-${sect-ctr}>
 7  Usage······················ · ·<[[ref]]use·sect-${sect-ctr}>
 8  HTP·Tags··················· · ·<[[ref]]inc·sect-ctr>
 9   ··ALTTEXT················ ·<[[ref]]/while>
 10   ··BLOCK··················<[[ref]]file·include="footer.hti">
 11   ··BLOCKDEF···············*****·synopsis·*****
 12   ··DEF····················SET·creates·a·macro·definition·that·can·later·be
 13   ··FILE···················expanded·anywhere·in·the·HTML·document.·To·create
 14   ··IF·····················a·macro:
 15   ··INC····················<[[ref]]UNDEF·tagname>
 16   ··IMG····················<[[ref]]UNDEF·tagname1·tagname2·...·>
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   ··IMAGEURL17   ··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····SET·creates·a·macro·definition·that·can·later·be·expanded·anywhere 
30  Bugs·········in·the·HTML·document.·To·create·a·macro: 
31 ···············The·macro·"emailaddr"·can·then·be·expanded·later.·The·USE·tag·is18   ··OPT····················The·macro·"emailaddr"·can·then·be·expanded·later.
32 ···············used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular19   ··OUTPUT·················The·USE·tag·is·used·to·expand·the·macro·outside·a
 20   ··QUOTE··················tag·(i.e.,·into·the·regular·text).·If·the·macro
33 ···············text).·If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use21  [>]·SET····················needs·to·be·expanded·inside·a·markup·tag,·use·the
34 ···············the·'$'·operator.22   ··UNDEF··················'$'·operator.
35 ···············Multiple·macros·can·be·declared·in·a·single·markup·tag,·as·the23   ··UNSET··················Multiple·macros·can·be·declared·in·a·single·markup
36 ···············second·syntax·line·shows.24   ··USE,_$·················tag,·as·the·second·syntax·line·shows.
37 ···············SET·should·only·be·used·for·a·single·line's·worth·of·text.·Multi-25   ··WHILE··················SET·should·only·be·used·for·a·single·line's·worth
38 ···············line·macros·can·be·defined·with·the·BLOCK·tag.·The·BLOCK·tag·is26   ··<!---··················of·text.·Multi-line·macros·can·be·defined·with·the
 27  History····················BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the
39 ···············also·useful·if·the·macro·contains·a·quotation·character·and·you28  Wish_list··················macro·contains·a·quotation·character·and·you·don't
40 ···············don't·want·to·fool·around·with·special·escape·characters.29  Bugs·······················want·to·fool·around·with·special·escape
 30 ·····························characters.
41 ···············Macros·can·be·redefined·by·using·another·SET·command·with·the·same31 ·····························Macros·can·be·redefined·by·using·another·SET
 32 ·····························command·with·the·same·macro·name.·The·prior
42 ···············macro·name.·The·prior·definition·will·be·destroyed,·however.·Also,33 ·····························definition·will·be·destroyed,·however.·Also,·the
43 ···············the·macro·can·be·removed·(destroyed)·with·the·UNSET·tag.34 ·····························macro·can·be·removed·(destroyed)·with·the·UNSET
 35 ·····························tag.
  
  
  
  
  
  
  
Offset 63, 18 lines modifiedOffset 55, 17 lines modified
  
  
63  page_source55  page_source
64  htp_project56  htp_project
65  htp_homepage57  htp_homepage
66 hosted·by58 hosted·by
67 Sourceforge59 Sourceforge
 60 HTML·coding·[Powered_by
68 HTML·coding 
69 [Powered_by 
70 htp]61 htp]
71 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/62 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
72 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.63 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
73 ·····Maintainers:·Jochen_Hoenicke.64 ·····Maintainers:·Jochen_Hoenicke.
74 Copyright·©·1995–96·Jim·Nelson.65 Copyright·©·1995–96·Jim·Nelson.
75 Copyright·©·2001–2014·Jochen_Hoenicke.66 Copyright·©·2001–2014·Jochen_Hoenicke.
76 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according67 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
77 to·terms·described·in·the·License_section.68 according·to·terms·described·in·the·License_section.
78 last·updated·Sat·May·16,·201569 last·updated·Sat·May·16,·2015
790 B
./usr/share/doc/htp/tut/jh.html
    
Offset 16, 10 lines modifiedOffset 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·Sun·Feb·16,·202523 ··last·updated·Mon·Jan·15,·2024
24 ·</body>24 ·</body>
25 </html>25 </html>
393 B
html2text {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 ···············******·Jochen·Hoenicke·******1 ···············******·Jochen·Hoenicke·******
2 Navigation·bar·[Photo]2 Navigation·bar·[Photo]
3 Main···········Room:··Bld.52·00-0203 Main···········Room:··Bld.52·00-020
4 Example········Phone:·+49·761·203-82434 Example········Phone:·+49·761·203-8243
5 ···············Fax:···+49·761·203-82425 ···············Fax:···+49·761·203-8242
6 ===============================================================================6 ===============================================================================
7 Copyright·by·Joe_Doe.7 Copyright·by·Joe_Doe.
8 last·updated·Sun·Feb·16,·20258 last·updated·Mon·Jan·15,·2024
643 B
./usr/share/doc/htp/tut/tut1.html
    
Offset 5, 9 lines modifiedOffset 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·Sun·Feb·16,·202512 last·updated·Mon·Jan·15,·2024
13 </body>13 </body>
303 B
html2text {}
    
Offset 1, 3 lines modifiedOffset 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·Sun·Feb·16,·20253 Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Mon·Jan·15,·2024
686 B
./usr/share/doc/htp/tut/tut2.html
    
Offset 13, 10 lines modifiedOffset 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·Sun·Feb·16,·202520 ··last·updated·Mon·Jan·15,·2024
21 ·</body>21 ·</body>
22 </html>22 </html>
338 B
html2text {}
    
Offset 1, 6 lines modifiedOffset 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 Example3 Example
4 ===============================================================================4 ===============================================================================
5 Copyright·by·Joe_Doe.5 Copyright·by·Joe_Doe.
6 last·updated·Sun·Feb·16,·20256 last·updated·Mon·Jan·15,·2024
684 B
./usr/share/doc/htp/tut/tut3.html
    
Offset 13, 10 lines modifiedOffset 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·Sun·Feb·16,·202520 ··last·updated·Mon·Jan·15,·2024
21 ·</body>21 ·</body>
22 </html>22 </html>
340 B
html2text {}
    
Offset 1, 6 lines modifiedOffset 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 Example3 Example
4 ===============================================================================4 ===============================================================================
5 Copyright·by·Joe_Doe.5 Copyright·by·Joe_Doe.
6 last·updated·Sun·Feb·16,·20256 last·updated·Mon·Jan·15,·2024
7.77 KB
./usr/share/doc/htp/undef.html
    
Offset 114, 38 lines modifiedOffset 114, 19 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 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
123 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br> 
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
125 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 122 ers·...]·[noexpand]><br>
 123 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br>
 124 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br>
127 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
128 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
129 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
130 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
131 <br>125 <br>
132 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
133 <br> 
134 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
135 <br> 
136 &nbsp;·This·will·fail:<br> 
137 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
138 <br> 
139 &nbsp;·Instead,·use·*·like·this:<br> 
140 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
141 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
142 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
143 &nbsp;·&nbsp;·<br> 
144 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
145 </code></p>126 </code></p>
146 <h2>synopsis</h2>127 <h2>synopsis</h2>
147 <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags128 <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags
148 created·by·<A·HREF="def.html">DEF</A>·and·<A129 created·by·<A·HREF="def.html">DEF</A>·and·<A
149 HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF130 HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF
150 command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by131 command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by
151 htp·until·it·is·reassigned.··</P>132 htp·until·it·is·reassigned.··</P>
2.98 KB
html2text {}
    
Offset 1, 71 lines modifiedOffset 1, 52 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·UNDEF·******2 ******·htp·on-line·reference·:·UNDEF·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction··············· · ·<[[ref]]unset·email_addr>
 5  License····················ers·...]·[noexpand]>
 6  Tutorial···················<...·$macroname·...>
 7  Usage······················<...·${macroname}·...>
 8  HTP·Tags
 9   ··ALTTEXT················*****·synopsis·*****
 10   ··BLOCK··················UNDEF·removes·a·metatag·definition.·Metatags
 11   ··BLOCKDEF···············created·by·DEF·and·BLOCKDEF·can·be·removed·with
 12   ··DEF····················the·UNDEF·command.·Once·removed,·the·metatag·will
 13   ··FILE···················no·longer·be·recognized·by·htp·until·it·is
 14   ··IF·····················reassigned.
 15   ··INC····················Multiple·metatags·can·be·removed·by·placing·each
 16   ··IMG····················name·as·an·attribute.
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   ··IMAGEURL17   ··IMAGEURL
19   ··OPT······ ·This·will·fail: 
20   ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title">18   ··OPT
 19   ··OUTPUT
21   ··QUOTE20   ··QUOTE
 21   ··SET
 22  [>]·UNDEF
 23   ··UNSET
 24   ··USE,_$
 25   ··WHILE
 26   ··<!---
 27  History
 28  Wish_list
 29  Bugs
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····UNDEF·removes·a·metatag·definition.·Metatags·created·by·DEF·and 
30  Bugs·········BLOCKDEF·can·be·removed·with·the·UNDEF·command.·Once·removed,·the 
31 ···············metatag·will·no·longer·be·recognized·by·htp·until·it·is 
32 ···············reassigned. 
33 ···············Multiple·metatags·can·be·removed·by·placing·each·name·as·an 
34 ···············attribute. 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
35  page_source30  page_source
36  htp_project31  htp_project
37  htp_homepage32  htp_homepage
38 hosted·by33 hosted·by
39 Sourceforge34 Sourceforge
 35 HTML·coding·[Powered_by
40 HTML·coding 
41 [Powered_by 
42 htp]36 htp]
43 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/37 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
44 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.38 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
45 ·····Maintainers:·Jochen_Hoenicke.39 ·····Maintainers:·Jochen_Hoenicke.
46 Copyright·©·1995–96·Jim·Nelson.40 Copyright·©·1995–96·Jim·Nelson.
47 Copyright·©·2001–2014·Jochen_Hoenicke.41 Copyright·©·2001–2014·Jochen_Hoenicke.
48 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according42 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
49 to·terms·described·in·the·License_section.43 according·to·terms·described·in·the·License_section.
50 last·updated·Sat·May·16,·201544 last·updated·Sat·May·16,·2015
13.2 KB
./usr/share/doc/htp/unset.html
    
Offset 114, 65 lines modifiedOffset 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 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
123 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br> 
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
125 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>121 <span·class="htp-tag">&lt;<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>&gt;</span><br>
 122 <span·class="htp-tag">&lt;<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>·&gt;</span><br>
127 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
128 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
129 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
130 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
131 <br>123 <br>
132 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
133 <br> 
134 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
135 <br> 
136 &nbsp;·This·will·fail:<br> 
137 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
138 <br> 
139 &nbsp;·Instead,·use·*·like·this:<br> 
140 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
141 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
142 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
143 &nbsp;·&nbsp;·<br> 
144 &nbsp;·<span·class="htp-tag">&lt;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>&gt;</span><br> 
145 </code></p>124 </code></p>
146 <h2>synopsis</h2>125 <h2>synopsis</h2>
147 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.126 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.
148 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.127 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.
149 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or128 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or
150 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The129 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The
151 old·macro·definition·will·be·removed·automatically.)130 old·macro·definition·will·be·removed·automatically.)
152 <P>131 <P>
153 For·example:132 For·example:
154 ··<p><code>133 ··<p><code>
 134 <span·class="htp-tag">&lt;<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>&gt;</span><br>
 135 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br>
 136 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br>
 137 <br>
155 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
156 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
157 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
158 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
159 &nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
160 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br> 
161 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br> 
162 ls:·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
163 </code></p>138 </code></p>
164 <P>139 <P>
165 More·than·one·macro·may·be·removed·in·the·same·tag:140 More·than·one·macro·may·be·removed·in·the·same·tag:
166 ··<p><code>141 ··<p><code>
167 <span·class="htp-tag">&lt;a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>&gt;</span>mailto·hyperlink<span·class="htp-tag">&lt;/a&gt;</span><br> 
168 <span·class="htp-tag">&lt;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>&gt;</span>another·hyperlink<span·class="htp-tag">&lt;/a&gt;</span><br>142 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br>
 143 &nbsp;·&nbsp;·...<br>
169 &nbsp;<span·class="htp-tag">&lt;<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>&gt;</span><br>144 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
170 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>&gt;</span><br>145 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br>
171 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
172 </code></p>146 </code></p>
173 <p>147 <p>
174 </td>148 </td>
175 </tr>149 </tr>
176 <tr>150 <tr>
177 <td·width="20%"·bgcolor="white"·valign="bottom">151 <td·width="20%"·bgcolor="white"·valign="bottom">
178 ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%">152 ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%">
4.12 KB
html2text {}
    
Offset 1, 60 lines modifiedOffset 1, 37 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_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]UNDEF·tagname>
 5  License····················<[[ref]]UNDEF·tagname1·tagname2·...·>
 6  Tutorial
 7  Usage······················*****·synopsis·*****
 8  HTP·Tags···················UNSET·removes·(or·deletes)·a·macro·and·it's
 9   ··ALTTEXT················definition.·The·macro·is·subsequently·not
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····UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The·macro 
30  Bugs·········is·subsequently·not·available·for·use·in·the·pre-processed·files.10   ··BLOCK··················available·for·use·in·the·pre-processed·files.
31 ···············(Note·that·simply·redefining·the·macro·with·another·SET·or·BLOCK11   ··BLOCKDEF···············(Note·that·simply·redefining·the·macro·with
32 ···············definition·with·the·same·name·is·acceptable.·The·old·macro12   ··DEF····················another·SET·or·BLOCK·definition·with·the·same·name
 13   ··FILE···················is·acceptable.·The·old·macro·definition·will·be
33 ···············definition·will·be·removed·automatically.)14   ··IF·····················removed·automatically.)
34 ···············For·example:15   ··INC····················For·example:
 16   ··IMG····················<[[ref]]use·macroname·[parameters·...]·[noexpand]>
 17   ··IMAGEURL···············<...·$macroname·...>
 18   ··OPT····················<...·${macroname}·...>
 19   ··OUTPUT
35 ··············· ·<[[ref]]set·sect-ctr="0"> 
36 ··············· ·<[[ref]]blockdef·name="section"> 
37 ··············· · ·<[[ref]]inc·sect-ctr> 
38 ··············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> 
39 ··············· · · ·<[[ref]]use·block·noexpand> 
40 ··············· · ·<[[ref]]/block> 
41 ··············· ·<[[ref]]/blockdef> 
42 ···············ls:·<[[ref]]use·morestuff·email="jnelson@crl.com"> 
43 ···············More·than·one·macro·may·be·removed·in·the·same·tag:20   ··QUOTE··················More·than·one·macro·may·be·removed·in·the·same
44 ···············<a·href="mailto:$email">mailto·hyperlink</a> 
45 ···············<a·href="http://$domain/~${username}/">another·hyperlink</a> 
46 ··············· <[[ref]]inc·sect-ctr> 
47 ··············· ·<[[ref]]/while> 
48 ···············<[[ref]]file·include="footer.hti"> 
  
  
  
 21   ··SET····················tag:
 22   ··UNDEF·················· ·<[[ref]]WHILE·NOT·i="10">
 23  [>]·UNSET·················· · ·...
 24   ··USE,_$················· · ·<[[ref]]INC·i>
 25   ··WHILE·················· ·<[[ref]]/WHILE>
 26   ··<!---
 27  History
 28  Wish_list
 29  Bugs
  
  
  
  
  
  
  
Offset 68, 18 lines modifiedOffset 45, 17 lines modified
  
  
68  page_source45  page_source
69  htp_project46  htp_project
70  htp_homepage47  htp_homepage
71 hosted·by48 hosted·by
72 Sourceforge49 Sourceforge
 50 HTML·coding·[Powered_by
73 HTML·coding 
74 [Powered_by 
75 htp]51 htp]
76 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/52 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
77 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.53 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
78 ·····Maintainers:·Jochen_Hoenicke.54 ·····Maintainers:·Jochen_Hoenicke.
79 Copyright·©·1995–96·Jim·Nelson.55 Copyright·©·1995–96·Jim·Nelson.
80 Copyright·©·2001–2014·Jochen_Hoenicke.56 Copyright·©·2001–2014·Jochen_Hoenicke.
81 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according57 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
82 to·terms·described·in·the·License_section.58 according·to·terms·described·in·the·License_section.
83 last·updated·Sat·May·16,·201559 last·updated·Sat·May·16,·2015
15.7 KB
./usr/share/doc/htp/use.html
    
Offset 114, 18 lines modifiedOffset 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 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
121 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br> 
122 &nbsp;·&nbsp;·...<br> 
123 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
124 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br> 
125 </code></p>122 </code></p>
126 <h2>synopsis</h2>123 <h2>synopsis</h2>
127 <strong>USE</strong>·will·expand·macros·that·have·been·previously124 <strong>USE</strong>·will·expand·macros·that·have·been·previously
128 declared·with·either·<A·HREF="set.html">SET</A>·or·<A125 declared·with·either·<A·HREF="set.html">SET</A>·or·<A
129 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other126 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other
130 markup·tags.127 markup·tags.
131 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will128 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will
Offset 135, 15 lines modifiedOffset 132, 15 lines modified
135 attribute·to·prevent·further·expansion.··</p>132 attribute·to·prevent·further·expansion.··</p>
136 <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros133 <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros
137 for·the·expanded·macro.··This·is·only·valid·for·<A134 for·the·expanded·macro.··This·is·only·valid·for·<A
138 HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A135 HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A
139 HREF="set.html">SET</A>·cannot·have·parameters·passed.··For136 HREF="set.html">SET</A>·cannot·have·parameters·passed.··For
140 example:</p>137 example:</p>
141 ··<p><code>138 ··<p><code>
142 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>139 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br>
143 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br>140 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br>
144 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>141 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
145 <font·size="-2">&nbsp;4.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br>142 <font·size="-2">&nbsp;4.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br>
146 </code></p>143 </code></p>
147 <P>144 <P>
148 (See·below·for·a·description·of·the·'$'·operator.)··The·example·on145 (See·below·for·a·description·of·the·'$'·operator.)··The·example·on
149 line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and146 line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and
Offset 157, 21 lines modifiedOffset 154, 18 lines modified
157 Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or154 Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or
158 any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used.155 any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used.
159 The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or156 The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or
160 may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it157 may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it
161 replaces·the·macro·name·by·the·contents·of·the·macro·without·further158 replaces·the·macro·name·by·the·contents·of·the·macro·without·further
162 processing·the·contents.159 processing·the·contents.
163 ··<p><code>160 ··<p><code>
164 <font·size="-2">&nbsp;1.·</font><span·class="htp-tag">&lt;<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>&gt;</span><br> 
165 <font·size="-2">&nbsp;2.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
166 <font·size="-2">&nbsp;3.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>161 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
167 <font·size="-2">&nbsp;4.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>162 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br>
168 <font·size="-2">&nbsp;5.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>163 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
169 <font·size="-2">&nbsp;6.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>&gt;</span><br>164 <font·size="-2">&nbsp;4.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br>
170 <font·size="-2">&nbsp;7.·</font><span·class="htp-tag">&lt;<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>&gt;</span><br> 
171 </code></p>165 </code></p>
172 <P>166 <P>
173 The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and167 The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and
174 should·never·cause·confusion·with·surrounding·text.··If·no·curly168 should·never·cause·confusion·with·surrounding·text.··If·no·curly
175 braces·are·used·the·macro·name·consists·either·of·a·single·punctuation169 braces·are·used·the·macro·name·consists·either·of·a·single·punctuation
176 character·or·the·maximum·sequence·of·letters,·digits,·&quot;-&quot;170 character·or·the·maximum·sequence·of·letters,·digits,·&quot;-&quot;
177 and·&quot;_&quot;·that·follows·it.171 and·&quot;_&quot;·that·follows·it.
9.71 KB
html2text {}
    
Offset 1, 81 lines modifiedOffset 1, 75 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·USE,·$·******2 ******·htp·on-line·reference·:·USE,·$·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents·······*****·syntax·*****
 4  Introduction·········· · ·<[[ref]]unset·email_addr·home_url·login_name>
4  Introduction··············· ·<[[ref]]WHILE·NOT·i="10"> 
5  License···················· · ·... 
6  Tutorial··················· · ·<[[ref]]INC·i> 
7  Usage······················ ·<[[ref]]/WHILE> 
8  HTP·Tags···················*****·synopsis·*****5  License···············*****·synopsis·*****
9   ··ALTTEXT················USE·will·expand·macros·that·have·been·previously6  Tutorial··············USE·will·expand·macros·that·have·been·previously
10   ··BLOCK··················declared·with·either·SET·or·BLOCK.·USE·can·only·be7  Usage·················declared·with·either·SET·or·BLOCK.·USE·can·only·be
11   ··BLOCKDEF···············used·outside·of·other·markup·tags.8  HTP·Tags··············used·outside·of·other·markup·tags.
12   ··DEF····················If·you·USE·a·block·macro·the·value·of·expanded9   ··ALTTEXT···········If·you·USE·a·block·macro·the·value·of·expanded
13   ··FILE···················block·macros·will·be·further·parsed·by·htp.·This10   ··BLOCK·············block·macros·will·be·further·parsed·by·htp.·This·is
14   ··IF·····················is·maybe·not·what·you·want,·for·example,·if·the11   ··BLOCKDEF··········maybe·not·what·you·want,·for·example,·if·the·use·is
15   ··INC····················use·is·inside·a·block·which·expands·itself.·You12   ··DEF···············inside·a·block·which·expands·itself.·You·can·use
16   ··IMG····················can·use·the·noexpand·attribute·to·prevent·further13   ··FILE··············the·noexpand·attribute·to·prevent·further
17   ··IMAGEURL···············expansion.14   ··IF················expansion.
18   ··OPT····················USE·will·accept·additional·parameters,·which·are15   ··INC···············USE·will·accept·additional·parameters,·which·are
19   ··OUTPUT·················"local"·macros·for·the·expanded·macro.·This·is16   ··IMG···············"local"·macros·for·the·expanded·macro.·This·is·only
20   ··QUOTE··················only·valid·for·BLOCK·macros.·Macros·created·using17   ··IMAGEURL··········valid·for·BLOCK·macros.·Macros·created·using·SET
21   ··SET····················SET·cannot·have·parameters·passed.·For·example:18   ··OPT···············cannot·have·parameters·passed.·For·example:
22   ··UNDEF·················· 1. ·<[[ref]]WHILE·sect-$i>19   ··OUTPUT············ 1. ·<[[ref]]WHILE·NOT·i="10">
23   ··UNSET·················· 2. · ·...20   ··QUOTE············· 2. · ·...
24  [>]·USE,_$················· 3. · ·<[[ref]]INC·i>21   ··SET··············· 3. · ·<[[ref]]INC·i>
25   ··WHILE·················· 4. ·<[[ref]]/WHILE>22   ··UNDEF············· 4. ·<[[ref]]/WHILE>
26   ··<!---··················(See·below·for·a·description·of·the·'$'·operator.)23   ··UNSET·············(See·below·for·a·description·of·the·'$'·operator.)
27  History····················The·example·on·line·7·works·because·"stuff"·has24  [>]·USE,_$············The·example·on·line·7·works·because·"stuff"·has
28  Wish_list··················been·declared·as·a·block·macro,·and·the·tag·is25   ··WHILE·············been·declared·as·a·block·macro,·and·the·tag·is
29  Bugs·······················passing·the·"email"·macro·to·the·"stuff"·macro.26   ··<!---·············passing·the·"email"·macro·to·the·"stuff"·macro.
30 ·····························Line·8·fails·because·the·"email"·macro·is27  History···············Line·8·fails·because·the·"email"·macro·is
31 ·····························unavailable·once·the·block·macro·is·completely28  Wish_list·············unavailable·once·the·block·macro·is·completely
32 ·····························expanded,·and·cannot·be·passed·to·a·SET·macro.29  Bugs··················expanded,·and·cannot·be·passed·to·a·SET·macro.
33 ·····························Note·that·the·"email"·macro·is·available·to·other30 ························Note·that·the·"email"·macro·is·available·to·other
34 ·····························macros·or·included·files·called·within·the·"stuff"31 ························macros·or·included·files·called·within·the·"stuff"
35 ·····························block.32 ························block.
36 ·····························Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any33 ························Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any
37 ·····························other·standard·HTML·or·htp·tag,·the·'$'·operator34 ························other·standard·HTML·or·htp·tag,·the·'$'·operator
38 ·····························must·be·used.·The·'$'·should·be·immediately35 ························must·be·used.·The·'$'·should·be·immediately
39 ·····························followed·by·the·macro·name,·which·may·or·may·not36 ························followed·by·the·macro·name,·which·may·or·may·not·be
40 ·····························be·surrounded·by·curly·braces.·When·htp·encounters37 ························surrounded·by·curly·braces.·When·htp·encounters
41 ·····························this·it·replaces·the·macro·name·by·the·contents·of38 ························this·it·replaces·the·macro·name·by·the·contents·of
42 ·····························the·macro·without·further·processing·the·contents.39 ························the·macro·without·further·processing·the·contents.
43 ····························· 1.<[[ref]]file·include="header.hti"> 
44 ····························· 2. ·<[[ref]]set·sect-ctr="1"> 
45 ····························· 3. ·<[[ref]]while·sect-${sect-ctr}> 
46 ····························· 4. · ·<[[ref]]use·sect-${sect-ctr}> 
47 ····························· 5. · ·<[[ref]]inc·sect-ctr>40 ························ 1·<[[ref]]WHILE·sect-$i>
 41 ························ 2. · ·...
 42 ························ 3. · ·<[[ref]]INC·i>
48 ····························· 6·<[[ref]]/while>43 ························ 4·<[[ref]]/WHILE>
49 ····························· 7.<[[ref]]file·include="footer.hti"> 
50 ·····························The·use·of·curly·braces·is·encouraged,·since·it·is44 ························The·use·of·curly·braces·is·encouraged,·since·it·is
51 ·····························more·robust·and·should·never·cause·confusion·with45 ························more·robust·and·should·never·cause·confusion·with
52 ·····························surrounding·text.·If·no·curly·braces·are·used·the46 ························surrounding·text.·If·no·curly·braces·are·used·the
53 ·····························macro·name·consists·either·of·a·single·punctuation47 ························macro·name·consists·either·of·a·single·punctuation
54 ·····························character·or·the·maximum·sequence·of·letters,48 ························character·or·the·maximum·sequence·of·letters,
55 ·····························digits,·"-"·and·"_"·that·follows·it.49 ························digits,·"-"·and·"_"·that·follows·it.
56 ·····························If·a·'$'·character·needs·to·be·kept·in·the·final50 ························If·a·'$'·character·needs·to·be·kept·in·the·final
57 ·····························output,·and·not·interpreted·as·a·macro·name,·it51 ························output,·and·not·interpreted·as·a·macro·name,·it
58 ·····························must·be·escaped·by·another·'$'·character.·This·is52 ························must·be·escaped·by·another·'$'·character.·This·is
59 ·····························especially·true·for·PHP·code.53 ························especially·true·for·PHP·code.
60 ·····························If·the·'$'·macro·is·the·only·text·in·the54 ························If·the·'$'·macro·is·the·only·text·in·the
61 ·····························attribute's·value,·htp·will·automatically·surround55 ························attribute's·value,·htp·will·automatically·surround
62 ·····························it·with·quotation·marks·to·prevent·spaces·from56 ························it·with·quotation·marks·to·prevent·spaces·from
63 ·····························delimiting·the·text·as·if·it·were·additional57 ························delimiting·the·text·as·if·it·were·additional·markup
64 ·····························markup·attributes.·If·the·'$'·macro·is·surrounded58 ························attributes.·If·the·'$'·macro·is·surrounded·by·other
65 ·····························by·other·text·(as·in·the·two·examples·above),59 ························text·(as·in·the·two·examples·above),·quotation
66 ·····························quotation·marks·are·not·automatically·supplied.60 ························marks·are·not·automatically·supplied.
67 ·····························Note·that·a·'$'·macro·can·be·placed·anywhere·in·a61 ························Note·that·a·'$'·macro·can·be·placed·anywhere·in·a
68 ·····························markup·tag·and·can·be·nested.·This·is·valid:62 ························markup·tag·and·can·be·nested.·This·is·valid:
69 ····························· · ·<${tagName}·${attrName}=${value$ctr}>63 ························ · ·<${tagName}·${attrName}=${value$ctr}>
70 ·····························The·tagName·macro·can·contain·any·tag·name,·even·a64 ························The·tagName·macro·can·contain·any·tag·name,·even·a
71 ·····························self-defined·metatag.·Note·that·$ctr·is·expanded65 ························self-defined·metatag.·Note·that·$ctr·is·expanded
72 ·····························before·the·valueX·macro·is·expanded,·so·assuming66 ························before·the·valueX·macro·is·expanded,·so·assuming
73 ·····························that·ctr·was·set·to·1·it·will·expand·value1.67 ························that·ctr·was·set·to·1·it·will·expand·value1.
  
  
  
  
  
  
  
Offset 93, 16 lines modifiedOffset 87, 16 lines modified
  
  
93  page_source87  page_source
94  htp_project88  htp_project
95  htp_homepage89  htp_homepage
96 hosted·by90 hosted·by
97 Sourceforge91 Sourceforge
98 HTML·coding·[Powered_by92 HTML·coding·[Powered
99 htp]93 by_htp]
100 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/94 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
101 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.95 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
102 ·····Maintainers:·Jochen_Hoenicke.96 ·····Maintainers:·Jochen_Hoenicke.
103 Copyright·©·1995–96·Jim·Nelson.97 Copyright·©·1995–96·Jim·Nelson.
104 Copyright·©·2001–2014·Jochen_Hoenicke.98 Copyright·©·2001–2014·Jochen_Hoenicke.
105 Permission·to·reproduce·and·distribute·this·hypertext·document·granted99 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
106 according·to·terms·described·in·the·License_section.100 according·to·terms·described·in·the·License_section.
9.45 KB
./usr/share/doc/htp/while.html
    
Offset 114, 38 lines modifiedOffset 114, 46 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">&lt;<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>&gt;</span><br>
 122 &nbsp;·<span·class="htp-tag">&lt;a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>&gt;</span>send·email<span·class="htp-tag">&lt;/a&gt;</span><br>
 123 <span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
 124 <br>
 125 <span·class="htp-tag">&lt;<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>&gt;</span><br>
 126 <br>
 127 This·works:·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>128 But·this·fails:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 129 And·this·fails:·<span·class="htp-tag">&lt;<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>&gt;</span><br>
122 </code></p>130 </code></p>
123 <h2>synopsis</h2>131 <h2>synopsis</h2>
124 <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing.132 <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing.
125 The·basic·form·is·shown·above.133 The·basic·form·is·shown·above.
126 <P>134 <P>
127 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.135 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.
128 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.136 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.
129 If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the137 If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the
130 conditional·is·reversed:138 conditional·is·reversed:
131 ··<p><code>139 ··<p><code>
 140 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br>
 141 &nbsp;·&nbsp;·...<br>
132 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>142 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
 143 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br>
133 </code></p>144 </code></p>
134 <P>145 <P>
135 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·a146 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
136 macro's·existance:147 macro's·existance:
137 ··<p><code>148 ··<p><code>
138 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
139 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br> 
140 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>149 &nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
141 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>150 &nbsp;·&nbsp;·...<br>
142 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>151 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<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>&gt;</span><br>
143 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/while</a>&gt;</span><br>152 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br>
144 <span·class="htp-tag">&lt;<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>&gt;</span><br> 
145 </code></p>153 </code></p>
146 <P>154 <P>
147 If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the155 If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the
148 WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the156 WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the
149 WHILE·tag·it·is·also·reevaluated·on·each·iteration.157 WHILE·tag·it·is·also·reevaluated·on·each·iteration.
150 <P>158 <P>
151 A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag.159 A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag.
3.74 KB
html2text {}
    
Offset 1, 37 lines modifiedOffset 1, 47 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·WHILE·******2 ******·htp·on-line·reference·:·WHILE·******
3 Table_of_Contents·······*****·syntax·*****3 Table_of··········*****·syntax·*****
4  Introduction·········· · ·<[[ref]]unset·email_addr>4 Contents··········<[[ref]]block·stuff>
 5  Introduction···· ·<a·href=$email>send·email</a>
 6  License·········<[[ref]]/block>
 7  Tutorial
 8  Usage···········<[[ref]]set·morestuff=$email>
 9  HTP·Tags
 10   ··ALTTEXT·····This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">
 11   ··BLOCK·······But·this·fails:·<[[ref]]use·email>
 12   ··BLOCKDEF····And·this·fails:·<[[ref]]use·morestuff
 13   ··DEF·········email="jnelson@crl.com">
5  License···············*****·synopsis·*****14   ··FILE········*****·synopsis·*****
6  Tutorial··············WHILE·is·the·building·block·for·repeated15   ··IF··········WHILE·is·the·building·block·for·repeated·processing.·The
7  Usage·················processing.·The·basic·form·is·shown·above.16   ··INC·········basic·form·is·shown·above.
8  HTP·Tags··············"Conditional"·is·either·a·"compare"·or·"is·defined"17   ··IMG·········"Conditional"·is·either·a·"compare"·or·"is·defined"
9   ··ALTTEXT···········operation.·A·compare·operator·is·a·test·of·the18   ··IMAGEURL····operation.·A·compare·operator·is·a·test·of·the·value·of·a
10   ··BLOCK·············value·of·a·macro·against·a·literal·string.·If·the 
11   ··BLOCKDEF··········NOT·tag·is·present·in·the·WHILE·markup,·the 
12   ··DEF···············evaluation·of·the·conditional·is·reversed: 
13   ··FILE·············· · ·<[[ref]]unset·email_addr·home_url·login_name>19   ··OPT·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in
 20   ··OUTPUT······the·WHILE·markup,·the·evaluation·of·the·conditional·is
 21   ··QUOTE·······reversed:
 22   ··SET········· ·<[[ref]]WHILE·NOT·i="10">
 23   ··UNDEF······· · ·...
 24   ··UNSET······· · ·<[[ref]]INC·i>
 25   ··USE,_$······ ·<[[ref]]/WHILE>
14   ··IF················Just·as·with·[[ref]]IF·you·can·also·check·for·a26  [>]·WHILE·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's
 27   ··<!---·······existance:
 28  History········· ·<[[ref]]WHILE·sect-$i>
 29  Wish_list······· · ·...
 30  Bugs············ · ·<[[ref]]INC·i>
15   ··INC···············macro's·existance: 
16   ··IMG···············<[[ref]]file·include="header.hti"> 
17   ··IMAGEURL·········· ·<[[ref]]set·sect-ctr="1"> 
18   ··OPT··············· ·<[[ref]]while·sect-${sect-ctr}> 
19   ··OUTPUT············ · ·<[[ref]]use·sect-${sect-ctr}> 
20   ··QUOTE············· · ·<[[ref]]inc·sect-ctr> 
21   ··SET··············· ·<[[ref]]/while>31 ·················· ·<[[ref]]/WHILE>
22   ··UNDEF·············<[[ref]]file·include="footer.hti"> 
23   ··UNSET·············If·the·condition·is·true,·the·block·is·evaluated32 ··················If·the·condition·is·true,·the·block·is·evaluated·and
24   ··USE,_$············and·afterwards·the·WHILE·tag·is·evaluated·again.·If33 ··················afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'-
25  [>]·WHILE·············the·'$'-operator·is·used·in·the·WHILE·tag·it·is 
26   ··<!---·············also·reevaluated·on·each·iteration.34 ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on
 35 ··················each·iteration.
27  History···············A·loop·block·must·be·closed·with·the·/WHILE·tag.36 ··················A·loop·block·must·be·closed·with·the·/WHILE·tag.
28  Wish_list 
29  Bugs 
  
  
  
  
  
  
  
  
  
Offset 47, 16 lines modifiedOffset 57, 16 lines modified
  
  
47  page_source57  page_source
48  htp_project58  htp_project
49  htp_homepage59  htp_homepage
50 hosted·by60 hosted·by
51 Sourceforge61 Sourceforge
52 HTML·coding·[Powered 
53 by_htp]62 HTML·coding
 63 [Powered_by_htp]
54 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/64 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
55 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.65 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
56 ·····Maintainers:·Jochen_Hoenicke.66 ·····Maintainers:·Jochen_Hoenicke.
57 Copyright·©·1995–96·Jim·Nelson.67 Copyright·©·1995–96·Jim·Nelson.
58 Copyright·©·2001–2014·Jochen_Hoenicke.68 Copyright·©·2001–2014·Jochen_Hoenicke.
59 Permission·to·reproduce·and·distribute·this·hypertext·document·granted69 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
60 according·to·terms·described·in·the·License_section.70 according·to·terms·described·in·the·License_section.