home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 October / macformat-005.iso / Shareware City / Applications / HTML.edit 1.1.1 distribution / HTML.edit v1.1.1 < prev    next >
MacOS Executable  |  1994-06-30  |  999.0 KB  |  [APPL/HTMe]

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: MacOS Executable (executable/macOSExecutable).

You can browse this item here: HTML.edit v1.1.1

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Executable (executable/macOSExecutable) magic Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert PageFocus Data (other/pageFocusData) ext Unsupported
1% dexvert Banyans VINES patch data (other/banyansVINESPatchData) ext Unsupported
100% file MacBinary II, inited, bundle, Thu Jun 30 11:49:08 1994, modified Thu Jun 30 12:37:56 1994, creator 'HTMe', type application, 144096 bytes "HTML.edit v1.1.1" , at 0x23360 878714 bytes resource default (weak)
99% file data default
74% TrID Macintosh Application (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[APPL]
macFileCreator[HTMe]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 48 54 4d 4c 2e 65 | 64 69 74 20 76 31 2e 31 |..HTML.e|dit v1.1|
|00000010| 2e 31 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.1......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 41 50 50 4c 48 54 4d | 65 21 00 00 00 00 00 00 |.APPLHTM|e!......|
|00000050| 00 00 00 00 02 32 e0 00 | 0d 68 7a aa 38 99 f4 aa |.....2..|.hz.8...|
|00000060| 38 a5 64 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |8.d.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 de 43 00 00 |........|.....C..|
|00000080| 00 00 70 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..p.STAK|........|
|00000090| 00 00 00 0a 00 02 32 e0 | 00 00 70 00 00 00 00 00 |......2.|..p.....|
|000000a0| 00 00 00 00 00 00 00 02 | 00 00 15 a3 00 00 00 05 |........|........|
|000000b0| 00 00 08 f4 00 00 0b d9 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 16 78 00 00 00 00 | 00 05 00 00 10 00 00 00 |...x....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 20 80 00 01 11 80 12 | 01 11 80 12 01 11 80 12 |. ......|........|
|000000f0| de 50 e7 9f 00 00 00 00 | 00 33 00 10 01 89 02 10 |.P......|.3......|
|00000100| 00 00 00 00 03 66 04 80 | 00 00 00 00 00 00 00 00 |.....f..|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 12 00 00 0c 10 | 02 80 02 80 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 2d 2d 20 48 54 4d 4c 2e | 65 64 69 74 20 76 31 2e |-- HTML.|edit v1.|
|00000690| 31 2e 31 20 a9 31 39 39 | 34 20 62 79 20 4d 75 72 |1.1 .199|4 by Mur|
|000006a0| 72 61 79 20 4d 2e 20 41 | 6c 74 68 65 69 6d 0d 0d |ray M. A|ltheim..|
|000006b0| 6f 6e 20 61 70 70 6c 65 | 45 76 65 6e 74 20 74 68 |on apple|Event th|
|000006c0| 65 43 6c 61 73 73 2c 74 | 68 65 49 44 2c 74 68 65 |eClass,t|heID,the|
|000006d0| 53 65 6e 64 65 72 0d 67 | 6c 6f 62 61 6c 20 65 72 |Sender.g|lobal er|
|000006e0| 72 47 6c 6f 62 61 6c 0d | 62 69 6e 6b 20 66 34 73 |rGlobal.|bink f4s|
|000006f0| 0d 62 69 6e 6b 20 61 0d | 73 65 74 20 6c 6f 63 6b |.bink a.|set lock|
|00000700| 45 72 72 6f 72 44 69 61 | 6c 6f 67 73 20 74 6f 20 |ErrorDia|logs to |
|00000710| 54 52 55 45 0d 67 65 74 | 20 74 68 65 20 69 74 65 |TRUE.get| the ite|
|00000720| 6d 44 65 6c 69 6d 69 74 | 65 72 0d 73 65 74 20 74 |mDelimit|er.set t|
|00000730| 68 65 20 69 74 65 6d 44 | 65 6c 69 6d 69 74 65 72 |he itemD|elimiter|
|00000740| 20 74 6f 20 63 6f 6c 6f | 6e 0d 70 75 74 20 6c 61 | to colo|n.put la|
|00000750| 73 74 20 69 74 65 6d 20 | 6f 66 20 74 68 65 53 65 |st item |of theSe|
|00000760| 6e 64 65 72 20 69 6e 74 | 6f 20 73 65 6e 64 69 6e |nder int|o sendin|
|00000770| 67 50 72 6f 67 72 61 6d | 0d 73 65 74 20 74 68 65 |gProgram|.set the|
|00000780| 20 69 74 65 6d 44 65 6c | 69 6d 69 74 65 72 20 74 | itemDel|imiter t|
|00000790| 6f 20 69 74 0d 69 66 20 | 74 68 65 43 6c 61 73 73 |o it.if |theClass|
|000007a0| 20 69 73 20 22 61 65 76 | 74 22 20 61 6e 64 20 74 | is "aev|t" and t|
|000007b0| 68 65 49 44 20 69 73 20 | 22 6f 64 6f 63 22 20 61 |heID is |"odoc" a|
|000007c0| 6e 64 20 73 65 6e 64 69 | 6e 67 50 72 6f 67 72 61 |nd sendi|ngProgra|
|000007d0| 6d 20 69 73 20 22 46 69 | 6e 64 65 72 22 20 74 68 |m is "Fi|nder" th|
|000007e0| 65 6e 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f |en.set c|ursor to|
|000007f0| 20 77 61 74 63 68 0d 72 | 65 71 75 65 73 74 20 61 | watch.r|equest a|
|00000800| 70 70 6c 65 45 76 65 6e | 74 20 64 61 74 61 0d 69 |ppleEven|t data.i|
|00000810| 66 20 69 74 20 3d 20 22 | 22 20 74 68 65 6e 20 65 |f it = "|" then e|
|00000820| 78 69 74 20 61 70 70 6c | 65 45 76 65 6e 74 0d 70 |xit appl|eEvent.p|
|00000830| 75 74 20 69 74 20 69 6e | 74 6f 20 66 4e 61 6d 65 |ut it in|to fName|
|00000840| 4c 69 73 74 0d 67 6f 20 | 6c 61 73 74 20 63 64 20 |List.go |last cd |
|00000850| 6f 66 20 62 67 20 22 45 | 64 69 74 6f 72 22 0d 72 |of bg "E|ditor".r|
|00000860| 65 70 65 61 74 20 77 69 | 74 68 20 69 20 3d 20 31 |epeat wi|th i = 1|
|00000870| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|00000880| 66 20 6c 69 6e 65 73 20 | 6f 66 20 66 4e 61 6d 65 |f lines |of fName|
|00000890| 4c 69 73 74 0d 70 75 74 | 20 46 69 6c 65 54 79 70 |List.put| FileTyp|
|000008a0| 65 28 6c 69 6e 65 20 69 | 20 6f 66 20 66 4e 61 6d |e(line i| of fNam|
|000008b0| 65 4c 69 73 74 2c 20 22 | 6e 6f 64 69 61 6c 6f 67 |eList, "|nodialog|
|000008c0| 3a 65 72 72 47 6c 6f 62 | 61 6c 22 29 20 69 6e 74 |:errGlob|al") int|
|000008d0| 6f 20 66 54 79 70 65 0d | 69 66 20 65 72 72 47 6c |o fType.|if errGl|
|000008e0| 6f 62 61 6c 20 ad 20 22 | 22 20 74 68 65 6e 0d 61 |obal . "|" then.a|
|000008f0| 6e 73 77 65 72 20 22 41 | 70 70 6c 65 45 76 65 6e |nswer "A|ppleEven|
|00000900| 74 20 45 72 72 6f 72 3a | 20 d2 22 20 26 20 65 72 |t Error:| ." & er|
|00000910| 72 47 6c 6f 62 61 6c 20 | 26 20 22 d3 22 0d 70 75 |rGlobal |& ".".pu|
|00000920| 74 20 22 22 20 69 6e 74 | 6f 20 65 72 72 47 6c 6f |t "" int|o errGlo|
|00000930| 62 61 6c 0d 65 78 69 74 | 20 61 70 70 6c 65 45 76 |bal.exit| appleEv|
|00000940| 65 6e 74 0d 65 6c 73 65 | 20 69 66 20 66 54 79 70 |ent.else| if fTyp|
|00000950| 65 20 3d 20 22 54 45 58 | 54 22 20 74 68 65 6e 0d |e = "TEX|T" then.|
|00000960| 73 65 6e 64 20 22 69 6d | 70 6f 72 74 48 54 4d 4c |send "im|portHTML|
|00000970| 22 26 26 71 75 6f 74 65 | 26 28 6c 69 6e 65 20 69 |"&&quote|&(line i|
|00000980| 20 6f 66 20 66 4e 61 6d | 65 4c 69 73 74 29 26 71 | of fNam|eList)&q|
|00000990| 75 6f 74 65 20 74 6f 20 | 74 68 69 73 20 63 64 0d |uote to |this cd.|
|000009a0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 72 65 70 65 61 |end if.e|nd repea|
|000009b0| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 61 70 70 |t.end if|.end app|
|000009c0| 6c 65 45 76 65 6e 74 0d | 0d 6f 6e 20 73 74 61 72 |leEvent.|.on star|
|000009d0| 74 75 70 0d 68 69 64 65 | 20 73 63 72 6f 6c 6c 20 |tup.hide| scroll |
|000009e0| 77 69 6e 64 6f 77 0d 73 | 68 6f 77 41 62 6f 75 74 |window.s|howAbout|
|000009f0| 20 33 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f | 3.set c|ursor to|
|00000a00| 20 66 69 6e 67 65 72 73 | 30 0d 70 61 73 73 20 73 | fingers|0.pass s|
|00000a10| 74 61 72 74 75 70 0d 65 | 6e 64 20 73 74 61 72 74 |tartup.e|nd start|
|00000a20| 75 70 0d 0d 6f 6e 20 6f | 70 65 6e 53 74 61 63 6b |up..on o|penStack|
|00000a30| 0d 68 69 64 65 20 73 63 | 72 6f 6c 6c 20 77 69 6e |.hide sc|roll win|
|00000a40| 64 6f 77 0d 73 65 6e 64 | 20 69 6e 69 74 69 61 6c |dow.send| initial|
|00000a50| 69 7a 65 20 74 6f 20 63 | 64 20 69 64 20 32 32 39 |ize to c|d id 229|
|00000a60| 32 0d 73 65 6e 64 20 73 | 65 74 4d 65 6e 75 73 20 |2.send s|etMenus |
|00000a70| 74 6f 20 63 64 20 69 64 | 20 32 32 39 32 0d 73 65 |to cd id| 2292.se|
|00000a80| 74 20 63 75 72 73 6f 72 | 20 74 6f 20 66 69 6e 67 |t cursor| to fing|
|00000a90| 65 72 73 33 0d 70 61 73 | 73 20 6f 70 65 6e 53 74 |ers3.pas|s openSt|
|00000aa0| 61 63 6b 0d 65 6e 64 20 | 6f 70 65 6e 53 74 61 63 |ack.end |openStac|
|00000ab0| 6b 0d 0d 6f 6e 20 63 6c | 6f 73 65 53 74 61 63 6b |k..on cl|oseStack|
|00000ac0| 0d 69 66 20 74 68 65 20 | 68 69 6c 69 74 65 20 6f |.if the |hilite o|
|00000ad0| 66 20 63 64 20 62 74 6e | 20 69 64 20 39 20 6f 66 |f cd btn| id 9 of|
|00000ae0| 20 63 64 20 22 70 72 65 | 66 73 22 20 74 68 65 6e | cd "pre|fs" then|
|00000af0| 20 63 6f 6d 70 61 63 74 | 53 74 61 63 6b 0d 69 66 | compact|Stack.if|
|00000b00| 20 74 68 65 72 65 20 69 | 73 20 61 20 77 69 6e 64 | there i|s a wind|
|00000b10| 6f 77 20 22 48 54 4d 4c | 2e 65 64 69 74 20 48 65 |ow "HTML|.edit He|
|00000b20| 6c 70 22 20 74 68 65 6e | 20 63 6c 6f 73 65 20 77 |lp" then| close w|
|00000b30| 69 6e 64 6f 77 20 22 48 | 54 4d 4c 2e 65 64 69 74 |indow "H|TML.edit|
|00000b40| 20 48 65 6c 70 22 0d 69 | 66 20 74 68 65 72 65 20 | Help".i|f there |
|00000b50| 69 73 20 61 20 77 69 6e | 64 6f 77 20 22 48 54 4d |is a win|dow "HTM|
|00000b60| 4c 54 6f 6f 6c 73 22 20 | 74 68 65 6e 20 63 6c 6f |LTools" |then clo|
|00000b70| 73 65 20 77 69 6e 64 6f | 77 20 22 48 54 4d 4c 54 |se windo|w "HTMLT|
|00000b80| 6f 6f 6c 73 22 0d 69 66 | 20 74 68 65 72 65 20 69 |ools".if| there i|
|00000b90| 73 20 61 20 77 69 6e 64 | 6f 77 20 22 48 54 4d 4c |s a wind|ow "HTML|
|00000ba0| 54 6f 6f 6c 73 43 6f 6c | 6f 72 22 20 74 68 65 6e |ToolsCol|or" then|
|00000bb0| 20 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 22 48 | close w|indow "H|
|00000bc0| 54 4d 4c 54 6f 6f 6c 73 | 43 6f 6c 6f 72 22 0d 69 |TMLTools|Color".i|
|00000bd0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00000be0| 64 6f 77 20 22 45 6e 74 | 69 74 69 65 73 22 20 74 |dow "Ent|ities" t|
|00000bf0| 68 65 6e 20 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |hen clos|e window|
|00000c00| 20 22 45 6e 74 69 74 69 | 65 73 22 0d 72 65 73 65 | "Entiti|es".rese|
|00000c10| 74 20 6d 65 6e 75 62 61 | 72 0d 70 61 73 73 20 63 |t menuba|r.pass c|
|00000c20| 6c 6f 73 65 53 74 61 63 | 6b 0d 65 6e 64 20 63 6c |loseStac|k.end cl|
|00000c30| 6f 73 65 53 74 61 63 6b | 0d 0d 2d 2d 20 a5 20 68 |oseStack|..-- . h|
|00000c40| 61 6e 64 6c 65 20 70 61 | 6c 65 74 74 65 73 0d 0d |andle pa|lettes..|
|00000c50| 6f 6e 20 73 75 73 70 65 | 6e 64 53 74 61 63 6b 0d |on suspe|ndStack.|
|00000c60| 68 69 64 65 50 61 6c 65 | 74 74 65 73 0d 72 65 73 |hidePale|ttes.res|
|00000c70| 65 74 20 6d 65 6e 75 62 | 61 72 0d 70 61 73 73 20 |et menub|ar.pass |
|00000c80| 73 75 73 70 65 6e 64 53 | 74 61 63 6b 0d 65 6e 64 |suspendS|tack.end|
|00000c90| 20 73 75 73 70 65 6e 64 | 53 74 61 63 6b 0d 0d 6f | suspend|Stack..o|
|00000ca0| 6e 20 72 65 73 75 6d 65 | 53 74 61 63 6b 0d 73 65 |n resume|Stack.se|
|00000cb0| 65 6b 50 61 6c 65 74 74 | 65 73 0d 73 65 6e 64 20 |ekPalett|es.send |
|00000cc0| 73 65 74 4d 65 6e 75 73 | 20 74 6f 20 63 64 20 69 |setMenus| to cd i|
|00000cd0| 64 20 32 32 39 32 0d 70 | 61 73 73 20 72 65 73 75 |d 2292.p|ass resu|
|00000ce0| 6d 65 53 74 61 63 6b 0d | 65 6e 64 20 72 65 73 75 |meStack.|end resu|
|00000cf0| 6d 65 53 74 61 63 6b 0d | 0d 6f 6e 20 63 6c 6f 73 |meStack.|.on clos|
|00000d00| 65 50 61 6c 65 74 74 65 | 0d 69 66 20 74 68 65 72 |ePalette|.if ther|
|00000d10| 65 20 69 73 20 61 20 77 | 69 6e 64 6f 77 20 22 48 |e is a w|indow "H|
|00000d20| 54 4d 4c 54 6f 6f 6c 73 | 43 6f 6c 6f 72 22 0d 74 |TMLTools|Color".t|
|00000d30| 68 65 6e 20 70 75 74 20 | 74 68 65 20 6c 6f 63 20 |hen put |the loc |
|00000d40| 6f 66 20 77 69 6e 64 6f | 77 20 22 48 54 4d 4c 54 |of windo|w "HTMLT|
|00000d50| 6f 6f 6c 73 43 6f 6c 6f | 72 22 20 69 6e 74 6f 20 |oolsColo|r" into |
|00000d60| 63 64 20 66 6c 64 20 22 | 74 6f 6f 6c 73 4c 6f 63 |cd fld "|toolsLoc|
|00000d70| 22 20 6f 66 20 63 64 20 | 22 70 72 65 66 73 22 0d |" of cd |"prefs".|
|00000d80| 65 6c 73 65 20 69 66 20 | 74 68 65 72 65 20 69 73 |else if |there is|
|00000d90| 20 61 20 77 69 6e 64 6f | 77 20 22 48 54 4d 4c 54 | a windo|w "HTMLT|
|00000da0| 6f 6f 6c 73 22 0d 74 68 | 65 6e 20 70 75 74 20 74 |ools".th|en put t|
|00000db0| 68 65 20 6c 6f 63 20 6f | 66 20 77 69 6e 64 6f 77 |he loc o|f window|
|00000dc0| 20 22 48 54 4d 4c 54 6f | 6f 6c 73 22 20 69 6e 74 | "HTMLTo|ols" int|
|00000dd0| 6f 20 63 64 20 66 6c 64 | 20 22 74 6f 6f 6c 73 4c |o cd fld| "toolsL|
|00000de0| 6f 63 22 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 |oc" of c|d "prefs|
|00000df0| 22 0d 65 6e 64 20 63 6c | 6f 73 65 50 61 6c 65 74 |".end cl|osePalet|
|00000e00| 74 65 0d 0d 6f 6e 20 73 | 68 6f 77 54 6f 6f 6c 73 |te..on s|howTools|
|00000e10| 0d 69 66 20 74 68 65 20 | 73 68 6f 72 74 20 6e 61 |.if the |short na|
|00000e20| 6d 65 20 6f 66 20 74 68 | 69 73 20 62 67 20 ad 20 |me of th|is bg . |
|00000e30| 22 45 64 69 74 6f 72 22 | 20 74 68 65 6e 20 65 78 |"Editor"| then ex|
|00000e40| 69 74 20 73 68 6f 77 54 | 6f 6f 6c 73 0d 67 65 74 |it showT|ools.get|
|00000e50| 20 63 64 20 66 6c 64 20 | 22 74 6f 6f 6c 73 4c 6f | cd fld |"toolsLo|
|00000e60| 63 22 20 6f 66 20 63 64 | 20 22 70 72 65 66 73 22 |c" of cd| "prefs"|
|00000e70| 0d 69 66 20 69 74 20 ad | 20 22 22 20 74 68 65 6e |.if it .| "" then|
|00000e80| 20 67 65 74 20 69 74 0d | 65 6c 73 65 20 67 65 74 | get it.|else get|
|00000e90| 20 69 74 65 6d 20 31 20 | 6f 66 20 74 68 65 20 6c | item 1 |of the l|
|00000ea0| 6f 63 20 6f 66 20 62 67 | 20 62 74 6e 20 22 5a 6f |oc of bg| btn "Zo|
|00000eb0| 6f 6d 42 6f 78 22 20 2d | 20 32 31 33 26 22 2c 35 |omBox" -| 213&",5|
|00000ec0| 33 22 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |3".if th|ere is a|
|00000ed0| 20 77 69 6e 64 6f 77 20 | 22 48 54 4d 4c 54 6f 6f | window |"HTMLToo|
|00000ee0| 6c 73 22 20 74 68 65 6e | 20 73 68 6f 77 20 77 69 |ls" then| show wi|
|00000ef0| 6e 64 6f 77 20 22 48 54 | 4d 4c 54 6f 6f 6c 73 22 |ndow "HT|MLTools"|
|00000f00| 0d 65 6c 73 65 20 69 66 | 20 74 68 65 72 65 20 69 |.else if| there i|
|00000f10| 73 20 61 20 77 69 6e 64 | 6f 77 20 22 48 54 4d 4c |s a wind|ow "HTML|
|00000f20| 54 6f 6f 6c 73 43 6f 6c | 6f 72 22 20 74 68 65 6e |ToolsCol|or" then|
|00000f30| 20 73 68 6f 77 20 77 69 | 6e 64 6f 77 20 22 48 54 | show wi|ndow "HT|
|00000f40| 4d 4c 54 6f 6f 6c 73 43 | 6f 6c 6f 72 22 0d 65 6c |MLToolsC|olor".el|
|00000f50| 73 65 20 69 66 20 28 69 | 74 65 6d 20 32 20 6f 66 |se if (i|tem 2 of|
|00000f60| 20 6c 69 6e 65 20 31 20 | 6f 66 20 67 65 74 4d 6f | line 1 |of getMo|
|00000f70| 64 65 28 29 20 3d 20 38 | 29 20 74 68 65 6e 20 70 |de() = 8|) then p|
|00000f80| 61 6c 65 74 74 65 20 22 | 48 54 4d 4c 54 6f 6f 6c |alette "|HTMLTool|
|00000f90| 73 43 6f 6c 6f 72 22 2c | 69 74 0d 65 6c 73 65 20 |sColor",|it.else |
|00000fa0| 70 61 6c 65 74 74 65 20 | 22 48 54 4d 4c 54 6f 6f |palette |"HTMLToo|
|00000fb0| 6c 73 22 2c 69 74 0d 65 | 6e 64 20 73 68 6f 77 54 |ls",it.e|nd showT|
|00000fc0| 6f 6f 6c 73 0d 0d 6f 6e | 20 68 69 64 65 50 61 6c |ools..on| hidePal|
|00000fd0| 65 74 74 65 73 0d 67 6c | 6f 62 61 6c 20 48 65 54 |ettes.gl|obal HeT|
|00000fe0| 5f 76 69 7a 2c 48 65 43 | 5f 76 69 7a 0d 70 75 74 |_viz,HeC|_viz.put|
|00000ff0| 20 76 69 7a 28 22 48 54 | 4d 4c 54 6f 6f 6c 73 22 | viz("HT|MLTools"|
|00001000| 29 20 69 6e 74 6f 20 48 | 65 54 5f 76 69 7a 0d 69 |) into H|eT_viz.i|
|00001010| 66 20 48 65 54 5f 76 69 | 7a 20 74 68 65 6e 20 68 |f HeT_vi|z then h|
|00001020| 69 64 65 20 77 69 6e 64 | 6f 77 20 22 48 54 4d 4c |ide wind|ow "HTML|
|00001030| 54 6f 6f 6c 73 22 0d 70 | 75 74 20 76 69 7a 28 22 |Tools".p|ut viz("|
|00001040| 48 54 4d 4c 54 6f 6f 6c | 73 43 6f 6c 6f 72 22 29 |HTMLTool|sColor")|
|00001050| 20 69 6e 74 6f 20 48 65 | 43 5f 76 69 7a 0d 69 66 | into He|C_viz.if|
|00001060| 20 48 65 43 5f 76 69 7a | 20 74 68 65 6e 20 68 69 | HeC_viz| then hi|
|00001070| 64 65 20 77 69 6e 64 6f | 77 20 22 48 54 4d 4c 54 |de windo|w "HTMLT|
|00001080| 6f 6f 6c 73 43 6f 6c 6f | 72 22 0d 65 6e 64 20 68 |oolsColo|r".end h|
|00001090| 69 64 65 50 61 6c 65 74 | 74 65 73 0d 0d 6f 6e 20 |idePalet|tes..on |
|000010a0| 73 65 65 6b 50 61 6c 65 | 74 74 65 73 0d 67 6c 6f |seekPale|ttes.glo|
|000010b0| 62 61 6c 20 48 65 54 5f | 76 69 7a 2c 48 65 43 5f |bal HeT_|viz,HeC_|
|000010c0| 76 69 7a 0d 69 66 20 48 | 65 43 5f 76 69 7a 20 3d |viz.if H|eC_viz =|
|000010d0| 20 54 52 55 45 20 74 68 | 65 6e 20 73 68 6f 77 54 | TRUE th|en showT|
|000010e0| 6f 6f 6c 73 20 63 6f 6c | 6f 72 0d 65 6c 73 65 20 |ools col|or.else |
|000010f0| 69 66 20 48 65 54 5f 76 | 69 7a 20 3d 20 54 52 55 |if HeT_v|iz = TRU|
|00001100| 45 20 74 68 65 6e 20 73 | 68 6f 77 54 6f 6f 6c 73 |E then s|howTools|
|00001110| 0d 65 6e 64 20 73 65 65 | 6b 50 61 6c 65 74 74 65 |.end see|kPalette|
|00001120| 73 0d 0d 6f 6e 20 63 6c | 6f 73 65 50 61 6c 65 74 |s..on cl|osePalet|
|00001130| 74 65 73 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |tes.if t|here is |
|00001140| 61 20 77 69 6e 64 6f 77 | 20 22 48 54 4d 4c 2e 65 |a window| "HTML.e|
|00001150| 64 69 74 20 48 65 6c 70 | 22 20 74 68 65 6e 20 63 |dit Help|" then c|
|00001160| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 22 48 54 4d |lose win|dow "HTM|
|00001170| 4c 2e 65 64 69 74 20 48 | 65 6c 70 22 0d 69 66 20 |L.edit H|elp".if |
|00001180| 74 68 65 72 65 20 69 73 | 20 61 20 77 69 6e 64 6f |there is| a windo|
|00001190| 77 20 22 48 54 4d 4c 54 | 6f 6f 6c 73 22 20 74 68 |w "HTMLT|ools" th|
|000011a0| 65 6e 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |en close| window |
|000011b0| 22 48 54 4d 4c 54 6f 6f | 6c 73 22 0d 69 66 20 74 |"HTMLToo|ls".if t|
|000011c0| 68 65 72 65 20 69 73 20 | 61 20 77 69 6e 64 6f 77 |here is |a window|
|000011d0| 20 22 48 54 4d 4c 54 6f | 6f 6c 73 43 6f 6c 6f 72 | "HTMLTo|olsColor|
|000011e0| 22 20 74 68 65 6e 20 63 | 6c 6f 73 65 20 77 69 6e |" then c|lose win|
|000011f0| 64 6f 77 20 22 48 54 4d | 4c 54 6f 6f 6c 73 43 6f |dow "HTM|LToolsCo|
|00001200| 6c 6f 72 22 0d 65 6e 64 | 20 63 6c 6f 73 65 50 61 |lor".end| closePa|
|00001210| 6c 65 74 74 65 73 0d 0d | 2d 2d 20 a5 20 73 74 61 |lettes..|-- . sta|
|00001220| 6e 64 61 72 64 0d 0d 6f | 6e 20 63 6f 6d 6d 61 6e |ndard..o|n comman|
|00001230| 64 4b 65 79 44 6f 77 6e | 20 6b 0d 49 46 20 6b 20 |dKeyDown| k.IF k |
|00001240| 3d 20 22 2f 22 20 6f 72 | 20 6b 20 3d 20 22 3f 22 |= "/" or| k = "?"|
|00001250| 20 74 68 65 6e 20 48 54 | 4d 4c 48 65 6c 70 0d 65 | then HT|MLHelp.e|
|00001260| 6c 73 65 20 69 66 20 6b | 20 3d 20 30 20 74 68 65 |lse if k| = 0 the|
|00001270| 6e 20 73 65 6c 65 63 74 | 46 72 6f 6d 49 6e 64 65 |n select|FromInde|
|00001280| 78 0d 65 6c 73 65 20 69 | 66 20 6b 20 3d 20 31 20 |x.else i|f k = 1 |
|00001290| 74 68 65 6e 20 67 6f 20 | 63 64 20 22 49 6e 64 65 |then go |cd "Inde|
|000012a0| 78 22 0d 65 6c 73 65 20 | 69 66 20 6b 20 3d 20 32 |x".else |if k = 2|
|000012b0| 20 74 68 65 6e 20 67 6f | 20 70 72 65 76 0d 65 6c | then go| prev.el|
|000012c0| 73 65 20 69 66 20 6b 20 | 3d 20 33 20 74 68 65 6e |se if k |= 3 then|
|000012d0| 20 67 6f 20 6e 65 78 74 | 0d 65 6c 73 65 20 69 66 | go next|.else if|
|000012e0| 20 6b 20 3d 20 34 20 74 | 68 65 6e 20 67 6f 20 63 | k = 4 t|hen go c|
|000012f0| 64 20 22 6d 48 22 0d 65 | 6c 73 65 20 69 66 20 6b |d "mH".e|lse if k|
|00001300| 20 3d 20 35 20 74 68 65 | 6e 20 67 6f 20 63 64 20 | = 5 the|n go cd |
|00001310| 22 6d 46 22 0d 65 6c 73 | 65 20 69 66 20 6b 20 3d |"mF".els|e if k =|
|00001320| 20 36 20 74 68 65 6e 20 | 67 6f 20 63 64 20 22 70 | 6 then |go cd "p|
|00001330| 72 65 66 73 22 0d 45 4c | 53 45 20 69 66 20 28 73 |refs".EL|SE if (s|
|00001340| 68 69 66 74 4b 65 79 28 | 29 20 ad 20 64 6f 77 6e |hiftKey(|) . down|
|00001350| 29 20 74 68 65 6e 0d 69 | 66 20 6b 20 3d 20 22 48 |) then.i|f k = "H|
|00001360| 22 20 6f 72 20 6b 20 3d | 20 22 52 22 20 74 68 65 |" or k =| "R" the|
|00001370| 6e 20 65 78 69 74 20 63 | 6f 6d 6d 61 6e 64 4b 65 |n exit c|ommandKe|
|00001380| 79 44 6f 77 6e 0d 65 6c | 73 65 20 69 66 20 6b 20 |yDown.el|se if k |
|00001390| 3d 20 22 41 22 20 61 6e | 64 20 22 66 69 65 6c 64 |= "A" an|d "field|
|000013a0| 22 20 69 73 20 69 6e 20 | 74 68 65 20 73 65 6c 65 |" is in |the sele|
|000013b0| 63 74 65 64 43 68 75 6e | 6b 20 74 68 65 6e 20 73 |ctedChun|k then s|
|000013c0| 65 6c 65 63 74 20 74 65 | 78 74 20 6f 66 20 74 68 |elect te|xt of th|
|000013d0| 65 20 73 65 6c 65 63 74 | 65 64 46 69 65 6c 64 0d |e select|edField.|
|000013e0| 65 6c 73 65 20 69 66 20 | 6b 20 3d 20 22 45 22 20 |else if |k = "E" |
|000013f0| 74 68 65 6e 20 73 65 74 | 20 74 68 65 20 76 69 73 |then set| the vis|
|00001400| 69 62 6c 65 20 6f 66 20 | 73 63 72 6f 6c 6c 20 77 |ible of |scroll w|
|00001410| 69 6e 64 6f 77 20 74 6f | 20 6e 6f 74 20 74 68 65 |indow to| not the|
|00001420| 20 76 69 73 69 62 6c 65 | 20 6f 66 20 73 63 72 6f | visible| of scro|
|00001430| 6c 6c 20 77 69 6e 64 6f | 77 0d 65 6c 73 65 20 69 |ll windo|w.else i|
|00001440| 66 20 6b 20 3d 20 22 4d | 22 20 74 68 65 6e 20 73 |f k = "M|" then s|
|00001450| 65 74 20 74 68 65 20 76 | 69 73 69 62 6c 65 20 6f |et the v|isible o|
|00001460| 66 20 6d 73 67 20 74 6f | 20 6e 6f 74 20 74 68 65 |f msg to| not the|
|00001470| 20 76 69 73 69 62 6c 65 | 20 6f 66 20 6d 73 67 0d | visible| of msg.|
|00001480| 65 6c 73 65 20 69 66 20 | 6b 20 3d 20 22 4f 22 20 |else if |k = "O" |
|00001490| 74 68 65 6e 20 73 65 6e | 64 20 22 69 6d 70 6f 72 |then sen|d "impor|
|000014a0| 74 48 54 4d 4c 22 20 74 | 6f 20 74 68 69 73 20 63 |tHTML" t|o this c|
|000014b0| 64 0d 65 6c 73 65 20 70 | 61 73 73 20 63 6f 6d 6d |d.else p|ass comm|
|000014c0| 61 6e 64 4b 65 79 44 6f | 77 6e 0d 45 4c 53 45 20 |andKeyDo|wn.ELSE |
|000014d0| 70 61 73 73 20 63 6f 6d | 6d 61 6e 64 4b 65 79 44 |pass com|mandKeyD|
|000014e0| 6f 77 6e 0d 65 6e 64 20 | 63 6f 6d 6d 61 6e 64 4b |own.end |commandK|
|000014f0| 65 79 44 6f 77 6e 0d 0d | 6f 6e 20 72 65 74 75 72 |eyDown..|on retur|
|00001500| 6e 49 6e 46 69 65 6c 64 | 0d 67 6c 6f 62 61 6c 20 |nInField|.global |
|00001510| 75 73 65 48 54 4d 4c 52 | 65 74 75 72 6e 0d 69 66 |useHTMLR|eturn.if|
|00001520| 20 75 73 65 48 54 4d 4c | 52 65 74 75 72 6e 20 3d | useHTML|Return =|
|00001530| 20 54 52 55 45 20 61 6e | 64 20 6f 70 74 69 6f 6e | TRUE an|d option|
|00001540| 4b 65 79 28 29 20 3d 20 | 64 6f 77 6e 20 74 68 65 |Key() = |down the|
|00001550| 6e 0d 73 65 74 55 6e 64 | 6f 0d 69 66 20 6c 65 6e |n.setUnd|o.if len|
|00001560| 67 74 68 28 73 65 6c 65 | 63 74 65 64 54 65 78 74 |gth(sele|ctedText|
|00001570| 29 20 3e 20 30 20 74 68 | 65 6e 20 70 75 74 20 22 |) > 0 th|en put "|
|00001580| 3c 50 3e 22 26 72 65 74 | 75 72 6e 20 61 66 74 65 |<P>"&ret|urn afte|
|00001590| 72 20 74 68 65 20 73 65 | 6c 65 63 74 69 6f 6e 0d |r the se|lection.|
|000015a0| 65 6c 73 65 20 74 79 70 | 65 20 22 3c 50 3e 22 26 |else typ|e "<P>"&|
|000015b0| 72 65 74 75 72 6e 0d 65 | 6c 73 65 20 70 61 73 73 |return.e|lse pass|
|000015c0| 20 72 65 74 75 72 6e 49 | 6e 46 69 65 6c 64 0d 65 | returnI|nField.e|
|000015d0| 6e 64 20 72 65 74 75 72 | 6e 49 6e 46 69 65 6c 64 |nd retur|nInField|
|000015e0| 0d 0d 6f 6e 20 64 6f 4d | 65 6e 75 20 69 0d 69 66 |..on doM|enu i.if|
|000015f0| 20 69 20 3d 20 22 4e 65 | 77 20 42 61 63 6b 67 72 | i = "Ne|w Backgr|
|00001600| 6f 75 6e 64 22 20 74 68 | 65 6e 20 62 65 65 70 0d |ound" th|en beep.|
|00001610| 65 6c 73 65 20 69 66 20 | 69 20 3d 20 22 49 6d 70 |else if |i = "Imp|
|00001620| 6f 72 74 20 44 6f 63 75 | 6d 65 6e 74 c9 22 20 74 |ort Docu|ment." t|
|00001630| 68 65 6e 0d 67 6f 20 6c | 61 73 74 20 63 64 20 6f |hen.go l|ast cd o|
|00001640| 66 20 62 67 20 22 45 64 | 69 74 6f 72 22 0d 73 65 |f bg "Ed|itor".se|
|00001650| 6e 64 20 22 69 6d 70 6f | 72 74 48 54 4d 4c 22 20 |nd "impo|rtHTML" |
|00001660| 74 6f 20 74 68 69 73 20 | 63 64 0d 65 6c 73 65 20 |to this |cd.else |
|00001670| 69 66 20 69 20 3d 20 22 | 45 78 70 6f 72 74 20 44 |if i = "|Export D|
|00001680| 6f 63 75 6d 65 6e 74 c9 | 22 20 74 68 65 6e 0d 67 |ocument.|" then.g|
|00001690| 65 74 20 6e 75 6d 62 65 | 72 28 74 68 69 73 20 63 |et numbe|r(this c|
|000016a0| 64 29 0d 69 66 20 28 74 | 68 65 20 73 68 6f 72 74 |d).if (t|he short|
|000016b0| 20 69 64 20 6f 66 20 74 | 68 69 73 20 62 67 20 3d | id of t|his bg =|
|000016c0| 20 35 35 33 39 29 20 74 | 68 65 6e 20 73 65 6e 64 | 5539) t|hen send|
|000016d0| 20 22 65 78 70 6f 72 74 | 48 54 4d 4c 22 20 74 6f | "export|HTML" to|
|000016e0| 20 74 68 69 73 20 63 64 | 0d 65 6c 73 65 20 62 65 | this cd|.else be|
|000016f0| 65 70 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |ep.else |if i = "|
|00001700| 43 6f 6d 70 61 63 74 20 | 53 74 61 63 6b 22 20 74 |Compact |Stack" t|
|00001710| 68 65 6e 0d 63 6c 6f 73 | 65 50 61 6c 65 74 74 65 |hen.clos|ePalette|
|00001720| 73 0d 70 61 73 73 20 64 | 6f 4d 65 6e 75 0d 65 6c |s.pass d|oMenu.el|
|00001730| 73 65 20 70 61 73 73 20 | 64 6f 4d 65 6e 75 0d 65 |se pass |doMenu.e|
|00001740| 6e 64 20 64 6f 4d 65 6e | 75 0d 0d 6f 6e 20 69 64 |nd doMen|u..on id|
|00001750| 6c 65 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |le.if th|ere is a|
|00001760| 20 77 69 6e 64 6f 77 20 | 22 70 72 6f 67 72 65 73 | window |"progres|
|00001770| 73 22 20 74 68 65 6e 20 | 63 6c 6f 73 65 20 77 69 |s" then |close wi|
|00001780| 6e 64 6f 77 20 22 70 72 | 6f 67 72 65 73 73 22 0d |ndow "pr|ogress".|
|00001790| 70 61 73 73 20 69 64 6c | 65 0d 65 6e 64 20 69 64 |pass idl|e.end id|
|000017a0| 6c 65 0d 0d 6f 6e 20 73 | 68 6f 77 41 62 6f 75 74 |le..on s|howAbout|
|000017b0| 20 74 68 65 54 69 6d 65 | 0d 69 66 20 74 68 65 54 | theTime|.if theT|
|000017c0| 69 6d 65 20 3d 20 22 22 | 20 74 68 65 6e 20 70 75 |ime = ""| then pu|
|000017d0| 74 20 39 39 39 20 69 6e | 74 6f 20 74 68 65 54 69 |t 999 in|to theTi|
|000017e0| 6d 65 0d 69 66 20 28 69 | 74 65 6d 20 32 20 6f 66 |me.if (i|tem 2 of|
|000017f0| 20 6c 69 6e 65 20 31 20 | 6f 66 20 67 65 74 4d 6f | line 1 |of getMo|
|00001800| 64 65 28 29 20 3c 20 38 | 29 20 74 68 65 6e 20 73 |de() < 8|) then s|
|00001810| 68 6f 77 57 69 6e 64 20 | 22 41 62 6f 75 74 42 6f |howWind |"AboutBo|
|00001820| 78 42 57 22 2c 74 68 65 | 54 69 6d 65 0d 65 6c 73 |xBW",the|Time.els|
|00001830| 65 20 73 68 6f 77 57 69 | 6e 64 20 22 41 62 6f 75 |e showWi|nd "Abou|
|00001840| 74 42 6f 78 22 2c 74 68 | 65 54 69 6d 65 0d 65 6e |tBox",th|eTime.en|
|00001850| 64 20 73 68 6f 77 41 62 | 6f 75 74 0d 0d 6f 6e 20 |d showAb|out..on |
|00001860| 73 68 6f 77 57 69 6e 64 | 20 77 69 6e 64 2c 74 69 |showWind| wind,ti|
|00001870| 6d 65 0d 67 65 74 20 74 | 68 65 20 74 69 63 6b 73 |me.get t|he ticks|
|00001880| 0d 70 69 63 74 75 72 65 | 20 77 69 6e 64 2c 72 65 |.picture| wind,re|
|00001890| 73 6f 75 72 63 65 2c 73 | 68 61 64 6f 77 0d 69 66 |source,s|hadow.if|
|000018a0| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 77 69 6e | there i|s no win|
|000018b0| 64 6f 77 20 77 69 6e 64 | 20 74 68 65 6e 20 61 6e |dow wind| then an|
|000018c0| 73 77 65 72 20 22 4f 55 | 54 20 4f 46 20 4d 45 4d |swer "OU|T OF MEM|
|000018d0| 4f 52 59 20 45 52 52 4f | 52 3a 22 26 72 65 74 75 |ORY ERRO|R:"&retu|
|000018e0| 72 6e 26 22 55 6e 61 62 | 6c 65 20 74 6f 20 64 69 |rn&"Unab|le to di|
|000018f0| 73 70 6c 61 79 20 67 72 | 61 70 68 69 63 2e 20 41 |splay gr|aphic. A|
|00001900| 6c 6c 6f 63 61 74 65 20 | 6d 6f 72 65 20 6d 65 6d |llocate |more mem|
|00001910| 6f 72 79 20 74 6f 20 74 | 68 69 73 20 61 70 70 6c |ory to t|his appl|
|00001920| 69 63 61 74 69 6f 6e 2e | 22 0d 65 6c 73 65 20 77 |ication.|".else w|
|00001930| 61 69 74 20 75 6e 74 69 | 6c 20 74 68 65 20 6d 6f |ait unti|l the mo|
|00001940| 75 73 65 43 6c 69 63 6b | 20 6f 72 20 74 68 65 20 |useClick| or the |
|00001950| 74 69 63 6b 73 20 2d 20 | 69 74 20 3e 20 28 74 69 |ticks - |it > (ti|
|00001960| 6d 65 20 2a 20 36 30 29 | 0d 76 69 73 75 61 6c 20 |me * 60)|.visual |
|00001970| 7a 6f 6f 6d 20 63 6c 6f | 73 65 0d 69 66 20 74 68 |zoom clo|se.if th|
|00001980| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|00001990| 77 69 6e 64 20 74 68 65 | 6e 20 63 6c 6f 73 65 20 |wind the|n close |
|000019a0| 77 69 6e 64 6f 77 20 77 | 69 6e 64 0d 65 6e 64 20 |window w|ind.end |
|000019b0| 73 68 6f 77 57 69 6e 64 | 0d 0d 6f 6e 20 6d 6f 75 |showWind|..on mou|
|000019c0| 73 65 44 6f 77 6e 49 6e | 50 69 63 74 75 72 65 20 |seDownIn|Picture |
|000019d0| 77 69 6e 64 0d 69 66 20 | 77 69 6e 64 20 3d 20 22 |wind.if |wind = "|
|000019e0| 45 6e 74 69 74 69 65 73 | 22 20 74 68 65 6e 20 73 |Entities|" then s|
|000019f0| 65 6c 65 63 74 45 6e 74 | 69 74 79 0d 65 6c 73 65 |electEnt|ity.else|
|00001a00| 20 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 77 69 | close w|indow wi|
|00001a10| 6e 64 0d 65 6e 64 20 6d | 6f 75 73 65 44 6f 77 6e |nd.end m|ouseDown|
|00001a20| 49 6e 50 69 63 74 75 72 | 65 0d 0d 6f 6e 20 73 74 |InPictur|e..on st|
|00001a30| 6f 70 55 73 69 6e 67 0d | 72 65 70 65 61 74 20 77 |opUsing.|repeat w|
|00001a40| 69 74 68 20 69 20 3d 20 | 31 20 74 6f 20 6e 75 6d |ith i = |1 to num|
|00001a50| 62 65 72 28 6c 69 6e 65 | 73 20 69 6e 20 74 68 65 |ber(line|s in the|
|00001a60| 20 73 74 61 63 6b 73 49 | 6e 55 73 65 29 0d 73 74 | stacksI|nUse).st|
|00001a70| 6f 70 20 75 73 69 6e 67 | 20 73 74 61 63 6b 20 28 |op using| stack (|
|00001a80| 6c 69 6e 65 20 69 20 6f | 66 20 74 68 65 20 73 74 |line i o|f the st|
|00001a90| 61 63 6b 73 49 6e 55 73 | 65 29 0d 65 6e 64 20 72 |acksInUs|e).end r|
|00001aa0| 65 70 65 61 74 0d 65 6e | 64 20 73 74 6f 70 55 73 |epeat.en|d stopUs|
|00001ab0| 69 6e 67 0d 0d 6f 6e 20 | 63 6f 6d 70 61 63 74 53 |ing..on |compactS|
|00001ac0| 74 61 63 6b 20 6e 6f 77 | 0d 73 74 6f 70 55 73 69 |tack now|.stopUsi|
|00001ad0| 6e 67 0d 67 65 74 20 74 | 68 65 20 73 68 6f 72 74 |ng.get t|he short|
|00001ae0| 20 6e 61 6d 65 20 6f 66 | 20 63 64 20 62 74 6e 20 | name of| cd btn |
|00001af0| 69 64 20 31 30 20 6f 66 | 20 63 64 20 22 70 72 65 |id 10 of| cd "pre|
|00001b00| 66 73 22 0d 69 66 20 69 | 74 20 3d 20 22 41 6c 77 |fs".if i|t = "Alw|
|00001b10| 61 79 73 22 20 74 68 65 | 6e 20 67 65 74 20 22 3e |ays" the|n get ">|
|00001b20| 30 25 22 0d 65 6c 73 65 | 0d 64 65 6c 65 74 65 20 |0%".else|.delete |
|00001b30| 66 69 72 73 74 20 63 68 | 61 72 20 6f 66 20 69 74 |first ch|ar of it|
|00001b40| 0d 64 65 6c 65 74 65 20 | 6c 61 73 74 20 63 68 61 |.delete |last cha|
|00001b50| 72 20 6f 66 20 69 74 0d | 70 75 74 20 69 74 2f 31 |r of it.|put it/1|
|00001b60| 30 30 20 69 6e 74 6f 20 | 74 68 72 65 73 68 6f 6c |00 into |threshol|
|00001b70| 64 0d 65 6e 64 20 69 66 | 0d 69 66 20 28 74 68 65 |d.end if|.if (the|
|00001b80| 20 66 72 65 65 53 69 7a | 65 20 6f 66 20 74 68 69 | freeSiz|e of thi|
|00001b90| 73 20 73 74 61 63 6b 2f | 74 68 65 20 73 69 7a 65 |s stack/|the size|
|00001ba0| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 20 3e | of this| stack >|
|00001bb0| 20 74 68 72 65 73 68 6f | 6c 64 29 20 6f 72 20 6e | thresho|ld) or n|
|00001bc0| 6f 77 20 3d 20 54 52 55 | 45 0d 74 68 65 6e 20 64 |ow = TRU|E.then d|
|00001bd0| 6f 4d 65 6e 75 20 22 43 | 6f 6d 70 61 63 74 20 53 |oMenu "C|ompact S|
|00001be0| 74 61 63 6b 22 0d 65 6e | 64 20 63 6f 6d 70 61 63 |tack".en|d compac|
|00001bf0| 74 53 74 61 63 6b 0d 0d | 6f 6e 20 70 72 69 6e 74 |tStack..|on print|
|00001c00| 54 65 78 74 0d 69 66 20 | 74 68 65 20 73 68 6f 72 |Text.if |the shor|
|00001c10| 74 20 6e 61 6d 65 20 6f | 66 20 74 68 69 73 20 62 |t name o|f this b|
|00001c20| 67 20 3d 20 22 45 64 69 | 74 6f 72 22 20 74 68 65 |g = "Edi|tor" the|
|00001c30| 6e 0d 6f 70 65 6e 20 72 | 65 70 6f 72 74 20 70 72 |n.open r|eport pr|
|00001c40| 69 6e 74 69 6e 67 20 77 | 69 74 68 20 74 65 6d 70 |inting w|ith temp|
|00001c50| 6c 61 74 65 20 22 50 72 | 69 6e 74 44 6f 63 75 6d |late "Pr|intDocum|
|00001c60| 65 6e 74 22 0d 70 72 69 | 6e 74 20 74 68 69 73 20 |ent".pri|nt this |
|00001c70| 63 64 0d 63 6c 6f 73 65 | 20 70 72 69 6e 74 69 6e |cd.close| printin|
|00001c80| 67 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 70 72 69 |g.end if|.end pri|
|00001c90| 6e 74 54 65 78 74 0d 0d | 2d 2d 20 a5 20 48 54 4d |ntText..|-- . HTM|
|00001ca0| 4c 20 48 65 6c 70 0d 0d | 6f 6e 20 48 54 4d 4c 48 |L Help..|on HTMLH|
|00001cb0| 65 6c 70 20 69 0d 67 6c | 6f 62 61 6c 20 74 6f 70 |elp i.gl|obal top|
|00001cc0| 69 63 0d 69 66 20 69 20 | 3d 20 22 48 54 4d 4c 22 |ic.if i |= "HTML"|
|00001cd0| 20 74 68 65 6e 20 67 65 | 74 20 22 41 20 42 65 67 | then ge|t "A Beg|
|00001ce0| 69 6e 6e 65 72 27 73 20 | 47 75 69 64 65 20 74 6f |inner's |Guide to|
|00001cf0| 20 48 54 4d 4c 22 0d 65 | 6c 73 65 20 69 66 20 74 | HTML".e|lse if t|
|00001d00| 68 65 20 70 61 72 61 6d | 43 6f 75 6e 74 20 3d 20 |he param|Count = |
|00001d10| 30 20 6f 72 20 69 20 3d | 20 22 22 20 74 68 65 6e |0 or i =| "" then|
|00001d20| 20 67 65 74 20 22 43 6f | 6e 74 65 6e 74 73 22 0d | get "Co|ntents".|
|00001d30| 65 6c 73 65 20 67 65 74 | 20 69 0d 70 75 74 20 69 |else get| i.put i|
|00001d40| 74 20 69 6e 74 6f 20 74 | 6f 70 69 63 0d 69 66 20 |t into t|opic.if |
|00001d50| 69 20 3d 20 22 41 62 6f | 75 74 20 42 6f 78 22 20 |i = "Abo|ut Box" |
|00001d60| 74 68 65 6e 20 73 68 6f | 77 41 62 6f 75 74 0d 65 |then sho|wAbout.e|
|00001d70| 6c 73 65 20 69 66 20 69 | 20 3d 20 22 50 61 6c 65 |lse if i| = "Pale|
|00001d80| 74 74 65 20 48 65 6c 70 | 22 20 74 68 65 6e 20 70 |tte Help|" then p|
|00001d90| 61 6c 65 74 74 65 48 65 | 6c 70 0d 65 6c 73 65 20 |aletteHe|lp.else |
|00001da0| 69 66 20 69 20 ad 20 22 | 66 61 6c 73 65 22 20 74 |if i . "|false" t|
|00001db0| 68 65 6e 0d 69 66 20 68 | 65 6c 70 41 76 61 69 6c |hen.if h|elpAvail|
|00001dc0| 61 62 6c 65 28 29 20 61 | 6e 64 20 74 68 65 72 65 |able() a|nd there|
|00001dd0| 20 69 73 20 6e 6f 74 20 | 61 20 77 69 6e 64 6f 77 | is not |a window|
|00001de0| 20 22 48 54 4d 4c 2e 65 | 64 69 74 20 48 65 6c 70 | "HTML.e|dit Help|
|00001df0| 22 20 74 68 65 6e 0d 67 | 65 74 20 74 72 75 6e 63 |" then.g|et trunc|
|00001e00| 28 74 68 65 20 77 69 64 | 74 68 20 6f 66 20 63 64 |(the wid|th of cd|
|00001e10| 20 77 69 6e 64 6f 77 2f | 36 29 26 22 2c 34 34 2c | window/|6)&",44,|
|00001e20| 22 26 74 72 75 6e 63 28 | 35 2f 36 2a 74 68 65 20 |"&trunc(|5/6*the |
|00001e30| 77 69 64 74 68 20 6f 66 | 20 63 64 20 77 69 6e 64 |width of| cd wind|
|00001e40| 6f 77 29 26 22 2c 22 26 | 28 74 68 65 20 68 65 69 |ow)&","&|(the hei|
|00001e50| 67 68 74 20 6f 66 20 63 | 64 20 77 69 6e 64 6f 77 |ght of c|d window|
|00001e60| 29 2d 32 36 0d 54 65 78 | 74 6f 69 64 20 22 48 54 |)-26.Tex|toid "HT|
|00001e70| 4d 4c 2e 65 64 69 74 20 | 48 65 6c 70 22 2c 74 6f |ML.edit |Help",to|
|00001e80| 70 69 63 2c 62 69 67 57 | 69 6e 64 6f 69 64 5a 6f |pic,bigW|indoidZo|
|00001e90| 6f 6d 2c 69 74 0d 62 69 | 6e 6b 0d 65 6e 64 20 69 |om,it.bi|nk.end i|
|00001ea0| 66 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |f.if the|re is a |
|00001eb0| 77 69 6e 64 6f 77 20 22 | 48 54 4d 4c 2e 65 64 69 |window "|HTML.edi|
|00001ec0| 74 20 48 65 6c 70 22 20 | 74 68 65 6e 0d 73 65 74 |t Help" |then.set|
|00001ed0| 20 74 68 65 20 55 6e 4c | 6f 63 6b 41 6c 6c 6f 77 | the UnL|ockAllow|
|00001ee0| 65 64 20 6f 66 20 77 69 | 6e 64 6f 77 20 22 48 54 |ed of wi|ndow "HT|
|00001ef0| 4d 4c 2e 65 64 69 74 20 | 48 65 6c 70 22 20 74 6f |ML.edit |Help" to|
|00001f00| 20 46 41 4c 53 45 0d 73 | 65 74 20 74 65 78 74 20 | FALSE.s|et text |
|00001f10| 6f 66 20 77 69 6e 64 6f | 77 20 22 48 54 4d 4c 2e |of windo|w "HTML.|
|00001f20| 65 64 69 74 20 48 65 6c | 70 22 20 74 6f 20 74 6f |edit Hel|p" to to|
|00001f30| 70 69 63 20 2d 2d 20 6c | 6f 61 64 20 66 72 6f 6d |pic -- l|oad from|
|00001f40| 20 52 53 52 43 0d 73 65 | 74 20 66 69 65 6c 64 54 | RSRC.se|t fieldT|
|00001f50| 72 61 6e 73 66 65 72 20 | 6f 66 20 77 69 6e 64 6f |ransfer |of windo|
|00001f60| 77 20 22 48 54 4d 4c 2e | 65 64 69 74 20 48 65 6c |w "HTML.|edit Hel|
|00001f70| 70 22 20 74 6f 20 22 66 | 6c 64 20 69 64 20 31 35 |p" to "f|ld id 15|
|00001f80| 22 20 2d 2d 20 74 78 66 | 65 72 20 74 6f 20 66 6c |" -- txf|er to fl|
|00001f90| 64 0d 65 6c 73 65 0d 61 | 6e 73 77 65 72 20 22 45 |d.else.a|nswer "E|
|00001fa0| 52 52 4f 52 3a 22 26 72 | 65 74 75 72 6e 26 22 55 |RROR:"&r|eturn&"U|
|00001fb0| 6e 61 62 6c 65 20 74 6f | 20 64 69 73 70 6c 61 79 |nable to| display|
|00001fc0| 20 48 65 6c 70 20 77 69 | 6e 64 6f 77 2e 20 50 6c | Help wi|ndow. Pl|
|00001fd0| 65 61 73 65 20 70 6c 61 | 63 65 20 74 68 65 20 66 |ease pla|ce the f|
|00001fe0| 69 6c 65 20 27 48 54 4d | 4c 2e 65 64 69 74 2e 48 |ile 'HTM|L.edit.H|
|00001ff0| 65 6c 70 27 20 69 6e 20 | 74 68 65 20 73 61 6d 65 |elp' in |the same|
|00002000| 20 66 6f 6c 64 65 72 20 | 61 73 20 48 54 4d 4c 2e | folder |as HTML.|
|00002010| 65 64 69 74 20 61 6e 64 | 20 74 72 79 20 61 67 61 |edit and| try aga|
|00002020| 69 6e 2e 22 20 77 69 74 | 68 20 22 43 61 6e 63 65 |in." wit|h "Cance|
|00002030| 6c 22 0d 65 78 69 74 20 | 74 6f 20 48 79 70 65 72 |l".exit |to Hyper|
|00002040| 43 61 72 64 0d 65 6e 64 | 20 69 66 0d 75 6e 6c 6f |Card.end| if.unlo|
|00002050| 63 6b 20 73 63 72 65 65 | 6e 20 77 69 74 68 20 64 |ck scree|n with d|
|00002060| 69 73 73 6f 6c 76 65 20 | 76 65 72 79 20 66 61 73 |issolve |very fas|
|00002070| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 48 54 4d |t.end if|.end HTM|
|00002080| 4c 48 65 6c 70 0d 0d 6f | 6e 20 63 6c 69 63 6b 49 |LHelp..o|n clickI|
|00002090| 6e 54 65 78 74 20 74 68 | 65 57 6f 72 64 2c 57 4e |nText th|eWord,WN|
|000020a0| 61 6d 65 2c 77 2c 73 31 | 2c 73 32 2c 66 2c 73 32 |ame,w,s1|,s2,f,s2|
|000020b0| 2c 74 68 65 53 74 79 6c | 65 20 2d 2d 20 63 6c 69 |,theStyl|e -- cli|
|000020c0| 63 6b 20 69 6e 20 48 65 | 6c 70 20 77 69 6e 64 6f |ck in He|lp windo|
|000020d0| 77 0d 62 69 6e 6b 0d 69 | 66 20 74 68 65 53 74 79 |w.bink.i|f theSty|
|000020e0| 6c 65 20 63 6f 6e 74 61 | 69 6e 73 20 22 67 72 6f |le conta|ins "gro|
|000020f0| 75 70 22 20 61 6e 64 20 | 74 68 65 53 74 79 6c 65 |up" and |theStyle|
|00002100| 20 63 6f 6e 74 61 69 6e | 73 20 22 75 6e 64 65 72 | contain|s "under|
|00002110| 6c 69 6e 65 22 20 74 68 | 65 6e 20 48 54 4d 4c 48 |line" th|en HTMLH|
|00002120| 65 6c 70 20 74 68 65 57 | 6f 72 64 0d 65 6e 64 20 |elp theW|ord.end |
|00002130| 63 6c 69 63 6b 49 6e 54 | 65 78 74 0d 0d 66 75 6e |clickInT|ext..fun|
|00002140| 63 74 69 6f 6e 20 68 65 | 6c 70 41 76 61 69 6c 61 |ction he|lpAvaila|
|00002150| 62 6c 65 0d 69 66 20 6f | 70 74 69 6f 6e 4b 65 79 |ble.if o|ptionKey|
|00002160| 28 29 20 3d 20 64 6f 77 | 6e 20 6f 72 20 22 48 54 |() = dow|n or "HT|
|00002170| 4d 4c 2e 65 64 69 74 20 | 48 65 6c 70 22 20 69 73 |ML.edit |Help" is|
|00002180| 20 69 6e 20 74 68 65 20 | 77 69 6e 64 6f 77 73 20 | in the |windows |
|00002190| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 54 52 55 45 |then ret|urn TRUE|
|000021a0| 20 2d 2d 20 a5 20 64 65 | 6c 65 74 65 0d 69 66 20 | -- . de|lete.if |
|000021b0| 73 74 61 63 6b 4e 61 6d | 65 28 63 64 20 66 6c 64 |stackNam|e(cd fld|
|000021c0| 20 22 68 65 6c 70 53 74 | 61 63 6b 22 20 6f 66 20 | "helpSt|ack" of |
|000021d0| 63 64 20 22 70 72 65 66 | 73 22 29 20 69 73 20 69 |cd "pref|s") is i|
|000021e0| 6e 20 74 68 65 20 73 74 | 61 63 6b 73 49 6e 55 73 |n the st|acksInUs|
|000021f0| 65 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 54 52 |e then r|eturn TR|
|00002200| 55 45 0d 65 6c 73 65 0d | 72 65 70 65 61 74 20 31 |UE.else.|repeat 1|
|00002210| 20 74 69 6d 65 73 0d 67 | 65 74 20 66 69 6c 65 45 | times.g|et fileE|
|00002220| 78 69 73 74 73 28 63 64 | 20 66 6c 64 20 22 68 65 |xists(cd| fld "he|
|00002230| 6c 70 53 74 61 63 6b 22 | 20 6f 66 20 63 64 20 22 |lpStack"| of cd "|
|00002240| 70 72 65 66 73 22 2c 22 | 6e 6f 64 69 61 6c 6f 67 |prefs","|nodialog|
|00002250| 3a 65 72 72 47 6c 6f 62 | 61 6c 22 29 0d 69 66 20 |:errGlob|al").if |
|00002260| 65 72 72 47 6c 6f 62 61 | 6c 20 3d 20 22 22 0d 74 |errGloba|l = "".t|
|00002270| 68 65 6e 20 73 74 61 72 | 74 20 75 73 69 6e 67 20 |hen star|t using |
|00002280| 73 74 61 63 6b 20 63 64 | 20 66 6c 64 20 22 68 65 |stack cd| fld "he|
|00002290| 6c 70 53 74 61 63 6b 22 | 20 6f 66 20 63 64 20 22 |lpStack"| of cd "|
|000022a0| 70 72 65 66 73 22 0d 65 | 6c 73 65 20 73 74 61 72 |prefs".e|lse star|
|000022b0| 74 20 75 73 69 6e 67 20 | 73 74 61 63 6b 20 22 48 |t using |stack "H|
|000022c0| 54 4d 4c 2e 65 64 69 74 | 2e 48 65 6c 70 22 0d 69 |TML.edit|.Help".i|
|000022d0| 66 20 22 48 54 4d 4c 2e | 65 64 69 74 2e 48 65 6c |f "HTML.|edit.Hel|
|000022e0| 70 22 20 69 73 20 6e 6f | 74 20 69 6e 20 74 68 65 |p" is no|t in the|
|000022f0| 20 73 74 61 63 6b 73 49 | 6e 55 73 65 0d 74 68 65 | stacksI|nUse.the|
|00002300| 6e 20 70 75 74 20 22 48 | 54 4d 4c 2e 65 64 69 74 |n put "H|TML.edit|
|00002310| 2e 48 65 6c 70 22 20 69 | 6e 74 6f 20 63 64 20 66 |.Help" i|nto cd f|
|00002320| 6c 64 20 22 68 65 6c 70 | 53 74 61 63 6b 22 20 6f |ld "help|Stack" o|
|00002330| 66 20 63 64 20 22 70 72 | 65 66 73 22 0d 65 6c 73 |f cd "pr|efs".els|
|00002340| 65 0d 70 75 74 20 74 68 | 65 50 61 74 68 28 74 68 |e.put th|ePath(th|
|00002350| 65 20 6c 6f 6e 67 20 6e | 61 6d 65 20 6f 66 20 73 |e long n|ame of s|
|00002360| 74 61 63 6b 20 22 48 54 | 4d 4c 2e 65 64 69 74 2e |tack "HT|ML.edit.|
|00002370| 48 65 6c 70 22 29 26 22 | 48 54 4d 4c 2e 65 64 69 |Help")&"|HTML.edi|
|00002380| 74 2e 48 65 6c 70 22 20 | 69 6e 74 6f 20 c2 0d 63 |t.Help" |into ..c|
|00002390| 64 20 66 6c 64 20 22 68 | 65 6c 70 53 74 61 63 6b |d fld "h|elpStack|
|000023a0| 22 20 6f 66 20 63 64 20 | 22 70 72 65 66 73 22 0d |" of cd |"prefs".|
|000023b0| 72 65 74 75 72 6e 20 54 | 52 55 45 0d 65 6e 64 20 |return T|RUE.end |
|000023c0| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 65 6e |if.end r|epeat.en|
|000023d0| 64 20 69 66 0d 72 65 74 | 75 72 6e 20 46 41 4c 53 |d if.ret|urn FALS|
|000023e0| 45 0d 65 6e 64 20 68 65 | 6c 70 41 76 61 69 6c 61 |E.end he|lpAvaila|
|000023f0| 62 6c 65 0d 0d 6f 6e 20 | 73 65 74 49 6e 64 65 78 |ble..on |setIndex|
|00002400| 65 64 20 6d 6f 64 65 0d | 67 6c 6f 62 61 6c 20 69 |ed mode.|global i|
|00002410| 6e 64 65 78 65 64 0d 73 | 65 74 20 74 68 65 20 68 |ndexed.s|et the h|
|00002420| 69 6c 69 74 65 20 6f 66 | 20 63 64 20 62 74 6e 20 |ilite of| cd btn |
|00002430| 22 69 6e 64 65 78 65 64 | 22 20 6f 66 20 63 64 20 |"indexed|" of cd |
|00002440| 22 70 72 65 66 73 22 20 | 74 6f 20 6d 6f 64 65 0d |"prefs" |to mode.|
|00002450| 70 75 74 20 6d 6f 64 65 | 20 69 6e 74 6f 20 69 6e |put mode| into in|
|00002460| 64 65 78 65 64 0d 65 6e | 64 20 73 65 74 49 6e 64 |dexed.en|d setInd|
|00002470| 65 78 65 64 0d 0d 6f 6e | 20 73 65 6c 65 63 74 46 |exed..on| selectF|
|00002480| 72 6f 6d 49 6e 64 65 78 | 0d 67 6c 6f 62 61 6c 20 |romIndex|.global |
|00002490| 69 6e 64 65 78 65 64 2c | 69 6e 64 65 78 4c 69 73 |indexed,|indexLis|
|000024a0| 74 2c 63 61 72 64 49 44 | 4c 69 73 74 0d 69 66 20 |t,cardID|List.if |
|000024b0| 74 68 65 20 73 68 6f 72 | 74 20 69 64 20 6f 66 20 |the shor|t id of |
|000024c0| 74 68 69 73 20 62 67 20 | 3d 20 35 35 33 39 20 74 |this bg |= 5539 t|
|000024d0| 68 65 6e 20 67 65 74 20 | 28 6e 75 6d 62 65 72 28 |hen get |(number(|
|000024e0| 74 68 69 73 20 63 64 29 | 2d 31 29 20 65 6c 73 65 |this cd)|-1) else|
|000024f0| 20 67 65 74 20 31 0d 69 | 66 20 69 6e 64 65 78 65 | get 1.i|f indexe|
|00002500| 64 20 ad 20 54 52 55 45 | 20 74 68 65 6e 20 69 6e |d . TRUE| then in|
|00002510| 64 65 78 53 74 61 63 6b | 0d 73 68 6f 77 44 69 61 |dexStack|.showDia|
|00002520| 6c 6f 67 20 37 2c 34 37 | 34 34 2c 22 53 65 6c 65 |log 7,47|44,"Sele|
|00002530| 63 74 20 74 68 65 20 64 | 65 73 69 72 65 64 20 66 |ct the d|esired f|
|00002540| 69 6c 65 3a 22 2c 43 68 | 69 63 61 67 6f 2c 31 32 |ile:",Ch|icago,12|
|00002550| 2c 69 6e 64 65 78 4c 69 | 73 74 2c 69 74 2c 22 6f |,indexLi|st,it,"o|
|00002560| 6e 65 22 2c 67 59 28 31 | 33 32 29 2c 67 58 28 31 |ne",gY(1|32),gX(1|
|00002570| 31 31 29 0d 69 66 20 6c | 69 6e 65 20 31 20 6f 66 |11).if l|ine 1 of|
|00002580| 20 74 68 65 20 72 65 73 | 75 6c 74 20 3d 20 32 20 | the res|ult = 2 |
|00002590| 74 68 65 6e 20 65 78 69 | 74 20 73 65 6c 65 63 74 |then exi|t select|
|000025a0| 46 72 6f 6d 49 6e 64 65 | 78 0d 65 6c 73 65 20 69 |FromInde|x.else i|
|000025b0| 66 20 6c 69 6e 65 20 31 | 20 6f 66 20 74 68 65 20 |f line 1| of the |
|000025c0| 72 65 73 75 6c 74 20 3d | 20 35 20 74 68 65 6e 20 |result =| 5 then |
|000025d0| 67 6f 20 63 64 20 22 69 | 6e 64 65 78 22 0d 65 6c |go cd "i|ndex".el|
|000025e0| 73 65 20 69 66 20 6c 69 | 6e 65 20 31 20 6f 66 20 |se if li|ne 1 of |
|000025f0| 74 68 65 20 72 65 73 75 | 6c 74 20 3d 20 36 20 74 |the resu|lt = 6 t|
|00002600| 68 65 6e 20 67 6f 20 63 | 64 20 22 70 72 65 66 73 |hen go c|d "prefs|
|00002610| 22 0d 65 6c 73 65 20 67 | 6f 20 63 64 20 69 64 20 |".else g|o cd id |
|00002620| 28 6c 69 6e 65 20 28 6c | 69 6e 65 20 32 20 6f 66 |(line (l|ine 2 of|
|00002630| 20 74 68 65 20 72 65 73 | 75 6c 74 29 20 6f 66 20 | the res|ult) of |
|00002640| 63 61 72 64 49 44 4c 69 | 73 74 29 0d 65 6e 64 20 |cardIDLi|st).end |
|00002650| 73 65 6c 65 63 74 46 72 | 6f 6d 49 6e 64 65 78 0d |selectFr|omIndex.|
|00002660| 0d 6f 6e 20 69 6e 64 65 | 78 53 74 61 63 6b 0d 67 |.on inde|xStack.g|
|00002670| 6c 6f 62 61 6c 20 69 6e | 64 65 78 65 64 2c 69 6e |lobal in|dexed,in|
|00002680| 64 65 78 4c 69 73 74 2c | 63 61 72 64 49 44 4c 69 |dexList,|cardIDLi|
|00002690| 73 74 0d 69 66 20 74 68 | 65 20 73 68 6f 72 74 20 |st.if th|e short |
|000026a0| 69 64 20 6f 66 20 74 68 | 69 73 20 63 64 20 3d 20 |id of th|is cd = |
|000026b0| 32 32 39 32 20 74 68 65 | 6e 20 70 75 74 20 22 22 |2292 the|n put ""|
|000026c0| 20 69 6e 74 6f 20 63 64 | 20 66 6c 64 20 22 49 6e | into cd| fld "In|
|000026d0| 64 65 78 22 0d 73 65 74 | 20 63 75 72 73 6f 72 20 |dex".set| cursor |
|000026e0| 74 6f 20 49 6e 64 65 78 | 0d 6c 6f 63 6b 20 73 63 |to Index|.lock sc|
|000026f0| 72 65 65 6e 0d 70 75 73 | 68 20 63 64 0d 6c 6f 63 |reen.pus|h cd.loc|
|00002700| 6b 20 6d 65 73 73 61 67 | 65 73 0d 67 6f 20 63 64 |k messag|es.go cd|
|00002710| 20 22 69 6e 64 65 78 22 | 0d 70 75 74 20 22 22 20 | "index"|.put "" |
|00002720| 69 6e 74 6f 20 69 6e 64 | 65 78 4c 69 73 74 0d 70 |into ind|exList.p|
|00002730| 75 74 20 22 22 20 69 6e | 74 6f 20 63 64 20 66 6c |ut "" in|to cd fl|
|00002740| 64 20 22 49 6e 64 65 78 | 22 0d 70 75 74 20 22 22 |d "Index|".put ""|
|00002750| 20 69 6e 74 6f 20 63 68 | 61 72 43 6f 75 6e 74 4c | into ch|arCountL|
|00002760| 69 73 74 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 |ist.put |"" into |
|00002770| 63 64 20 66 6c 64 20 22 | 63 68 61 72 43 6f 75 6e |cd fld "|charCoun|
|00002780| 74 4c 69 73 74 22 0d 70 | 75 74 20 22 22 20 69 6e |tList".p|ut "" in|
|00002790| 74 6f 20 6c 61 73 74 53 | 61 76 65 64 4c 69 73 74 |to lastS|avedList|
|000027a0| 0d 70 75 74 20 22 22 20 | 69 6e 74 6f 20 63 64 20 |.put "" |into cd |
|000027b0| 66 6c 64 20 22 6c 61 73 | 74 53 61 76 65 64 4c 69 |fld "las|tSavedLi|
|000027c0| 73 74 22 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 |st".put |"" into |
|000027d0| 63 61 72 64 49 44 4c 69 | 73 74 0d 70 75 74 20 22 |cardIDLi|st.put "|
|000027e0| 22 20 69 6e 74 6f 20 63 | 64 20 66 6c 64 20 22 63 |" into c|d fld "c|
|000027f0| 61 72 64 49 44 4c 69 73 | 74 22 0d 67 6f 20 66 69 |ardIDLis|t".go fi|
|00002800| 72 73 74 20 63 64 20 6f | 66 20 62 67 20 22 45 64 |rst cd o|f bg "Ed|
|00002810| 69 74 6f 72 22 0d 70 75 | 74 20 6e 75 6d 62 65 72 |itor".pu|t number|
|00002820| 28 63 64 73 20 69 6e 20 | 74 68 69 73 20 62 67 29 |(cds in |this bg)|
|00002830| 20 69 6e 74 6f 20 65 6e | 64 4f 70 0d 69 66 20 65 | into en|dOp.if e|
|00002840| 6e 64 4f 70 20 3e 20 33 | 0d 74 68 65 6e 20 70 72 |ndOp > 3|.then pr|
|00002850| 6f 67 72 65 73 73 57 69 | 6e 64 6f 77 20 22 a9 44 |ogressWi|ndow ".D|
|00002860| 6f 6d 65 22 2c 22 50 72 | 6f 67 72 65 73 73 22 2c |ome","Pr|ogress",|
|00002870| 22 49 6e 64 65 78 69 6e | 67 20 64 6f 63 75 6d 65 |"Indexin|g docume|
|00002880| 6e 74 73 c9 22 26 72 65 | 74 75 72 6e 26 22 54 79 |nts."&re|turn&"Ty|
|00002890| 70 65 20 11 2d 2e 20 74 | 6f 20 68 61 6c 74 20 70 |pe .-. t|o halt p|
|000028a0| 72 6f 63 65 73 73 69 6e | 67 2e 22 2c 34 31 33 30 |rocessin|g.",4130|
|000028b0| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|000028c0| 20 31 20 74 6f 20 65 6e | 64 4f 70 0d 67 6f 20 63 | 1 to en|dOp.go c|
|000028d0| 64 20 69 20 6f 66 20 74 | 68 69 73 20 62 67 0d 70 |d i of t|his bg.p|
|000028e0| 75 74 20 74 68 65 20 73 | 68 6f 72 74 20 69 64 20 |ut the s|hort id |
|000028f0| 6f 66 20 74 68 69 73 20 | 63 64 26 72 65 74 75 72 |of this |cd&retur|
|00002900| 6e 20 61 66 74 65 72 20 | 63 61 72 64 49 44 4c 69 |n after |cardIDLi|
|00002910| 73 74 0d 70 75 74 20 66 | 6c 64 20 22 74 69 74 6c |st.put f|ld "titl|
|00002920| 65 22 26 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 |e"&retur|n after |
|00002930| 69 6e 64 65 78 4c 69 73 | 74 0d 70 75 74 20 6e 75 |indexLis|t.put nu|
|00002940| 6d 62 65 72 28 63 68 61 | 72 73 20 69 6e 20 66 6c |mber(cha|rs in fl|
|00002950| 64 20 69 64 20 31 29 2b | 6e 75 6d 62 65 72 28 63 |d id 1)+|number(c|
|00002960| 68 61 72 73 20 69 6e 20 | 66 6c 64 20 69 64 20 32 |hars in |fld id 2|
|00002970| 29 2b 6e 75 6d 62 65 72 | 28 63 68 61 72 73 20 69 |)+number|(chars i|
|00002980| 6e 20 66 6c 64 20 69 64 | 20 33 29 26 c2 0d 22 20 |n fld id| 3)&.." |
|00002990| 63 68 61 72 73 22 26 72 | 65 74 75 72 6e 20 61 66 |chars"&r|eturn af|
|000029a0| 74 65 72 20 63 68 61 72 | 43 6f 75 6e 74 4c 69 73 |ter char|CountLis|
|000029b0| 74 0d 69 66 20 66 6c 64 | 20 69 64 20 31 30 20 ad |t.if fld| id 10 .|
|000029c0| 20 22 22 20 74 68 65 6e | 20 67 65 74 20 66 6c 64 | "" then| get fld|
|000029d0| 20 69 64 20 31 30 20 65 | 6c 73 65 20 67 65 74 20 | id 10 e|lse get |
|000029e0| 22 6e 6f 74 20 73 61 76 | 65 64 22 0d 70 75 74 20 |"not sav|ed".put |
|000029f0| 69 74 26 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 |it&retur|n after |
|00002a00| 6c 61 73 74 53 61 76 65 | 64 4c 69 73 74 0d 69 66 |lastSave|dList.if|
|00002a10| 20 76 69 7a 28 22 50 72 | 6f 67 72 65 73 73 22 29 | viz("Pr|ogress")|
|00002a20| 20 74 68 65 6e 20 73 65 | 74 20 74 68 65 50 65 72 | then se|t thePer|
|00002a30| 63 65 6e 74 20 6f 66 20 | 77 69 6e 64 6f 77 20 22 |cent of |window "|
|00002a40| 50 72 6f 67 72 65 73 73 | 22 20 74 6f 20 28 69 2f |Progress|" to (i/|
|00002a50| 65 6e 64 4f 70 29 2a 31 | 30 30 0d 65 6e 64 20 72 |endOp)*1|00.end r|
|00002a60| 65 70 65 61 74 0d 67 6f | 20 63 64 20 69 64 20 32 |epeat.go| cd id 2|
|00002a70| 32 39 32 0d 69 66 20 6c | 61 73 74 20 63 68 61 72 |292.if l|ast char|
|00002a80| 20 6f 66 20 69 6e 64 65 | 78 4c 69 73 74 20 3d 20 | of inde|xList = |
|00002a90| 72 65 74 75 72 6e 20 74 | 68 65 6e 20 64 65 6c 65 |return t|hen dele|
|00002aa0| 74 65 20 6c 61 73 74 20 | 63 68 61 72 20 6f 66 20 |te last |char of |
|00002ab0| 69 6e 64 65 78 4c 69 73 | 74 0d 70 75 74 20 69 6e |indexLis|t.put in|
|00002ac0| 64 65 78 4c 69 73 74 20 | 69 6e 74 6f 20 63 64 20 |dexList |into cd |
|00002ad0| 66 6c 64 20 22 49 6e 64 | 65 78 22 0d 70 75 74 20 |fld "Ind|ex".put |
|00002ae0| 72 65 74 75 72 6e 20 61 | 66 74 65 72 20 69 6e 64 |return a|fter ind|
|00002af0| 65 78 4c 69 73 74 0d 70 | 75 74 20 63 61 72 64 49 |exList.p|ut cardI|
|00002b00| 44 4c 69 73 74 20 69 6e | 74 6f 20 63 64 20 66 6c |DList in|to cd fl|
|00002b10| 64 20 22 63 61 72 64 49 | 44 4c 69 73 74 22 0d 70 |d "cardI|DList".p|
|00002b20| 75 74 20 63 68 61 72 43 | 6f 75 6e 74 4c 69 73 74 |ut charC|ountList|
|00002b30| 20 69 6e 74 6f 20 63 64 | 20 66 6c 64 20 22 63 68 | into cd| fld "ch|
|00002b40| 61 72 43 6f 75 6e 74 4c | 69 73 74 22 0d 70 75 74 |arCountL|ist".put|
|00002b50| 20 6c 61 73 74 53 61 76 | 65 64 4c 69 73 74 20 69 | lastSav|edList i|
|00002b60| 6e 74 6f 20 63 64 20 66 | 6c 64 20 22 6c 61 73 74 |nto cd f|ld "last|
|00002b70| 53 61 76 65 64 4c 69 73 | 74 22 0d 69 66 20 76 69 |SavedLis|t".if vi|
|00002b80| 7a 28 22 50 72 6f 67 72 | 65 73 73 22 29 20 74 68 |z("Progr|ess") th|
|00002b90| 65 6e 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |en close| window |
|00002ba0| 22 50 72 6f 67 72 65 73 | 73 22 0d 73 65 74 49 6e |"Progres|s".setIn|
|00002bb0| 64 65 78 65 64 20 54 52 | 55 45 0d 70 6f 70 20 63 |dexed TR|UE.pop c|
|00002bc0| 64 0d 75 6e 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |d.unlock| screen.|
|00002bd0| 65 6e 64 20 69 6e 64 65 | 78 53 74 61 63 6b 0d 0d |end inde|xStack..|
|00002be0| 2d 2d 20 a5 20 48 54 4d | 4c 20 43 6f 64 69 6e 67 |-- . HTM|L Coding|
|00002bf0| 0d 0d 6f 6e 20 48 54 4d | 4c 41 64 64 72 65 73 73 |..on HTM|LAddress|
|00002c00| 0d 69 66 20 65 6d 70 74 | 79 53 65 6c 65 63 74 69 |.if empt|ySelecti|
|00002c10| 6f 6e 28 29 20 74 68 65 | 6e 20 65 78 69 74 20 48 |on() the|n exit H|
|00002c20| 54 4d 4c 41 64 64 72 65 | 73 73 20 65 6c 73 65 20 |TMLAddre|ss else |
|00002c30| 73 65 74 55 6e 64 6f 0d | 70 75 74 20 74 68 65 20 |setUndo.|put the |
|00002c40| 73 65 6c 65 63 74 69 6f | 6e 20 69 6e 74 6f 20 74 |selectio|n into t|
|00002c50| 68 65 54 65 78 74 0d 70 | 75 74 20 74 68 65 20 6e |heText.p|ut the n|
|00002c60| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 6f |umber of| lines o|
|00002c70| 66 20 74 68 65 54 65 78 | 74 20 69 6e 74 6f 20 6e |f theTex|t into n|
|00002c80| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|00002c90| 20 31 20 74 6f 20 6e 0d | 70 75 74 20 22 3c 50 3e | 1 to n.|put "<P>|
|00002ca0| 22 20 61 66 74 65 72 20 | 6c 69 6e 65 20 69 20 6f |" after |line i o|
|00002cb0| 66 20 74 68 65 54 65 78 | 74 0d 65 6e 64 20 72 65 |f theTex|t.end re|
|00002cc0| 70 65 61 74 0d 69 66 20 | 6c 61 73 74 20 63 68 61 |peat.if |last cha|
|00002cd0| 72 20 6f 66 20 74 68 65 | 54 65 78 74 20 ad 20 72 |r of the|Text . r|
|00002ce0| 65 74 75 72 6e 20 74 68 | 65 6e 20 70 75 74 20 72 |eturn th|en put r|
|00002cf0| 65 74 75 72 6e 20 61 66 | 74 65 72 20 74 68 65 54 |eturn af|ter theT|
|00002d00| 65 78 74 0d 70 75 74 20 | 22 3c 41 44 44 52 45 53 |ext.put |"<ADDRES|
|00002d10| 53 3e 22 26 72 65 74 75 | 72 6e 26 74 68 65 54 65 |S>"&retu|rn&theTe|
|00002d20| 78 74 26 22 3c 2f 41 44 | 44 52 45 53 53 3e 22 20 |xt&"</AD|DRESS>" |
|00002d30| 69 6e 74 6f 20 74 68 65 | 20 73 65 6c 65 63 74 69 |into the| selecti|
|00002d40| 6f 6e 0d 65 6e 64 20 48 | 54 4d 4c 41 64 64 72 65 |on.end H|TMLAddre|
|00002d50| 73 73 0d 0d 6f 6e 20 48 | 54 4d 4c 42 6c 6f 63 6b |ss..on H|TMLBlock|
|00002d60| 71 75 6f 74 65 0d 69 66 | 20 65 6d 70 74 79 53 65 |quote.if| emptySe|
|00002d70| 6c 65 63 74 69 6f 6e 28 | 29 20 74 68 65 6e 20 65 |lection(|) then e|
|00002d80| 78 69 74 20 48 54 4d 4c | 42 6c 6f 63 6b 71 75 6f |xit HTML|Blockquo|
|00002d90| 74 65 20 65 6c 73 65 20 | 73 65 74 55 6e 64 6f 0d |te else |setUndo.|
|00002da0| 70 75 74 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f |put the |selectio|
|00002db0| 6e 20 69 6e 74 6f 20 74 | 68 65 54 65 78 74 0d 69 |n into t|heText.i|
|00002dc0| 66 20 6c 61 73 74 20 63 | 68 61 72 20 6f 66 20 74 |f last c|har of t|
|00002dd0| 68 65 54 65 78 74 20 ad | 20 72 65 74 75 72 6e 20 |heText .| return |
|00002de0| 74 68 65 6e 20 70 75 74 | 20 72 65 74 75 72 6e 20 |then put| return |
|00002df0| 61 66 74 65 72 20 74 68 | 65 54 65 78 74 0d 70 75 |after th|eText.pu|
|00002e00| 74 20 22 3c 42 4c 4f 43 | 4b 51 55 4f 54 45 3e 22 |t "<BLOC|KQUOTE>"|
|00002e10| 26 72 65 74 75 72 6e 26 | 74 68 65 54 65 78 74 26 |&return&|theText&|
|00002e20| 22 3c 2f 42 4c 4f 43 4b | 51 55 4f 54 45 3e 22 20 |"</BLOCK|QUOTE>" |
|00002e30| 69 6e 74 6f 20 74 68 65 | 20 73 65 6c 65 63 74 69 |into the| selecti|
|00002e40| 6f 6e 0d 65 6e 64 20 48 | 54 4d 4c 42 6c 6f 63 6b |on.end H|TMLBlock|
|00002e50| 71 75 6f 74 65 0d 0d 6f | 6e 20 48 54 4d 4c 43 6f |quote..o|n HTMLCo|
|00002e60| 6d 6d 65 6e 74 0d 69 66 | 20 65 6d 70 74 79 53 65 |mment.if| emptySe|
|00002e70| 6c 65 63 74 69 6f 6e 28 | 29 20 74 68 65 6e 20 65 |lection(|) then e|
|00002e80| 78 69 74 20 48 54 4d 4c | 43 6f 6d 6d 65 6e 74 20 |xit HTML|Comment |
|00002e90| 65 6c 73 65 20 73 65 74 | 55 6e 64 6f 0d 70 75 74 |else set|Undo.put|
|00002ea0| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 20 69 | the sel|ection i|
|00002eb0| 6e 74 6f 20 74 68 65 54 | 65 78 74 0d 70 75 74 20 |nto theT|ext.put |
|00002ec0| 77 6f 72 64 20 32 20 6f | 66 20 74 68 65 20 73 65 |word 2 o|f the se|
|00002ed0| 6c 65 63 74 65 64 4c 69 | 6e 65 20 69 6e 74 6f 20 |lectedLi|ne into |
|00002ee0| 63 75 72 72 65 6e 74 4c | 69 6e 65 0d 70 75 74 20 |currentL|ine.put |
|00002ef0| 6c 69 6e 65 20 63 75 72 | 72 65 6e 74 4c 69 6e 65 |line cur|rentLine|
|00002f00| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 69 | of the |target i|
|00002f10| 6e 74 6f 20 6c 69 6e 65 | 54 65 78 74 0d 72 65 70 |nto line|Text.rep|
|00002f20| 65 61 74 20 77 69 74 68 | 20 69 20 3d 20 31 20 74 |eat with| i = 1 t|
|00002f30| 6f 20 6e 75 6d 62 65 72 | 28 6c 69 6e 65 73 20 69 |o number|(lines i|
|00002f40| 6e 20 74 68 65 20 74 61 | 72 67 65 74 29 20 2b 20 |n the ta|rget) + |
|00002f50| 31 0d 69 66 20 6c 69 6e | 65 20 69 20 6f 66 20 74 |1.if lin|e i of t|
|00002f60| 68 65 20 74 61 72 67 65 | 74 20 3d 20 22 22 20 74 |he targe|t = "" t|
|00002f70| 68 65 6e 20 6e 65 78 74 | 20 72 65 70 65 61 74 0d |hen next| repeat.|
|00002f80| 69 66 20 63 68 61 72 20 | 31 20 74 6f 20 34 20 6f |if char |1 to 4 o|
|00002f90| 66 20 6c 69 6e 65 20 69 | 20 6f 66 20 74 68 65 20 |f line i| of the |
|00002fa0| 74 61 72 67 65 74 20 ad | 20 22 3c 21 2d 2d 22 20 |target .| "<!--" |
|00002fb0| 74 68 65 6e 20 70 75 74 | 20 22 3c 21 2d 2d 20 22 |then put| "<!-- "|
|00002fc0| 20 62 65 66 6f 72 65 20 | 6c 69 6e 65 20 69 20 6f | before |line i o|
|00002fd0| 66 20 74 68 65 20 74 61 | 72 67 65 74 0d 69 66 20 |f the ta|rget.if |
|00002fe0| 6c 61 73 74 20 63 68 61 | 72 20 6f 66 20 6c 69 6e |last cha|r of lin|
|00002ff0| 65 20 69 20 6f 66 20 74 | 68 65 20 74 61 72 67 65 |e i of t|he targe|
|00003000| 74 20 ad 20 22 3e 22 20 | 74 68 65 6e 20 70 75 74 |t . ">" |then put|
|00003010| 20 22 20 3e 22 20 61 66 | 74 65 72 20 6c 69 6e 65 | " >" af|ter line|
|00003020| 20 69 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 | i of th|e target|
|00003030| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 69 66 20 63 |.end rep|eat.if c|
|00003040| 75 72 72 65 6e 74 4c 69 | 6e 65 20 3e 20 30 20 74 |urrentLi|ne > 0 t|
|00003050| 68 65 6e 20 64 6f 20 22 | 73 65 6c 65 63 74 20 61 |hen do "|select a|
|00003060| 66 74 65 72 20 6c 69 6e | 65 22 26 26 63 75 72 72 |fter lin|e"&&curr|
|00003070| 65 6e 74 4c 69 6e 65 26 | 26 22 6f 66 20 74 68 65 |entLine&|&"of the|
|00003080| 20 74 61 72 67 65 74 22 | 0d 65 6e 64 20 48 54 4d | target"|.end HTM|
|00003090| 4c 43 6f 6d 6d 65 6e 74 | 0d 0d 6f 6e 20 48 54 4d |LComment|..on HTM|
|000030a0| 4c 44 61 74 65 20 64 61 | 74 65 46 6f 72 6d 61 74 |LDate da|teFormat|
|000030b0| 0d 67 65 74 20 22 7b 22 | 26 64 61 74 65 46 6f 72 |.get "{"|&dateFor|
|000030c0| 6d 61 74 26 22 7d 22 0d | 69 66 20 22 66 69 65 6c |mat&"}".|if "fiel|
|000030d0| 64 22 20 69 73 20 69 6e | 20 74 68 65 20 73 65 6c |d" is in| the sel|
|000030e0| 65 63 74 65 64 43 68 75 | 6e 6b 20 74 68 65 6e 0d |ectedChu|nk then.|
|000030f0| 69 66 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |if the s|election|
|00003100| 20 3d 20 22 22 20 74 68 | 65 6e 20 74 79 70 65 20 | = "" th|en type |
|00003110| 69 74 0d 65 6c 73 65 20 | 70 75 74 20 69 74 20 69 |it.else |put it i|
|00003120| 6e 74 6f 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f |nto the |selectio|
|00003130| 6e 0d 65 6c 73 65 20 61 | 6e 73 77 65 72 20 22 59 |n.else a|nswer "Y|
|00003140| 6f 75 20 6d 75 73 74 20 | 73 65 6c 65 63 74 20 73 |ou must |select s|
|00003150| 6f 6d 65 20 74 65 78 74 | 20 6f 72 20 70 6c 61 63 |ome text| or plac|
|00003160| 65 20 74 68 65 20 69 6e | 73 65 72 74 69 6f 6e 20 |e the in|sertion |
|00003170| 70 6f 69 6e 74 20 69 6e | 74 6f 20 61 6e 20 65 64 |point in|to an ed|
|00003180| 69 74 6f 72 20 66 69 65 | 6c 64 20 66 6f 72 20 74 |itor fie|ld for t|
|00003190| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |his func|tion to |
|000031a0| 77 6f 72 6b 2e 22 20 77 | 69 74 68 20 22 43 61 6e |work." w|ith "Can|
|000031b0| 63 65 6c 22 0d 65 6e 64 | 20 48 54 4d 4c 44 61 74 |cel".end| HTMLDat|
|000031c0| 65 0d 0d 6f 6e 20 48 54 | 4d 4c 45 6e 74 69 74 79 |e..on HT|MLEntity|
|000031d0| 0d 67 6c 6f 62 61 6c 20 | 65 6e 74 69 74 69 65 73 |.global |entities|
|000031e0| 0d 69 66 20 6c 65 6e 67 | 74 68 28 74 68 65 20 73 |.if leng|th(the s|
|000031f0| 65 6c 65 63 74 69 6f 6e | 29 20 3d 20 30 20 74 68 |election|) = 0 th|
|00003200| 65 6e 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |en.if th|ere is a|
|00003210| 20 77 69 6e 64 6f 77 20 | 22 45 6e 74 69 74 69 65 | window |"Entitie|
|00003220| 73 22 20 74 68 65 6e 20 | 73 68 6f 77 20 77 69 6e |s" then |show win|
|00003230| 64 6f 77 20 22 45 6e 74 | 69 74 69 65 73 22 0d 65 |dow "Ent|ities".e|
|00003240| 6c 73 65 20 70 69 63 74 | 75 72 65 20 22 45 6e 74 |lse pict|ure "Ent|
|00003250| 69 74 69 65 73 22 2c 72 | 65 73 6f 75 72 63 65 2c |ities",r|esource,|
|00003260| 70 6c 61 69 6e 0d 65 6c | 73 65 20 69 66 20 6c 65 |plain.el|se if le|
|00003270| 6e 67 74 68 28 74 68 65 | 20 73 65 6c 65 63 74 69 |ngth(the| selecti|
|00003280| 6f 6e 29 20 3e 20 6c 65 | 6e 67 74 68 28 65 6e 74 |on) > le|ngth(ent|
|00003290| 69 74 69 65 73 29 20 74 | 68 65 6e 0d 73 65 74 55 |ities) t|hen.setU|
|000032a0| 6e 64 6f 0d 73 65 74 20 | 63 75 72 73 6f 72 20 74 |ndo.set |cursor t|
|000032b0| 6f 20 77 61 74 63 68 0d | 67 65 74 20 74 68 65 20 |o watch.|get the |
|000032c0| 73 65 6c 65 63 74 69 6f | 6e 0d 70 75 74 20 6e 75 |selectio|n.put nu|
|000032d0| 6d 62 65 72 28 63 68 61 | 72 73 20 69 6e 20 65 6e |mber(cha|rs in en|
|000032e0| 74 69 74 69 65 73 29 20 | 69 6e 74 6f 20 65 6e 64 |tities) |into end|
|000032f0| 4f 70 0d 70 72 6f 67 72 | 65 73 73 57 69 6e 64 6f |Op.progr|essWindo|
|00003300| 77 20 22 a9 44 6f 6d 65 | 22 2c 22 50 72 6f 67 72 |w ".Dome|","Progr|
|00003310| 65 73 73 22 2c 22 52 65 | 70 6c 61 63 69 6e 67 20 |ess","Re|placing |
|00003320| 49 53 4f 20 4c 61 74 69 | 6e 20 45 6e 74 69 74 69 |ISO Lati|n Entiti|
|00003330| 65 73 c9 22 26 72 65 74 | 75 72 6e 26 22 54 79 70 |es."&ret|urn&"Typ|
|00003340| 65 20 11 2d 2e 20 74 6f | 20 68 61 6c 74 20 70 72 |e .-. to| halt pr|
|00003350| 6f 63 65 73 73 69 6e 67 | 2e 22 2c 34 31 33 30 0d |ocessing|.",4130.|
|00003360| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|00003370| 31 20 74 6f 20 65 6e 64 | 4f 70 0d 70 75 74 20 63 |1 to end|Op.put c|
|00003380| 68 61 72 20 69 20 6f 66 | 20 65 6e 74 69 74 69 65 |har i of| entitie|
|00003390| 73 20 69 6e 74 6f 20 73 | 72 63 0d 67 65 74 20 72 |s into s|rc.get r|
|000033a0| 65 70 28 69 74 2c 73 72 | 63 2c 65 6e 74 32 48 54 |ep(it,sr|c,ent2HT|
|000033b0| 4d 4c 28 73 72 63 29 29 | 0d 69 66 20 69 20 6d 6f |ML(src))|.if i mo|
|000033c0| 64 20 35 20 3d 20 30 20 | 61 6e 64 20 76 69 7a 28 |d 5 = 0 |and viz(|
|000033d0| 22 50 72 6f 67 72 65 73 | 73 22 29 20 74 68 65 6e |"Progres|s") then|
|000033e0| 20 73 65 74 20 74 68 65 | 50 65 72 63 65 6e 74 20 | set the|Percent |
|000033f0| 6f 66 20 77 69 6e 64 6f | 77 20 22 50 72 6f 67 72 |of windo|w "Progr|
|00003400| 65 73 73 22 20 74 6f 20 | 28 69 2f 65 6e 64 4f 70 |ess" to |(i/endOp|
|00003410| 29 2a 31 30 30 0d 65 6e | 64 20 72 65 70 65 61 74 |)*100.en|d repeat|
|00003420| 0d 69 66 20 76 69 7a 28 | 22 50 72 6f 67 72 65 73 |.if viz(|"Progres|
|00003430| 73 22 29 20 74 68 65 6e | 20 63 6c 6f 73 65 20 77 |s") then| close w|
|00003440| 69 6e 64 6f 77 20 22 50 | 72 6f 67 72 65 73 73 22 |indow "P|rogress"|
|00003450| 0d 62 69 6e 6b 0d 65 6c | 73 65 0d 73 65 74 55 6e |.bink.el|se.setUn|
|00003460| 64 6f 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f |do.set c|ursor to|
|00003470| 20 77 61 74 63 68 0d 67 | 65 74 20 22 22 0d 70 75 | watch.g|et "".pu|
|00003480| 74 20 6c 65 6e 67 74 68 | 28 74 68 65 20 73 65 6c |t length|(the sel|
|00003490| 65 63 74 69 6f 6e 29 20 | 69 6e 74 6f 20 65 6e 64 |ection) |into end|
|000034a0| 4f 70 0d 69 66 20 65 6e | 64 4f 70 20 3e 20 33 30 |Op.if en|dOp > 30|
|000034b0| 0d 74 68 65 6e 20 70 72 | 6f 67 72 65 73 73 57 69 |.then pr|ogressWi|
|000034c0| 6e 64 6f 77 20 22 a9 44 | 6f 6d 65 22 2c 22 50 72 |ndow ".D|ome","Pr|
|000034d0| 6f 67 72 65 73 73 22 2c | 22 53 63 61 6e 6e 69 6e |ogress",|"Scannin|
|000034e0| 67 20 66 6f 72 20 49 53 | 4f 20 4c 61 74 69 6e 20 |g for IS|O Latin |
|000034f0| 45 6e 74 69 74 69 65 73 | c9 22 26 72 65 74 75 72 |Entities|."&retur|
|00003500| 6e 26 22 54 79 70 65 20 | 11 2d 2e 20 74 6f 20 68 |n&"Type |.-. to h|
|00003510| 61 6c 74 20 70 72 6f 63 | 65 73 73 69 6e 67 2e 22 |alt proc|essing."|
|00003520| 2c 34 31 33 30 0d 72 65 | 70 65 61 74 20 77 69 74 |,4130.re|peat wit|
|00003530| 68 20 69 20 3d 20 31 20 | 74 6f 20 65 6e 64 4f 70 |h i = 1 |to endOp|
|00003540| 0d 70 75 74 20 65 6e 74 | 32 48 54 4d 4c 28 63 68 |.put ent|2HTML(ch|
|00003550| 61 72 20 69 20 6f 66 20 | 74 68 65 20 73 65 6c 65 |ar i of |the sele|
|00003560| 63 74 69 6f 6e 29 20 61 | 66 74 65 72 20 69 74 0d |ction) a|fter it.|
|00003570| 69 66 20 69 20 6d 6f 64 | 20 31 30 20 3d 20 30 20 |if i mod| 10 = 0 |
|00003580| 61 6e 64 20 76 69 7a 28 | 22 50 72 6f 67 72 65 73 |and viz(|"Progres|
|00003590| 73 22 29 20 74 68 65 6e | 20 73 65 74 20 74 68 65 |s") then| set the|
|000035a0| 50 65 72 63 65 6e 74 20 | 6f 66 20 77 69 6e 64 6f |Percent |of windo|
|000035b0| 77 20 22 50 72 6f 67 72 | 65 73 73 22 20 74 6f 20 |w "Progr|ess" to |
|000035c0| 28 69 2f 65 6e 64 4f 70 | 29 2a 31 30 30 0d 65 6e |(i/endOp|)*100.en|
|000035d0| 64 20 72 65 70 65 61 74 | 0d 70 75 74 20 69 74 20 |d repeat|.put it |
|000035e0| 69 6e 74 6f 20 74 68 65 | 20 73 65 6c 65 63 74 69 |into the| selecti|
|000035f0| 6f 6e 0d 69 66 20 76 69 | 7a 28 22 50 72 6f 67 72 |on.if vi|z("Progr|
|00003600| 65 73 73 22 29 20 74 68 | 65 6e 20 63 6c 6f 73 65 |ess") th|en close|
|00003610| 20 77 69 6e 64 6f 77 20 | 22 50 72 6f 67 72 65 73 | window |"Progres|
|00003620| 73 22 0d 62 69 6e 6b 0d | 65 6e 64 20 69 66 0d 65 |s".bink.|end if.e|
|00003630| 6e 64 20 48 54 4d 4c 45 | 6e 74 69 74 79 0d 0d 6f |nd HTMLE|ntity..o|
|00003640| 6e 20 73 65 6c 65 63 74 | 45 6e 74 69 74 79 0d 67 |n select|Entity.g|
|00003650| 6c 6f 62 61 6c 20 63 68 | 61 72 45 6e 74 69 74 79 |lobal ch|arEntity|
|00003660| 4d 61 70 0d 69 66 20 63 | 68 61 72 45 6e 74 69 74 |Map.if c|harEntit|
|00003670| 79 4d 61 70 20 3d 20 22 | 22 20 74 68 65 6e 20 73 |yMap = "|" then s|
|00003680| 65 6e 64 20 73 65 74 45 | 6e 74 69 74 69 65 73 20 |end setE|ntities |
|00003690| 74 6f 20 63 64 20 69 64 | 20 32 32 39 32 20 2d 2d |to cd id| 2292 --|
|000036a0| 20 63 72 65 61 74 65 20 | 65 6e 74 69 74 79 20 74 | create |entity t|
|000036b0| 61 62 6c 65 0d 69 66 20 | 74 68 65 72 65 20 69 73 |able.if |there is|
|000036c0| 20 61 20 77 69 6e 64 6f | 77 20 22 45 6e 74 69 74 | a windo|w "Entit|
|000036d0| 69 65 73 22 20 74 68 65 | 6e 0d 70 75 74 20 72 6f |ies" the|n.put ro|
|000036e0| 75 6e 64 28 28 69 74 65 | 6d 20 31 20 6f 66 20 74 |und((ite|m 1 of t|
|000036f0| 68 65 20 63 6c 69 63 6b | 4c 6f 63 2d 69 74 65 6d |he click|Loc-item|
|00003700| 20 31 20 6f 66 20 74 68 | 65 20 6c 6f 63 20 6f 66 | 1 of th|e loc of|
|00003710| 20 77 69 6e 64 6f 77 20 | 22 45 6e 74 69 74 69 65 | window |"Entitie|
|00003720| 73 22 29 20 64 69 76 20 | 32 34 29 2b 31 20 69 6e |s") div |24)+1 in|
|00003730| 74 6f 20 63 6f 6c 0d 70 | 75 74 20 72 6f 75 6e 64 |to col.p|ut round|
|00003740| 28 28 28 28 69 74 65 6d | 20 32 20 6f 66 20 74 68 |((((item| 2 of th|
|00003750| 65 20 63 6c 69 63 6b 4c | 6f 63 29 20 2d 20 31 36 |e clickL|oc) - 16|
|00003760| 29 2d 69 74 65 6d 20 32 | 20 6f 66 20 74 68 65 20 |)-item 2| of the |
|00003770| 6c 6f 63 20 6f 66 20 77 | 69 6e 64 6f 77 20 22 45 |loc of w|indow "E|
|00003780| 6e 74 69 74 69 65 73 22 | 29 20 64 69 76 20 32 32 |ntities"|) div 22|
|00003790| 29 2b 31 20 69 6e 74 6f | 20 72 6f 77 0d 69 66 20 |)+1 into| row.if |
|000037a0| 72 6f 77 20 3d 20 37 20 | 61 6e 64 20 63 6f 6c 20 |row = 7 |and col |
|000037b0| 3e 20 34 20 74 68 65 6e | 20 67 65 74 20 69 74 65 |> 4 then| get ite|
|000037c0| 6d 20 28 63 6f 6c 2d 34 | 29 20 6f 66 20 22 26 6c |m (col-4|) of "&l|
|000037d0| 74 3b 2c 26 67 74 3b 2c | 26 61 6d 70 3b 2c 26 71 |t;,&gt;,|&amp;,&q|
|000037e0| 75 6f 74 3b 22 0d 65 6c | 73 65 20 67 65 74 20 65 |uot;".el|se get e|
|000037f0| 6e 74 32 48 54 4d 4c 28 | 69 74 65 6d 20 63 6f 6c |nt2HTML(|item col|
|00003800| 20 6f 66 20 6c 69 6e 65 | 20 72 6f 77 20 6f 66 20 | of line| row of |
|00003810| 63 68 61 72 45 6e 74 69 | 74 79 4d 61 70 29 0d 69 |charEnti|tyMap).i|
|00003820| 66 20 22 66 69 65 6c 64 | 22 20 69 73 20 6e 6f 74 |f "field|" is not|
|00003830| 20 69 6e 20 74 68 65 20 | 73 65 6c 65 63 74 65 64 | in the |selected|
|00003840| 43 68 75 6e 6b 20 74 68 | 65 6e 20 70 75 74 20 69 |Chunk th|en put i|
|00003850| 74 20 69 6e 74 6f 20 6d | 73 67 0d 65 6c 73 65 20 |t into m|sg.else |
|00003860| 74 79 70 65 20 69 74 0d | 65 6e 64 20 69 66 0d 65 |type it.|end if.e|
|00003870| 6e 64 20 73 65 6c 65 63 | 74 45 6e 74 69 74 79 0d |nd selec|tEntity.|
|00003880| 0d 6f 6e 20 48 54 4d 4c | 20 69 20 2d 2d 20 6d 6f |.on HTML| i -- mo|
|00003890| 64 69 66 79 20 74 65 78 | 74 20 73 65 6c 65 63 74 |dify tex|t select|
|000038a0| 69 6f 6e 20 77 69 74 68 | 20 48 54 4d 4c 20 63 6f |ion with| HTML co|
|000038b0| 64 65 73 0d 67 6c 6f 62 | 61 6c 20 68 4e 75 6d 0d |des.glob|al hNum.|
|000038c0| 73 65 74 55 6e 64 6f 0d | 70 75 74 20 74 68 65 20 |setUndo.|put the |
|000038d0| 68 69 6c 69 74 65 20 6f | 66 20 63 64 20 62 74 6e |hilite o|f cd btn|
|000038e0| 20 69 64 20 33 37 20 6f | 66 20 63 64 20 22 70 72 | id 37 o|f cd "pr|
|000038f0| 65 66 73 22 20 69 6e 74 | 6f 20 73 74 61 79 53 65 |efs" int|o staySe|
|00003900| 6c 65 63 74 65 64 0d 70 | 75 74 20 74 68 65 20 73 |lected.p|ut the s|
|00003910| 65 6c 65 63 74 65 64 43 | 68 75 6e 6b 20 69 6e 74 |electedC|hunk int|
|00003920| 6f 20 73 43 68 75 6e 6b | 0d 49 46 20 22 66 69 65 |o sChunk|.IF "fie|
|00003930| 6c 64 22 20 69 73 20 69 | 6e 20 73 43 68 75 6e 6b |ld" is i|n sChunk|
|00003940| 20 74 68 65 6e 0d 67 65 | 74 20 22 22 0d 69 66 20 | then.ge|t "".if |
|00003950| 63 68 61 72 20 31 20 6f | 66 20 69 20 3d 20 22 48 |char 1 o|f i = "H|
|00003960| 22 20 74 68 65 6e 20 2d | 2d 20 3c 48 6e 3e 0d 70 |" then -|- <Hn>.p|
|00003970| 75 74 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |ut the s|election|
|00003980| 20 69 6e 74 6f 20 74 68 | 65 54 65 78 74 0d 70 75 | into th|eText.pu|
|00003990| 74 20 6f 66 66 73 65 74 | 28 22 3c 48 22 2c 74 68 |t offset|("<H",th|
|000039a0| 65 54 65 78 74 29 20 69 | 6e 74 6f 20 73 74 61 72 |eText) i|nto star|
|000039b0| 74 48 0d 70 75 74 20 6f | 66 66 73 65 74 28 22 3c |tH.put o|ffset("<|
|000039c0| 2f 48 22 2c 74 68 65 54 | 65 78 74 29 20 69 6e 74 |/H",theT|ext) int|
|000039d0| 6f 20 65 6e 64 48 0d 69 | 66 20 73 74 61 72 74 48 |o endH.i|f startH|
|000039e0| 20 ad 20 30 20 61 6e 64 | 20 65 6e 64 48 20 ad 20 | . 0 and| endH . |
|000039f0| 30 20 74 68 65 6e 0d 70 | 75 74 20 68 4e 75 6d 20 |0 then.p|ut hNum |
|00003a00| 69 6e 74 6f 20 63 68 61 | 72 20 28 6f 66 66 73 65 |into cha|r (offse|
|00003a10| 74 28 22 3c 48 22 2c 74 | 68 65 54 65 78 74 29 2b |t("<H",t|heText)+|
|00003a20| 32 29 20 6f 66 20 74 68 | 65 54 65 78 74 0d 70 75 |2) of th|eText.pu|
|00003a30| 74 20 68 4e 75 6d 20 69 | 6e 74 6f 20 63 68 61 72 |t hNum i|nto char|
|00003a40| 20 28 6f 66 66 73 65 74 | 28 22 3c 2f 48 22 2c 74 | (offset|("</H",t|
|00003a50| 68 65 54 65 78 74 29 2b | 33 29 20 6f 66 20 74 68 |heText)+|3) of th|
|00003a60| 65 54 65 78 74 0d 70 75 | 74 20 74 68 65 54 65 78 |eText.pu|t theTex|
|00003a70| 74 20 69 6e 74 6f 20 74 | 68 65 20 73 65 6c 65 63 |t into t|he selec|
|00003a80| 74 69 6f 6e 0d 73 65 74 | 20 74 68 65 20 6e 61 6d |tion.set| the nam|
|00003a90| 65 20 6f 66 20 62 67 20 | 62 74 6e 20 69 64 20 37 |e of bg |btn id 7|
|00003aa0| 33 20 6f 66 20 63 64 20 | 31 20 6f 66 20 62 67 20 |3 of cd |1 of bg |
|00003ab0| 22 45 64 69 74 6f 72 22 | 20 74 6f 20 22 48 22 26 |"Editor"| to "H"&|
|00003ac0| 68 4e 75 6d 0d 69 66 20 | 73 74 61 79 53 65 6c 65 |hNum.if |staySele|
|00003ad0| 63 74 65 64 20 74 68 65 | 6e 0d 73 65 6c 65 63 74 |cted the|n.select|
|00003ae0| 20 73 43 68 75 6e 6b 0d | 65 6e 64 20 69 66 0d 65 | sChunk.|end if.e|
|00003af0| 6c 73 65 20 67 65 74 20 | 22 3c 48 22 26 68 4e 75 |lse get |"<H"&hNu|
|00003b00| 6d 26 22 3e 2c 3c 2f 48 | 22 26 68 4e 75 6d 26 22 |m&">,</H|"&hNum&"|
|00003b10| 3e 2c 34 22 0d 65 6c 73 | 65 20 69 66 20 69 20 3d |>,4".els|e if i =|
|00003b20| 20 22 42 6f 6c 64 22 20 | 74 68 65 6e 20 67 65 74 | "Bold" |then get|
|00003b30| 20 22 3c 42 3e 2c 3c 2f | 42 3e 2c 33 22 0d 65 6c | "<B>,</|B>,3".el|
|00003b40| 73 65 20 69 66 20 69 20 | 3d 20 22 42 6c 6f 63 6b |se if i |= "Block|
|00003b50| 71 75 6f 74 65 22 20 74 | 68 65 6e 20 67 65 74 20 |quote" t|hen get |
|00003b60| 22 3c 42 4c 4f 43 4b 51 | 55 4f 54 45 3e 2c 3c 2f |"<BLOCKQ|UOTE>,</|
|00003b70| 42 4c 4f 43 4b 51 55 4f | 54 45 3e 2c 31 32 22 0d |BLOCKQUO|TE>,12".|
|00003b80| 65 6c 73 65 20 69 66 20 | 69 20 3d 20 22 43 69 74 |else if |i = "Cit|
|00003b90| 61 74 69 6f 6e 22 20 74 | 68 65 6e 20 67 65 74 20 |ation" t|hen get |
|00003ba0| 22 3c 43 49 54 45 3e 2c | 3c 2f 43 49 54 45 3e 2c |"<CITE>,|</CITE>,|
|00003bb0| 36 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |6".else |if i = "|
|00003bc0| 43 6f 6d 6d 65 6e 74 22 | 20 74 68 65 6e 20 67 65 |Comment"| then ge|
|00003bd0| 74 20 22 3c 21 2d 2d 20 | 2c 20 3e 2c 35 22 0d 65 |t "<!-- |, >,5".e|
|00003be0| 6c 73 65 20 69 66 20 69 | 20 3d 20 22 44 65 66 69 |lse if i| = "Defi|
|00003bf0| 6e 69 74 69 6f 6e 22 20 | 74 68 65 6e 20 67 65 74 |nition" |then get|
|00003c00| 20 22 3c 44 46 4e 3e 2c | 3c 2f 44 46 4e 3e 2c 35 | "<DFN>,|</DFN>,5|
|00003c10| 22 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 22 45 |".else i|f i = "E|
|00003c20| 6d 70 68 61 73 69 73 22 | 20 74 68 65 6e 20 67 65 |mphasis"| then ge|
|00003c30| 74 20 22 3c 45 4d 3e 2c | 3c 2f 45 4d 3e 2c 34 22 |t "<EM>,|</EM>,4"|
|00003c40| 0d 65 6c 73 65 20 69 66 | 20 69 20 3d 20 22 49 74 |.else if| i = "It|
|00003c50| 61 6c 69 63 22 20 74 68 | 65 6e 20 67 65 74 20 22 |alic" th|en get "|
|00003c60| 3c 49 3e 2c 3c 2f 49 3e | 2c 33 22 0d 65 6c 73 65 |<I>,</I>|,3".else|
|00003c70| 20 69 66 20 69 20 3d 20 | 22 4b 65 79 62 6f 61 72 | if i = |"Keyboar|
|00003c80| 64 22 20 74 68 65 6e 20 | 67 65 74 20 22 3c 4b 42 |d" then |get "<KB|
|00003c90| 44 3e 2c 3c 2f 4b 42 44 | 3e 2c 35 22 0d 65 6c 73 |D>,</KBD|>,5".els|
|00003ca0| 65 20 69 66 20 69 20 3d | 20 22 4c 69 73 74 69 6e |e if i =| "Listin|
|00003cb0| 67 22 20 74 68 65 6e 20 | 67 65 74 20 22 3c 4c 49 |g" then |get "<LI|
|00003cc0| 53 54 49 4e 47 3e 2c 3c | 2f 4c 49 53 54 49 4e 47 |STING>,<|/LISTING|
|00003cd0| 3e 2c 39 22 0d 65 6c 73 | 65 20 69 66 20 69 20 3d |>,9".els|e if i =|
|00003ce0| 20 22 43 6f 64 65 22 20 | 74 68 65 6e 20 67 65 74 | "Code" |then get|
|00003cf0| 20 22 3c 43 4f 44 45 3e | 2c 3c 2f 43 4f 44 45 3e | "<CODE>|,</CODE>|
|00003d00| 2c 36 22 0d 65 6c 73 65 | 20 69 66 20 69 20 3d 20 |,6".else| if i = |
|00003d10| 22 53 61 6d 70 6c 65 22 | 20 74 68 65 6e 20 67 65 |"Sample"| then ge|
|00003d20| 74 20 22 3c 53 41 4d 50 | 3e 2c 3c 2f 53 41 4d 50 |t "<SAMP|>,</SAMP|
|00003d30| 3e 2c 36 22 0d 65 6c 73 | 65 20 69 66 20 69 20 3d |>,6".els|e if i =|
|00003d40| 20 22 53 74 72 6f 6e 67 | 20 45 6d 70 68 61 73 69 | "Strong| Emphasi|
|00003d50| 73 22 20 74 68 65 6e 20 | 67 65 74 20 22 3c 53 54 |s" then |get "<ST|
|00003d60| 52 4f 4e 47 3e 2c 3c 2f | 53 54 52 4f 4e 47 3e 2c |RONG>,</|STRONG>,|
|00003d70| 38 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |8".else |if i = "|
|00003d80| 53 74 72 69 6b 65 54 68 | 72 75 22 20 74 68 65 6e |StrikeTh|ru" then|
|00003d90| 20 67 65 74 20 22 3c 53 | 3e 2c 3c 2f 53 3e 2c 33 | get "<S|>,</S>,3|
|00003da0| 22 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 22 53 |".else i|f i = "S|
|00003db0| 75 62 73 63 72 69 70 74 | 22 20 74 68 65 6e 20 67 |ubscript|" then g|
|00003dc0| 65 74 20 22 3c 53 55 42 | 3e 2c 3c 2f 53 55 42 3e |et "<SUB|>,</SUB>|
|00003dd0| 2c 35 22 0d 65 6c 73 65 | 20 69 66 20 69 20 3d 20 |,5".else| if i = |
|00003de0| 22 53 75 70 65 72 73 63 | 72 69 70 74 22 20 74 68 |"Supersc|ript" th|
|00003df0| 65 6e 20 67 65 74 20 22 | 3c 53 55 50 3e 2c 3c 2f |en get "|<SUP>,</|
|00003e00| 53 55 50 3e 2c 35 22 0d | 65 6c 73 65 20 69 66 20 |SUP>,5".|else if |
|00003e10| 69 20 3d 20 22 54 79 70 | 65 77 72 69 74 65 72 22 |i = "Typ|ewriter"|
|00003e20| 20 74 68 65 6e 20 67 65 | 74 20 22 3c 54 54 3e 2c | then ge|t "<TT>,|
|00003e30| 3c 2f 54 54 3e 2c 34 22 | 0d 65 6c 73 65 20 69 66 |</TT>,4"|.else if|
|00003e40| 20 69 20 3d 20 22 50 72 | 65 66 6f 72 6d 61 74 74 | i = "Pr|eformatt|
|00003e50| 65 64 22 20 74 68 65 6e | 20 67 65 74 20 22 3c 50 |ed" then| get "<P|
|00003e60| 52 45 3e 2c 3c 2f 50 52 | 45 3e 2c 35 22 0d 65 6c |RE>,</PR|E>,5".el|
|00003e70| 73 65 20 69 66 20 69 20 | 3d 20 22 54 69 74 6c 65 |se if i |= "Title|
|00003e80| 22 20 74 68 65 6e 20 67 | 65 74 20 22 3c 54 49 54 |" then g|et "<TIT|
|00003e90| 4c 45 3e 2c 3c 2f 54 49 | 54 4c 45 3e 2c 37 22 0d |LE>,</TI|TLE>,7".|
|00003ea0| 65 6c 73 65 20 69 66 20 | 69 20 3d 20 22 55 6e 64 |else if |i = "Und|
|00003eb0| 65 72 6c 69 6e 65 22 20 | 74 68 65 6e 20 67 65 74 |erline" |then get|
|00003ec0| 20 22 3c 55 3e 2c 3c 2f | 55 3e 2c 33 22 0d 65 6c | "<U>,</|U>,3".el|
|00003ed0| 73 65 20 69 66 20 69 20 | 3d 20 22 56 61 72 69 61 |se if i |= "Varia|
|00003ee0| 62 6c 65 22 20 74 68 65 | 6e 20 67 65 74 20 22 3c |ble" the|n get "<|
|00003ef0| 56 41 52 3e 2c 3c 2f 56 | 41 52 3e 2c 35 22 0d 69 |VAR>,</V|AR>,5".i|
|00003f00| 66 20 69 74 20 ad 20 22 | 22 20 74 68 65 6e 20 2d |f it . "|" then -|
|00003f10| 2d 20 66 6f 75 6e 64 20 | 63 6f 64 65 2c 20 73 6f |- found |code, so|
|00003f20| 20 6d 6f 64 69 66 79 20 | 74 65 78 74 3a 0d 69 66 | modify |text:.if|
|00003f30| 20 6c 65 6e 67 74 68 28 | 74 68 65 20 73 65 6c 65 | length(|the sele|
|00003f40| 63 74 69 6f 6e 29 20 3d | 20 30 20 74 68 65 6e 0d |ction) =| 0 then.|
|00003f50| 73 65 6c 65 63 74 20 73 | 43 68 75 6e 6b 0d 70 75 |select s|Chunk.pu|
|00003f60| 74 20 77 6f 72 64 20 32 | 20 6f 66 20 73 43 68 75 |t word 2| of sChu|
|00003f70| 6e 6b 20 2b 20 69 74 65 | 6d 20 33 20 6f 66 20 69 |nk + ite|m 3 of i|
|00003f80| 74 20 69 6e 74 6f 20 63 | 0d 70 75 74 20 69 74 65 |t into c|.put ite|
|00003f90| 6d 20 31 20 6f 66 20 69 | 74 20 62 65 66 6f 72 65 |m 1 of i|t before|
|00003fa0| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 0d 70 | the sel|ection.p|
|00003fb0| 75 74 20 69 74 65 6d 20 | 32 20 6f 66 20 69 74 20 |ut item |2 of it |
|00003fc0| 61 66 74 65 72 20 74 68 | 65 20 73 65 6c 65 63 74 |after th|e select|
|00003fd0| 69 6f 6e 0d 69 66 20 73 | 74 61 79 53 65 6c 65 63 |ion.if s|taySelec|
|00003fe0| 74 65 64 20 74 68 65 6e | 0d 73 65 6c 65 63 74 20 |ted then|.select |
|00003ff0| 63 68 61 72 20 28 63 29 | 20 74 6f 20 28 63 20 2d |char (c)| to (c -|
|00004000| 20 31 29 20 6f 66 20 66 | 6c 64 20 28 6c 61 73 74 | 1) of f|ld (last|
|00004010| 20 77 6f 72 64 20 6f 66 | 20 73 43 68 75 6e 6b 29 | word of| sChunk)|
|00004020| 0d 65 6e 64 20 69 66 0d | 65 6c 73 65 0d 70 75 74 |.end if.|else.put|
|00004030| 20 69 74 65 6d 20 31 20 | 6f 66 20 69 74 20 62 65 | item 1 |of it be|
|00004040| 66 6f 72 65 20 74 68 65 | 20 73 65 6c 65 63 74 69 |fore the| selecti|
|00004050| 6f 6e 0d 70 75 74 20 69 | 74 65 6d 20 32 20 6f 66 |on.put i|tem 2 of|
|00004060| 20 69 74 20 61 66 74 65 | 72 20 74 68 65 20 73 65 | it afte|r the se|
|00004070| 6c 65 63 74 69 6f 6e 0d | 69 66 20 73 74 61 79 53 |lection.|if stayS|
|00004080| 65 6c 65 63 74 65 64 20 | 74 68 65 6e 0d 61 64 64 |elected |then.add|
|00004090| 20 69 74 65 6d 20 33 20 | 6f 66 20 69 74 20 74 6f | item 3 |of it to|
|000040a0| 20 77 6f 72 64 20 32 20 | 6f 66 20 73 43 68 75 6e | word 2 |of sChun|
|000040b0| 6b 0d 61 64 64 20 69 74 | 65 6d 20 33 20 6f 66 20 |k.add it|em 3 of |
|000040c0| 69 74 20 74 6f 20 77 6f | 72 64 20 34 20 6f 66 20 |it to wo|rd 4 of |
|000040d0| 73 43 68 75 6e 6b 0d 73 | 65 6c 65 63 74 20 73 43 |sChunk.s|elect sC|
|000040e0| 68 75 6e 6b 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |hunk.end| if.end |
|000040f0| 69 66 0d 65 6e 64 20 69 | 66 0d 45 4e 44 20 49 46 |if.end i|f.END IF|
|00004100| 0d 65 6e 64 20 48 54 4d | 4c 0d 0d 6f 6e 20 48 54 |.end HTM|L..on HT|
|00004110| 4d 4c 47 6c 6f 73 73 61 | 72 79 0d 69 66 20 65 6d |MLGlossa|ry.if em|
|00004120| 70 74 79 53 65 6c 65 63 | 74 69 6f 6e 28 29 20 74 |ptySelec|tion() t|
|00004130| 68 65 6e 20 65 78 69 74 | 20 48 54 4d 4c 47 6c 6f |hen exit| HTMLGlo|
|00004140| 73 73 61 72 79 20 65 6c | 73 65 20 73 65 74 55 6e |ssary el|se setUn|
|00004150| 64 6f 0d 70 75 74 20 74 | 68 65 20 73 65 6c 65 63 |do.put t|he selec|
|00004160| 74 69 6f 6e 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |tion int|o theTex|
|00004170| 74 0d 70 75 74 20 74 68 | 65 20 6e 75 6d 62 65 72 |t.put th|e number|
|00004180| 20 6f 66 20 6c 69 6e 65 | 73 20 6f 66 20 74 68 65 | of line|s of the|
|00004190| 54 65 78 74 20 69 6e 74 | 6f 20 6e 0d 69 66 20 6e |Text int|o n.if n|
|000041a0| 20 6d 6f 64 20 32 20 ad | 20 30 20 74 68 65 6e 0d | mod 2 .| 0 then.|
|000041b0| 61 6e 73 77 65 72 20 22 | 48 54 4d 4c 20 45 52 52 |answer "|HTML ERR|
|000041c0| 4f 52 3a 22 26 72 65 74 | 75 72 6e 26 22 54 68 65 |OR:"&ret|urn&"The|
|000041d0| 20 74 65 78 74 20 73 65 | 6c 65 63 74 69 6f 6e 20 | text se|lection |
|000041e0| 66 6f 72 20 61 6e 20 48 | 54 4d 4c 20 47 6c 6f 73 |for an H|TML Glos|
|000041f0| 73 61 72 79 20 6d 75 73 | 74 20 62 65 20 61 6e 20 |sary mus|t be an |
|00004200| 65 76 65 6e 20 6e 75 6d | 62 65 72 20 22 26 c2 0d |even num|ber "&..|
|00004210| 22 6f 66 20 6c 69 6e 65 | 73 2e 20 54 68 65 20 66 |"of line|s. The f|
|00004220| 69 72 73 74 20 6c 69 6e | 65 20 6f 66 20 65 61 63 |irst lin|e of eac|
|00004230| 68 20 70 61 69 72 20 69 | 73 20 74 68 65 20 74 65 |h pair i|s the te|
|00004240| 72 6d 2c 20 74 68 65 20 | 73 65 63 6f 6e 64 20 6c |rm, the |second l|
|00004250| 69 6e 65 20 69 73 20 74 | 68 65 20 64 65 66 69 6e |ine is t|he defin|
|00004260| 69 74 69 6f 6e 2e 22 0d | 65 6c 73 65 0d 72 65 70 |ition.".|else.rep|
|00004270| 65 61 74 20 77 69 74 68 | 20 69 20 3d 20 31 20 74 |eat with| i = 1 t|
|00004280| 6f 20 6e 0d 69 66 20 69 | 20 6d 6f 64 20 32 20 69 |o n.if i| mod 2 i|
|00004290| 73 20 30 20 74 68 65 6e | 20 6e 65 78 74 20 72 65 |s 0 then| next re|
|000042a0| 70 65 61 74 0d 70 75 74 | 20 22 3c 44 54 3e 22 20 |peat.put| "<DT>" |
|000042b0| 62 65 66 6f 72 65 20 6c | 69 6e 65 20 69 20 6f 66 |before l|ine i of|
|000042c0| 20 74 68 65 54 65 78 74 | 0d 65 6e 64 20 72 65 70 | theText|.end rep|
|000042d0| 65 61 74 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |eat.repe|at with |
|000042e0| 69 20 3d 20 31 20 74 6f | 20 6e 0d 69 66 20 69 20 |i = 1 to| n.if i |
|000042f0| 6d 6f 64 20 32 20 69 73 | 20 31 20 74 68 65 6e 20 |mod 2 is| 1 then |
|00004300| 6e 65 78 74 20 72 65 70 | 65 61 74 0d 70 75 74 20 |next rep|eat.put |
|00004310| 22 3c 44 44 3e 22 20 62 | 65 66 6f 72 65 20 6c 69 |"<DD>" b|efore li|
|00004320| 6e 65 20 69 20 6f 66 20 | 74 68 65 54 65 78 74 0d |ne i of |theText.|
|00004330| 65 6e 64 20 72 65 70 65 | 61 74 0d 69 66 20 6c 61 |end repe|at.if la|
|00004340| 73 74 20 63 68 61 72 20 | 6f 66 20 74 68 65 54 65 |st char |of theTe|
|00004350| 78 74 20 ad 20 72 65 74 | 75 72 6e 20 74 68 65 6e |xt . ret|urn then|
|00004360| 20 70 75 74 20 72 65 74 | 75 72 6e 20 61 66 74 65 | put ret|urn afte|
|00004370| 72 20 74 68 65 54 65 78 | 74 0d 70 75 74 20 22 3c |r theTex|t.put "<|
|00004380| 44 4c 3e 22 26 72 65 74 | 75 72 6e 26 74 68 65 54 |DL>"&ret|urn&theT|
|00004390| 65 78 74 26 22 3c 2f 44 | 4c 3e 22 26 72 65 74 75 |ext&"</D|L>"&retu|
|000043a0| 72 6e 20 69 6e 74 6f 20 | 74 68 65 20 73 65 6c 65 |rn into |the sele|
|000043b0| 63 74 69 6f 6e 0d 65 6e | 64 20 69 66 0d 65 6e 64 |ction.en|d if.end|
|000043c0| 20 48 54 4d 4c 47 6c 6f | 73 73 61 72 79 0d 0d 6f | HTMLGlo|ssary..o|
|000043d0| 6e 20 48 54 4d 4c 49 6d | 61 67 65 0d 70 75 74 20 |n HTMLIm|age.put |
|000043e0| 74 68 65 20 73 65 6c 65 | 63 74 65 64 43 68 75 6e |the sele|ctedChun|
|000043f0| 6b 20 69 6e 74 6f 20 73 | 43 68 75 6e 6b 0d 69 66 |k into s|Chunk.if|
|00004400| 20 22 66 69 65 6c 64 22 | 20 69 73 20 69 6e 20 73 | "field"| is in s|
|00004410| 43 68 75 6e 6b 20 74 68 | 65 6e 0d 69 66 20 74 68 |Chunk th|en.if th|
|00004420| 65 20 73 65 6c 65 63 74 | 69 6f 6e 20 ad 20 22 22 |e select|ion . ""|
|00004430| 20 74 68 65 6e 20 67 65 | 74 20 74 68 65 20 73 65 | then ge|t the se|
|00004440| 6c 65 63 74 69 6f 6e 20 | 65 6c 73 65 20 67 65 74 |lection |else get|
|00004450| 20 22 22 0d 70 75 74 20 | 22 4e 6f 6e 65 2c 54 6f | "".put |"None,To|
|00004460| 70 2c 42 6f 74 74 6f 6d | 22 20 69 6e 74 6f 20 74 |p,Bottom|" into t|
|00004470| 68 65 4d 65 6e 75 0d 73 | 68 6f 77 44 69 61 6c 6f |heMenu.s|howDialo|
|00004480| 67 20 34 2c 34 37 34 35 | 2c 22 55 52 4c 3a 22 2c |g 4,4745|,"URL:",|
|00004490| 22 41 6c 74 65 72 6e 61 | 74 69 76 65 20 54 65 78 |"Alterna|tive Tex|
|000044a0| 74 3a 22 2c 69 74 2c 74 | 68 65 4d 65 6e 75 2c 31 |t:",it,t|heMenu,1|
|000044b0| 2c 67 59 28 35 34 29 2c | 67 58 28 32 32 31 29 0d |,gY(54),|gX(221).|
|000044c0| 69 66 20 74 68 65 20 72 | 65 73 75 6c 74 20 3d 20 |if the r|esult = |
|000044d0| 22 22 20 74 68 65 6e 20 | 65 78 69 74 20 48 54 4d |"" then |exit HTM|
|000044e0| 4c 49 6d 61 67 65 0d 65 | 6c 73 65 20 69 66 20 6c |LImage.e|lse if l|
|000044f0| 69 6e 65 20 32 20 6f 66 | 20 74 68 65 20 72 65 73 |ine 2 of| the res|
|00004500| 75 6c 74 20 3d 20 22 22 | 20 74 68 65 6e 0d 61 6e |ult = ""| then.an|
|00004510| 73 77 65 72 20 22 59 6f | 75 20 6d 75 73 74 20 65 |swer "Yo|u must e|
|00004520| 6e 74 65 72 20 61 20 55 | 52 4c 20 66 6f 72 20 74 |nter a U|RL for t|
|00004530| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |his func|tion to |
|00004540| 77 6f 72 6b 2e 22 0d 65 | 78 69 74 20 48 54 4d 4c |work.".e|xit HTML|
|00004550| 49 6d 61 67 65 0d 65 6c | 73 65 20 70 75 74 20 74 |Image.el|se put t|
|00004560| 68 65 20 72 65 73 75 6c | 74 20 69 6e 74 6f 20 74 |he resul|t into t|
|00004570| 68 65 52 65 73 75 6c 74 | 0d 73 65 74 55 6e 64 6f |heResult|.setUndo|
|00004580| 0d 0d 69 66 20 63 68 61 | 72 20 31 20 6f 66 20 74 |..if cha|r 1 of t|
|00004590| 68 65 52 65 73 75 6c 74 | 20 ad 20 31 20 74 68 65 |heResult| . 1 the|
|000045a0| 6e 0d 70 75 74 20 73 70 | 61 63 65 26 22 41 4c 49 |n.put sp|ace&"ALI|
|000045b0| 47 4e 3d 22 26 69 74 65 | 6d 20 28 63 68 61 72 20 |GN="&ite|m (char |
|000045c0| 31 20 6f 66 20 74 68 65 | 52 65 73 75 6c 74 29 20 |1 of the|Result) |
|000045d0| 6f 66 20 74 68 65 4d 65 | 6e 75 20 69 6e 74 6f 20 |of theMe|nu into |
|000045e0| 74 68 65 41 6c 69 67 6e | 0d 65 6c 73 65 20 70 75 |theAlign|.else pu|
|000045f0| 74 20 22 22 20 69 6e 74 | 6f 20 74 68 65 41 6c 69 |t "" int|o theAli|
|00004600| 67 6e 0d 0d 69 66 20 6c | 69 6e 65 20 32 20 6f 66 |gn..if l|ine 2 of|
|00004610| 20 74 68 65 52 65 73 75 | 6c 74 20 ad 20 22 22 20 | theResu|lt . "" |
|00004620| 74 68 65 6e 0d 70 75 74 | 20 73 70 61 63 65 26 22 |then.put| space&"|
|00004630| 53 52 43 3d 22 26 71 75 | 6f 74 65 26 72 65 70 28 |SRC="&qu|ote&rep(|
|00004640| 6c 69 6e 65 20 32 20 6f | 66 20 74 68 65 52 65 73 |line 2 o|f theRes|
|00004650| 75 6c 74 2c 22 3a 22 2c | 22 2f 22 29 26 71 75 6f |ult,":",|"/")&quo|
|00004660| 74 65 20 69 6e 74 6f 20 | 74 68 65 53 6f 75 72 63 |te into |theSourc|
|00004670| 65 0d 70 75 74 20 72 65 | 70 28 74 68 65 53 6f 75 |e.put re|p(theSou|
|00004680| 72 63 65 2c 22 68 74 74 | 70 2f 22 2c 22 68 74 74 |rce,"htt|p/","htt|
|00004690| 70 3a 22 29 20 69 6e 74 | 6f 20 74 68 65 53 6f 75 |p:") int|o theSou|
|000046a0| 72 63 65 0d 65 6c 73 65 | 20 70 75 74 20 22 22 20 |rce.else| put "" |
|000046b0| 69 6e 74 6f 20 74 68 65 | 53 6f 75 72 63 65 0d 0d |into the|Source..|
|000046c0| 69 66 20 6c 69 6e 65 20 | 33 20 6f 66 20 74 68 65 |if line |3 of the|
|000046d0| 52 65 73 75 6c 74 20 ad | 20 22 22 20 74 68 65 6e |Result .| "" then|
|000046e0| 0d 70 75 74 20 73 70 61 | 63 65 26 22 41 4c 54 3d |.put spa|ce&"ALT=|
|000046f0| 22 26 71 75 6f 74 65 26 | 72 65 70 28 6c 69 6e 65 |"&quote&|rep(line|
|00004700| 20 33 20 6f 66 20 74 68 | 65 52 65 73 75 6c 74 2c | 3 of th|eResult,|
|00004710| 72 65 74 75 72 6e 29 26 | 71 75 6f 74 65 20 69 6e |return)&|quote in|
|00004720| 74 6f 20 74 68 65 43 6f | 6d 6d 65 6e 74 0d 65 6c |to theCo|mment.el|
|00004730| 73 65 20 70 75 74 20 22 | 22 20 69 6e 74 6f 20 74 |se put "|" into t|
|00004740| 68 65 43 6f 6d 6d 65 6e | 74 0d 0d 67 65 74 20 22 |heCommen|t..get "|
|00004750| 3c 49 4d 47 22 26 74 68 | 65 41 6c 69 67 6e 26 74 |<IMG"&th|eAlign&t|
|00004760| 68 65 53 6f 75 72 63 65 | 26 74 68 65 43 6f 6d 6d |heSource|&theComm|
|00004770| 65 6e 74 26 22 3e 22 0d | 69 66 20 74 68 65 20 73 |ent&">".|if the s|
|00004780| 65 6c 65 63 74 69 6f 6e | 20 3d 20 22 22 20 74 68 |election| = "" th|
|00004790| 65 6e 20 64 6f 20 22 70 | 75 74 20 69 74 20 61 66 |en do "p|ut it af|
|000047a0| 74 65 72 22 26 26 73 43 | 68 75 6e 6b 0d 65 6c 73 |ter"&&sC|hunk.els|
|000047b0| 65 20 64 6f 20 22 70 75 | 74 20 69 74 20 69 6e 74 |e do "pu|t it int|
|000047c0| 6f 22 26 26 73 43 68 75 | 6e 6b 0d 65 6c 73 65 20 |o"&&sChu|nk.else |
|000047d0| 61 6e 73 77 65 72 20 22 | 59 6f 75 20 6d 75 73 74 |answer "|You must|
|000047e0| 20 73 65 6c 65 63 74 20 | 73 6f 6d 65 20 74 65 78 | select |some tex|
|000047f0| 74 20 6f 72 20 70 6c 61 | 63 65 20 74 68 65 20 69 |t or pla|ce the i|
|00004800| 6e 73 65 72 74 69 6f 6e | 20 70 6f 69 6e 74 20 69 |nsertion| point i|
|00004810| 6e 74 6f 20 61 6e 20 65 | 64 69 74 6f 72 20 66 69 |nto an e|ditor fi|
|00004820| 65 6c 64 20 66 6f 72 20 | 74 68 69 73 20 66 75 6e |eld for |this fun|
|00004830| 63 74 69 6f 6e 20 74 6f | 20 77 6f 72 6b 2e 22 20 |ction to| work." |
|00004840| 77 69 74 68 20 22 43 61 | 6e 63 65 6c 22 0d 65 6e |with "Ca|ncel".en|
|00004850| 64 20 48 54 4d 4c 49 6d | 61 67 65 0d 0d 6f 6e 20 |d HTMLIm|age..on |
|00004860| 48 54 4d 4c 4c 69 6e 6b | 0d 67 6c 6f 62 61 6c 20 |HTMLLink|.global |
|00004870| 74 68 65 55 52 4c 0d 70 | 75 74 20 74 68 65 20 73 |theURL.p|ut the s|
|00004880| 65 6c 65 63 74 69 6f 6e | 20 69 6e 74 6f 20 74 68 |election| into th|
|00004890| 65 54 65 78 74 0d 70 75 | 74 20 74 68 65 20 73 65 |eText.pu|t the se|
|000048a0| 6c 65 63 74 65 64 43 68 | 75 6e 6b 20 69 6e 74 6f |lectedCh|unk into|
|000048b0| 20 73 43 68 75 6e 6b 0d | 49 46 20 22 62 6b 67 6e | sChunk.|IF "bkgn|
|000048c0| 64 20 66 69 65 6c 64 20 | 31 31 22 20 69 73 20 69 |d field |11" is i|
|000048d0| 6e 20 73 43 68 75 6e 6b | 20 74 68 65 6e 0d 61 6e |n sChunk| then.an|
|000048e0| 73 77 65 72 20 22 43 72 | 65 61 74 65 20 48 79 70 |swer "Cr|eate Hyp|
|000048f0| 65 72 54 65 78 74 20 4c | 69 6e 6b c9 22 26 72 65 |erText L|ink."&re|
|00004900| 74 75 72 6e 26 72 65 74 | 75 72 6e 26 22 54 68 69 |turn&ret|urn&"Thi|
|00004910| 73 20 66 75 6e 63 74 69 | 6f 6e 20 63 61 6e 6e 6f |s functi|on canno|
|00004920| 74 20 75 73 65 20 74 68 | 65 20 55 52 4c 20 66 69 |t use th|e URL fi|
|00004930| 65 6c 64 20 61 73 20 61 | 20 74 65 78 74 20 73 65 |eld as a| text se|
|00004940| 6c 65 63 74 69 6f 6e 2e | 22 0d 45 4c 53 45 20 49 |lection.|".ELSE I|
|00004950| 46 20 22 66 69 65 6c 64 | 22 20 69 73 20 6e 6f 74 |F "field|" is not|
|00004960| 20 69 6e 20 73 43 68 75 | 6e 6b 20 74 68 65 6e 0d | in sChu|nk then.|
|00004970| 61 6e 73 77 65 72 20 22 | 59 6f 75 20 6d 75 73 74 |answer "|You must|
|00004980| 20 65 69 74 68 65 72 20 | 73 65 6c 65 63 74 20 73 | either |select s|
|00004990| 6f 6d 65 20 74 65 78 74 | 20 6f 72 20 70 6c 61 63 |ome text| or plac|
|000049a0| 65 20 74 68 65 20 69 6e | 73 65 72 74 69 6f 6e 20 |e the in|sertion |
|000049b0| 70 6f 69 6e 74 20 69 6e | 20 61 6e 20 65 64 69 74 |point in| an edit|
|000049c0| 6f 72 20 66 69 65 6c 64 | 20 66 6f 72 20 74 68 69 |or field| for thi|
|000049d0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 77 6f |s functi|on to wo|
|000049e0| 72 6b 2e 22 20 77 69 74 | 68 20 22 43 61 6e 63 65 |rk." wit|h "Cance|
|000049f0| 6c 22 0d 45 4c 53 45 0d | 69 66 20 6c 65 6e 67 74 |l".ELSE.|if lengt|
|00004a00| 68 28 74 68 65 54 65 78 | 74 29 20 3e 20 37 30 20 |h(theTex|t) > 70 |
|00004a10| 74 68 65 6e 20 67 65 74 | 20 72 65 70 28 63 68 61 |then get| rep(cha|
|00004a20| 72 20 31 20 74 6f 20 37 | 30 20 6f 66 20 74 68 65 |r 1 to 7|0 of the|
|00004a30| 54 65 78 74 2c 72 65 74 | 75 72 6e 2c 22 2f 22 29 |Text,ret|urn,"/")|
|00004a40| 26 22 c9 22 20 65 6c 73 | 65 20 67 65 74 20 72 65 |&"." els|e get re|
|00004a50| 70 28 74 68 65 54 65 78 | 74 2c 72 65 74 75 72 6e |p(theTex|t,return|
|00004a60| 2c 22 2f 22 29 0d 73 68 | 6f 77 44 69 61 6c 6f 67 |,"/").sh|owDialog|
|00004a70| 20 32 2c 34 37 34 33 2c | 22 55 52 4c 3a 22 2c 22 | 2,4743,|"URL:","|
|00004a80| d2 22 26 69 74 26 22 d3 | 22 2c 22 22 2c 46 41 4c |."&it&".|","",FAL|
|00004a90| 53 45 2c 67 59 28 35 34 | 29 2c 67 58 28 32 32 31 |SE,gY(54|),gX(221|
|00004aa0| 29 0d 67 65 74 20 74 68 | 65 20 72 65 73 75 6c 74 |).get th|e result|
|00004ab0| 0d 69 66 20 69 74 20 3d | 20 22 22 20 74 68 65 6e |.if it =| "" then|
|00004ac0| 20 65 78 69 74 20 48 54 | 4d 4c 4c 69 6e 6b 0d 73 | exit HT|MLLink.s|
|00004ad0| 65 74 55 6e 64 6f 0d 69 | 66 20 28 6c 69 6e 65 20 |etUndo.i|f (line |
|00004ae0| 31 20 6f 66 20 69 74 29 | 20 74 68 65 6e 20 2d 2d |1 of it)| then --|
|00004af0| 20 75 73 65 20 55 52 4c | 20 66 69 65 6c 64 0d 70 | use URL| field.p|
|00004b00| 75 74 20 6f 66 66 73 65 | 74 28 22 e0 22 2c 74 68 |ut offse|t(".",th|
|00004b10| 65 55 52 4c 29 20 69 6e | 74 6f 20 65 6e 64 41 6e |eURL) in|to endAn|
|00004b20| 63 68 6f 72 0d 69 66 20 | 74 68 65 55 52 4c 20 3d |chor.if |theURL =|
|00004b30| 20 22 22 20 74 68 65 6e | 0d 61 6e 73 77 65 72 20 | "" then|.answer |
|00004b40| 22 45 52 52 4f 52 20 4f | 4e 20 43 52 45 41 54 49 |"ERROR O|N CREATI|
|00004b50| 4e 47 20 4c 49 4e 4b 3a | 22 26 72 65 74 75 72 6e |NG LINK:|"&return|
|00004b60| 26 22 54 68 65 20 55 52 | 4c 20 66 69 65 6c 64 20 |&"The UR|L field |
|00004b70| 69 73 20 65 6d 70 74 79 | 2e 20 55 73 65 20 74 68 |is empty|. Use th|
|00004b80| 65 20 55 52 4c 20 70 6f | 70 55 70 20 6d 65 6e 75 |e URL po|pUp menu|
|00004b90| 20 6f 72 20 6d 61 6e 75 | 61 6c 6c 79 20 74 6f 22 | or manu|ally to"|
|00004ba0| 26 26 c2 0d 22 65 6e 74 | 65 72 20 61 20 55 52 4c |&&.."ent|er a URL|
|00004bb0| 20 77 69 74 68 20 74 68 | 65 20 64 69 65 73 69 73 | with th|e diesis|
|00004bc0| 20 73 79 6d 62 6f 6c 20 | d2 e0 d3 20 28 4f 70 74 | symbol |... (Opt|
|00004bd0| 69 6f 6e 2d 53 68 69 66 | 74 2d 37 29 20 61 73 20 |ion-Shif|t-7) as |
|00004be0| 74 68 65 20 68 6f 74 20 | 74 65 78 74 2e 22 20 77 |the hot |text." w|
|00004bf0| 69 74 68 20 22 43 61 6e | 63 65 6c 22 0d 65 6c 73 |ith "Can|cel".els|
|00004c00| 65 20 69 66 20 65 6e 64 | 41 6e 63 68 6f 72 20 3d |e if end|Anchor =|
|00004c10| 20 30 20 74 68 65 6e 0d | 61 6e 73 77 65 72 20 22 | 0 then.|answer "|
|00004c20| 45 52 52 4f 52 20 4f 4e | 20 43 52 45 41 54 49 4e |ERROR ON| CREATIN|
|00004c30| 47 20 4c 49 4e 4b 3a 22 | 26 72 65 74 75 72 6e 26 |G LINK:"|&return&|
|00004c40| 22 54 68 65 20 74 65 78 | 74 20 70 61 72 73 65 72 |"The tex|t parser|
|00004c50| 20 66 61 69 6c 65 64 20 | 74 6f 20 66 69 6e 64 20 | failed |to find |
|00004c60| 74 68 65 20 64 69 65 73 | 69 73 20 73 79 6d 62 6f |the dies|is symbo|
|00004c70| 6c 20 d2 e0 d3 20 69 6e | 20 74 68 65 22 26 26 c2 |l ... in| the"&&.|
|00004c80| 0d 22 55 52 4c 20 74 65 | 78 74 20 66 69 65 6c 64 |."URL te|xt field|
|00004c90| 2e 20 49 74 20 75 73 65 | 73 20 74 68 69 73 20 73 |. It use|s this s|
|00004ca0| 79 6d 62 6f 6c 20 74 6f | 20 73 75 62 73 74 69 74 |ymbol to| substit|
|00004cb0| 75 74 65 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ute the |current |
|00004cc0| 73 65 6c 65 63 74 69 6f | 6e 20 69 6e 20 79 6f 75 |selectio|n in you|
|00004cd0| 72 20 64 6f 63 75 6d 65 | 6e 74 20 61 73 20 74 68 |r docume|nt as th|
|00004ce0| 65 20 68 6f 74 20 74 65 | 78 74 20 66 6f 72 20 74 |e hot te|xt for t|
|00004cf0| 68 69 73 20 6c 69 6e 6b | 2e 22 20 77 69 74 68 20 |his link|." with |
|00004d00| 22 43 61 6e 63 65 6c 22 | 0d 65 6c 73 65 0d 64 6f |"Cancel"|.else.do|
|00004d10| 20 22 73 65 6c 65 63 74 | 22 26 26 73 43 68 75 6e | "select|"&&sChun|
|00004d20| 6b 0d 70 75 74 20 63 68 | 61 72 20 31 20 74 6f 20 |k.put ch|ar 1 to |
|00004d30| 28 65 6e 64 41 6e 63 68 | 6f 72 2d 31 29 20 6f 66 |(endAnch|or-1) of|
|00004d40| 20 74 68 65 55 52 4c 26 | 74 68 65 54 65 78 74 26 | theURL&|theText&|
|00004d50| 22 3c 2f 41 3e 22 20 69 | 6e 74 6f 20 74 68 65 20 |"</A>" i|nto the |
|00004d60| 73 65 6c 65 63 74 69 6f | 6e 0d 65 6e 64 20 69 66 |selectio|n.end if|
|00004d70| 0d 65 6c 73 65 20 69 66 | 20 6c 69 6e 65 20 32 20 |.else if| line 2 |
|00004d80| 6f 66 20 69 74 20 ad 20 | 22 22 20 74 68 65 6e 0d |of it . |"" then.|
|00004d90| 64 6f 20 22 73 65 6c 65 | 63 74 22 26 26 73 43 68 |do "sele|ct"&&sCh|
|00004da0| 75 6e 6b 0d 70 75 74 20 | 22 3c 41 20 48 52 45 46 |unk.put |"<A HREF|
|00004db0| 3d 22 26 71 75 6f 74 65 | 26 6c 69 6e 65 20 32 20 |="&quote|&line 2 |
|00004dc0| 6f 66 20 69 74 26 71 75 | 6f 74 65 26 22 3e 22 26 |of it&qu|ote&">"&|
|00004dd0| 74 68 65 54 65 78 74 26 | 22 3c 2f 41 3e 22 20 69 |theText&|"</A>" i|
|00004de0| 6e 74 6f 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f |nto the |selectio|
|00004df0| 6e 0d 65 6c 73 65 20 61 | 6e 73 77 65 72 20 22 59 |n.else a|nswer "Y|
|00004e00| 6f 75 20 6d 75 73 74 20 | 65 69 74 68 65 72 20 74 |ou must |either t|
|00004e10| 79 70 65 20 61 20 55 52 | 4c 20 69 6e 20 74 68 65 |ype a UR|L in the|
|00004e20| 20 65 6e 74 72 79 20 62 | 6f 78 20 6f 72 20 63 68 | entry b|ox or ch|
|00004e30| 65 63 6b 20 74 68 65 20 | d4 55 73 65 20 55 52 4c |eck the |.Use URL|
|00004e40| 20 66 69 65 6c 64 20 69 | 6e 73 74 65 61 64 20 6f | field i|nstead o|
|00004e50| 66 20 65 6e 74 72 79 2e | d5 20 63 68 65 63 6b 62 |f entry.|. checkb|
|00004e60| 6f 78 20 61 6e 64 20 68 | 61 76 65 20 61 6e 20 65 |ox and h|ave an e|
|00004e70| 6e 74 72 79 20 69 6e 20 | 74 68 65 20 55 52 4c 20 |ntry in |the URL |
|00004e80| 66 69 65 6c 64 20 66 6f | 72 20 74 68 69 73 20 66 |field fo|r this f|
|00004e90| 75 6e 63 74 69 6f 6e 20 | 74 6f 20 77 6f 72 6b 2e |unction |to work.|
|00004ea0| 22 20 77 69 74 68 20 22 | 43 61 6e 63 65 6c 22 0d |" with "|Cancel".|
|00004eb0| 45 4e 44 20 49 46 0d 65 | 6e 64 20 48 54 4d 4c 4c |END IF.e|nd HTMLL|
|00004ec0| 69 6e 6b 0d 0d 6f 6e 20 | 48 54 4d 4c 4c 69 73 74 |ink..on |HTMLList|
|00004ed0| 20 74 61 67 0d 73 65 74 | 55 6e 64 6f 0d 70 75 74 | tag.set|Undo.put|
|00004ee0| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 20 69 | the sel|ection i|
|00004ef0| 6e 74 6f 20 74 68 65 54 | 65 78 74 0d 72 65 70 65 |nto theT|ext.repe|
|00004f00| 61 74 20 77 69 74 68 20 | 69 20 3d 20 31 20 74 6f |at with |i = 1 to|
|00004f10| 20 6e 75 6d 62 65 72 28 | 6c 69 6e 65 73 20 6f 66 | number(|lines of|
|00004f20| 20 74 68 65 54 65 78 74 | 29 0d 70 75 74 20 22 3c | theText|).put "<|
|00004f30| 4c 49 3e 22 20 62 65 66 | 6f 72 65 20 6c 69 6e 65 |LI>" bef|ore line|
|00004f40| 20 69 20 6f 66 20 74 68 | 65 54 65 78 74 0d 65 6e | i of th|eText.en|
|00004f50| 64 20 72 65 70 65 61 74 | 0d 69 66 20 6c 61 73 74 |d repeat|.if last|
|00004f60| 20 63 68 61 72 20 6f 66 | 20 74 68 65 54 65 78 74 | char of| theText|
|00004f70| 20 ad 20 72 65 74 75 72 | 6e 20 74 68 65 6e 20 70 | . retur|n then p|
|00004f80| 75 74 20 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 |ut retur|n after |
|00004f90| 74 68 65 54 65 78 74 0d | 70 75 74 20 22 3c 22 26 |theText.|put "<"&|
|00004fa0| 74 61 67 26 22 3e 22 26 | 72 65 74 75 72 6e 26 74 |tag&">"&|return&t|
|00004fb0| 68 65 54 65 78 74 26 22 | 3c 2f 22 26 74 61 67 26 |heText&"|</"&tag&|
|00004fc0| 22 3e 22 20 69 6e 74 6f | 20 74 68 65 20 73 65 6c |">" into| the sel|
|00004fd0| 65 63 74 69 6f 6e 0d 65 | 6e 64 20 48 54 4d 4c 4c |ection.e|nd HTMLL|
|00004fe0| 69 73 74 0d 0d 6f 6e 20 | 48 54 4d 4c 4e 61 6d 65 |ist..on |HTMLName|
|00004ff0| 64 41 6e 63 68 6f 72 0d | 69 66 20 65 6d 70 74 79 |dAnchor.|if empty|
|00005000| 53 65 6c 65 63 74 69 6f | 6e 28 29 20 74 68 65 6e |Selectio|n() then|
|00005010| 20 65 78 69 74 20 48 54 | 4d 4c 4e 61 6d 65 64 41 | exit HT|MLNamedA|
|00005020| 6e 63 68 6f 72 20 65 6c | 73 65 20 73 65 74 55 6e |nchor el|se setUn|
|00005030| 64 6f 0d 70 75 74 20 74 | 68 65 20 73 65 6c 65 63 |do.put t|he selec|
|00005040| 74 69 6f 6e 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |tion int|o theTex|
|00005050| 74 0d 61 73 6b 20 22 45 | 6e 74 65 72 20 74 68 65 |t.ask "E|nter the|
|00005060| 20 6e 61 6d 65 20 66 6f | 72 20 74 68 69 73 20 4e | name fo|r this N|
|00005070| 61 6d 65 64 20 41 6e 63 | 68 6f 72 3a 22 0d 69 66 |amed Anc|hor:".if|
|00005080| 20 69 74 20 3d 20 22 22 | 20 74 68 65 6e 20 65 78 | it = ""| then ex|
|00005090| 69 74 20 48 54 4d 4c 4e | 61 6d 65 64 41 6e 63 68 |it HTMLN|amedAnch|
|000050a0| 6f 72 0d 65 6c 73 65 20 | 70 75 74 20 22 3c 41 20 |or.else |put "<A |
|000050b0| 4e 41 4d 45 3d 22 26 71 | 75 6f 74 65 26 69 74 26 |NAME="&q|uote&it&|
|000050c0| 71 75 6f 74 65 26 22 3e | 22 26 74 68 65 54 65 78 |quote&">|"&theTex|
|000050d0| 74 26 22 3c 2f 41 3e 22 | 20 69 6e 74 6f 20 74 68 |t&"</A>"| into th|
|000050e0| 65 20 73 65 6c 65 63 74 | 69 6f 6e 0d 65 6e 64 20 |e select|ion.end |
|000050f0| 48 54 4d 4c 4e 61 6d 65 | 64 41 6e 63 68 6f 72 0d |HTMLName|dAnchor.|
|00005100| 0d 6f 6e 20 63 6f 6e 76 | 65 72 74 50 61 72 61 67 |.on conv|ertParag|
|00005110| 72 61 70 68 0d 69 66 20 | 65 6d 70 74 79 53 65 6c |raph.if |emptySel|
|00005120| 65 63 74 69 6f 6e 28 29 | 20 74 68 65 6e 20 65 78 |ection()| then ex|
|00005130| 69 74 20 63 6f 6e 76 65 | 72 74 50 61 72 61 67 72 |it conve|rtParagr|
|00005140| 61 70 68 20 65 6c 73 65 | 20 73 65 74 55 6e 64 6f |aph else| setUndo|
|00005150| 0d 70 75 74 20 74 68 65 | 20 73 65 6c 65 63 74 69 |.put the| selecti|
|00005160| 6f 6e 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |on into |theText.|
|00005170| 73 65 74 20 63 75 72 73 | 6f 72 20 74 6f 20 77 61 |set curs|or to wa|
|00005180| 74 63 68 0d 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |tch.lock| screen.|
|00005190| 72 65 70 65 61 74 20 77 | 68 69 6c 65 20 6f 66 66 |repeat w|hile off|
|000051a0| 73 65 74 28 72 65 74 75 | 72 6e 26 72 65 74 75 72 |set(retu|rn&retur|
|000051b0| 6e 2c 74 68 65 54 65 78 | 74 29 20 ad 20 30 0d 70 |n,theTex|t) . 0.p|
|000051c0| 75 74 20 72 65 70 28 74 | 68 65 54 65 78 74 2c 72 |ut rep(t|heText,r|
|000051d0| 65 74 75 72 6e 26 72 65 | 74 75 72 6e 2c 72 65 74 |eturn&re|turn,ret|
|000051e0| 75 72 6e 29 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |urn) int|o theTex|
|000051f0| 74 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 70 75 74 |t.end re|peat.put|
|00005200| 20 72 65 70 28 74 68 65 | 54 65 78 74 2c 72 65 74 | rep(the|Text,ret|
|00005210| 75 72 6e 2c 22 3c 50 3e | 22 26 72 65 74 75 72 6e |urn,"<P>|"&return|
|00005220| 26 72 65 74 75 72 6e 29 | 20 69 6e 74 6f 20 74 68 |&return)| into th|
|00005230| 65 54 65 78 74 0d 70 75 | 74 20 74 68 65 54 65 78 |eText.pu|t theTex|
|00005240| 74 20 69 6e 74 6f 20 74 | 68 65 20 73 65 6c 65 63 |t into t|he selec|
|00005250| 74 69 6f 6e 0d 75 6e 6c | 6f 63 6b 20 73 63 72 65 |tion.unl|ock scre|
|00005260| 65 6e 0d 65 6e 64 20 63 | 6f 6e 76 65 72 74 50 61 |en.end c|onvertPa|
|00005270| 72 61 67 72 61 70 68 0d | 0d 6f 6e 20 72 65 70 6c |ragraph.|.on repl|
|00005280| 61 63 65 54 65 78 74 0d | 67 6c 6f 62 61 6c 20 73 |aceText.|global s|
|00005290| 72 63 2c 72 65 70 6c 61 | 63 65 41 6c 6c 2c 67 6c |rc,repla|ceAll,gl|
|000052a0| 6f 62 61 6c 52 65 70 2c | 6d 69 6e 69 47 52 45 50 |obalRep,|miniGREP|
|000052b0| 0d 69 66 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f |.if the |selectio|
|000052c0| 6e 20 ad 20 22 22 20 74 | 68 65 6e 20 70 75 74 20 |n . "" t|hen put |
|000052d0| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 20 69 6e |the sele|ction in|
|000052e0| 74 6f 20 73 72 63 0d 67 | 65 74 20 72 65 70 6c 61 |to src.g|et repla|
|000052f0| 63 65 41 6c 6c 26 22 2c | 22 26 67 6c 6f 62 61 6c |ceAll&",|"&global|
|00005300| 52 65 70 26 22 2c 22 26 | 6d 69 6e 69 47 52 45 50 |Rep&","&|miniGREP|
|00005310| 0d 73 68 6f 77 44 69 61 | 6c 6f 67 20 32 2c 34 37 |.showDia|log 2,47|
|00005320| 34 36 2c 22 53 65 61 72 | 63 68 20 66 6f 72 3a 22 |46,"Sear|ch for:"|
|00005330| 2c 22 52 65 70 6c 61 63 | 65 20 77 69 74 68 3a 22 |,"Replac|e with:"|
|00005340| 2c 73 72 63 2c 69 74 2c | 67 59 28 36 38 29 2c 67 |,src,it,|gY(68),g|
|00005350| 58 28 32 32 32 29 0d 67 | 65 74 20 74 68 65 20 72 |X(222).g|et the r|
|00005360| 65 73 75 6c 74 0d 69 66 | 20 69 74 20 3d 20 22 22 |esult.if| it = ""|
|00005370| 20 6f 72 20 6c 69 6e 65 | 20 32 20 6f 66 20 69 74 | or line| 2 of it|
|00005380| 20 3d 20 22 22 20 74 68 | 65 6e 20 65 78 69 74 20 | = "" th|en exit |
|00005390| 72 65 70 6c 61 63 65 54 | 65 78 74 0d 73 65 74 55 |replaceT|ext.setU|
|000053a0| 6e 64 6f 0d 70 75 74 20 | 69 74 65 6d 20 31 20 6f |ndo.put |item 1 o|
|000053b0| 66 20 6c 69 6e 65 20 31 | 20 6f 66 20 69 74 20 69 |f line 1| of it i|
|000053c0| 6e 74 6f 20 72 65 70 6c | 61 63 65 41 6c 6c 0d 70 |nto repl|aceAll.p|
|000053d0| 75 74 20 69 74 65 6d 20 | 32 20 6f 66 20 6c 69 6e |ut item |2 of lin|
|000053e0| 65 20 31 20 6f 66 20 69 | 74 20 69 6e 74 6f 20 67 |e 1 of i|t into g|
|000053f0| 6c 6f 62 61 6c 52 65 70 | 0d 70 75 74 20 69 74 65 |lobalRep|.put ite|
|00005400| 6d 20 33 20 6f 66 20 6c | 69 6e 65 20 31 20 6f 66 |m 3 of l|ine 1 of|
|00005410| 20 69 74 20 69 6e 74 6f | 20 6d 69 6e 69 47 52 45 | it into| miniGRE|
|00005420| 50 0d 70 75 74 20 6c 69 | 6e 65 20 32 20 6f 66 20 |P.put li|ne 2 of |
|00005430| 69 74 20 69 6e 74 6f 20 | 73 72 63 0d 70 75 74 20 |it into |src.put |
|00005440| 6c 69 6e 65 20 33 20 6f | 66 20 69 74 20 69 6e 74 |line 3 o|f it int|
|00005450| 6f 20 72 70 6c 63 0d 69 | 66 20 6d 69 6e 69 47 52 |o rplc.i|f miniGR|
|00005460| 45 50 20 74 68 65 6e 0d | 70 75 74 20 67 72 65 70 |EP then.|put grep|
|00005470| 43 6f 6e 76 65 72 74 28 | 73 72 63 29 20 69 6e 74 |Convert(|src) int|
|00005480| 6f 20 73 72 63 0d 70 75 | 74 20 67 72 65 70 43 6f |o src.pu|t grepCo|
|00005490| 6e 76 65 72 74 28 72 70 | 6c 63 29 20 69 6e 74 6f |nvert(rp|lc) into|
|000054a0| 20 72 70 6c 63 0d 65 6e | 64 20 69 66 0d 69 66 20 | rplc.en|d if.if |
|000054b0| 67 6c 6f 62 61 6c 52 65 | 70 20 74 68 65 6e 20 2d |globalRe|p then -|
|000054c0| 2d 20 72 65 70 6c 61 63 | 65 20 69 6e 20 61 6c 6c |- replac|e in all|
|000054d0| 20 64 6f 63 73 0d 6c 6f | 63 6b 20 6d 65 73 73 61 | docs.lo|ck messa|
|000054e0| 67 65 73 0d 70 75 73 68 | 20 63 64 0d 70 75 74 20 |ges.push| cd.put |
|000054f0| 6e 75 6d 62 65 72 28 63 | 64 73 20 6f 66 20 62 67 |number(c|ds of bg|
|00005500| 20 22 45 64 69 74 6f 72 | 22 29 20 69 6e 74 6f 20 | "Editor|") into |
|00005510| 65 6e 64 4f 70 0d 69 66 | 20 65 6e 64 4f 70 20 3e |endOp.if| endOp >|
|00005520| 20 35 0d 74 68 65 6e 20 | 70 72 6f 67 72 65 73 73 | 5.then |progress|
|00005530| 57 69 6e 64 6f 77 20 22 | a9 44 6f 6d 65 22 2c 22 |Window "|.Dome","|
|00005540| 50 72 6f 67 72 65 73 73 | 22 2c 22 47 6c 6f 62 61 |Progress|","Globa|
|00005550| 6c 6c 79 20 72 65 70 6c | 61 63 69 6e 67 20 74 65 |lly repl|acing te|
|00005560| 78 74 c9 22 26 72 65 74 | 75 72 6e 26 c2 0d 22 54 |xt."&ret|urn&.."T|
|00005570| 79 70 65 20 11 2d 2e 20 | 74 6f 20 68 61 6c 74 20 |ype .-. |to halt |
|00005580| 70 72 6f 63 65 73 73 69 | 6e 67 2e 22 2c 34 31 33 |processi|ng.",413|
|00005590| 30 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 63 20 |0.repeat| with c |
|000055a0| 3d 20 31 20 74 6f 20 65 | 6e 64 4f 70 0d 67 6f 20 |= 1 to e|ndOp.go |
|000055b0| 63 64 20 63 20 6f 66 20 | 62 67 20 22 45 64 69 74 |cd c of |bg "Edit|
|000055c0| 6f 72 22 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |or".repe|at with |
|000055d0| 69 20 3d 20 31 20 74 6f | 20 33 0d 67 65 74 20 28 |i = 1 to| 3.get (|
|000055e0| 73 72 63 20 69 73 20 69 | 6e 20 66 6c 64 20 69 64 |src is i|n fld id|
|000055f0| 20 69 20 61 6e 64 20 6e | 6f 74 20 72 65 70 6c 61 | i and n|ot repla|
|00005600| 63 65 41 6c 6c 29 0d 70 | 75 74 20 72 65 70 28 66 |ceAll).p|ut rep(f|
|00005610| 6c 64 20 69 64 20 69 2c | 73 72 63 2c 72 70 6c 63 |ld id i,|src,rplc|
|00005620| 2c 72 65 70 6c 61 63 65 | 41 6c 6c 29 20 69 6e 74 |,replace|All) int|
|00005630| 6f 20 66 6c 64 20 69 64 | 20 69 0d 69 66 20 69 74 |o fld id| i.if it|
|00005640| 20 74 68 65 6e 20 65 78 | 69 74 20 72 65 70 65 61 | then ex|it repea|
|00005650| 74 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |t.end re|peat.if |
|00005660| 76 69 7a 28 22 50 72 6f | 67 72 65 73 73 22 29 20 |viz("Pro|gress") |
|00005670| 74 68 65 6e 20 73 65 74 | 20 74 68 65 50 65 72 63 |then set| thePerc|
|00005680| 65 6e 74 20 6f 66 20 77 | 69 6e 64 6f 77 20 22 50 |ent of w|indow "P|
|00005690| 72 6f 67 72 65 73 73 22 | 20 74 6f 20 28 69 2f 65 |rogress"| to (i/e|
|000056a0| 6e 64 4f 70 29 2a 31 30 | 30 20 65 6c 73 65 20 62 |ndOp)*10|0 else b|
|000056b0| 7a 0d 69 66 20 69 74 20 | 74 68 65 6e 20 65 78 69 |z.if it |then exi|
|000056c0| 74 20 72 65 70 65 61 74 | 0d 65 6e 64 20 72 65 70 |t repeat|.end rep|
|000056d0| 65 61 74 0d 70 6f 70 20 | 63 64 0d 69 66 20 76 69 |eat.pop |cd.if vi|
|000056e0| 7a 28 22 50 72 6f 67 72 | 65 73 73 22 29 20 74 68 |z("Progr|ess") th|
|000056f0| 65 6e 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |en close| window |
|00005700| 22 50 72 6f 67 72 65 73 | 73 22 0d 62 69 6e 6b 0d |"Progres|s".bink.|
|00005710| 65 6c 73 65 0d 72 65 70 | 65 61 74 20 77 69 74 68 |else.rep|eat with|
|00005720| 20 69 20 3d 20 31 20 74 | 6f 20 33 0d 67 65 74 20 | i = 1 t|o 3.get |
|00005730| 28 73 72 63 20 69 73 20 | 69 6e 20 66 6c 64 20 69 |(src is |in fld i|
|00005740| 64 20 69 20 61 6e 64 20 | 6e 6f 74 20 72 65 70 6c |d i and |not repl|
|00005750| 61 63 65 41 6c 6c 29 0d | 70 75 74 20 72 65 70 28 |aceAll).|put rep(|
|00005760| 66 6c 64 20 69 64 20 69 | 2c 73 72 63 2c 72 70 6c |fld id i|,src,rpl|
|00005770| 63 2c 72 65 70 6c 61 63 | 65 41 6c 6c 29 20 69 6e |c,replac|eAll) in|
|00005780| 74 6f 20 66 6c 64 20 69 | 64 20 69 0d 69 66 20 69 |to fld i|d i.if i|
|00005790| 74 20 74 68 65 6e 20 65 | 78 69 74 20 72 65 70 65 |t then e|xit repe|
|000057a0| 61 74 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 65 6e |at.end r|epeat.en|
|000057b0| 64 20 69 66 0d 62 69 6e | 6b 0d 65 6e 64 20 72 65 |d if.bin|k.end re|
|000057c0| 70 6c 61 63 65 54 65 78 | 74 0d 0d 66 75 6e 63 74 |placeTex|t..funct|
|000057d0| 69 6f 6e 20 67 72 65 70 | 43 6f 6e 76 65 72 74 20 |ion grep|Convert |
|000057e0| 69 0d 67 65 74 20 72 65 | 70 28 69 2c 22 5c 6c 22 |i.get re|p(i,"\l"|
|000057f0| 2c 6e 75 6d 54 6f 43 68 | 61 72 28 31 30 29 29 0d |,numToCh|ar(10)).|
|00005800| 67 65 74 20 72 65 70 28 | 69 74 2c 22 5c 6e 22 2c |get rep(|it,"\n",|
|00005810| 72 65 74 75 72 6e 26 6e | 75 6d 54 6f 43 68 61 72 |return&n|umToChar|
|00005820| 28 31 30 29 29 0d 67 65 | 74 20 72 65 70 28 69 74 |(10)).ge|t rep(it|
|00005830| 2c 22 5c 72 22 2c 72 65 | 74 75 72 6e 29 0d 67 65 |,"\r",re|turn).ge|
|00005840| 74 20 72 65 70 28 69 74 | 2c 22 5c 73 22 2c 73 70 |t rep(it|,"\s",sp|
|00005850| 61 63 65 29 0d 67 65 74 | 20 72 65 70 28 69 74 2c |ace).get| rep(it,|
|00005860| 22 5c 74 22 2c 74 61 62 | 29 0d 72 65 74 75 72 6e |"\t",tab|).return|
|00005870| 20 69 74 0d 65 6e 64 20 | 67 72 65 70 43 6f 6e 76 | it.end |grepConv|
|00005880| 65 72 74 0d 0d 6f 6e 20 | 74 61 62 6c 65 43 6f 6e |ert..on |tableCon|
|00005890| 76 65 72 74 0d 69 66 20 | 65 6d 70 74 79 53 65 6c |vert.if |emptySel|
|000058a0| 65 63 74 69 6f 6e 28 29 | 20 74 68 65 6e 20 65 78 |ection()| then ex|
|000058b0| 69 74 20 74 61 62 6c 65 | 43 6f 6e 76 65 72 74 20 |it table|Convert |
|000058c0| 65 6c 73 65 20 73 65 74 | 55 6e 64 6f 0d 73 65 74 |else set|Undo.set|
|000058d0| 20 63 75 72 73 6f 72 20 | 74 6f 20 77 61 74 63 68 | cursor |to watch|
|000058e0| 0d 70 75 74 20 74 68 65 | 20 73 65 6c 65 63 74 69 |.put the| selecti|
|000058f0| 6f 6e 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |on into |theText.|
|00005900| 70 75 74 20 63 64 20 66 | 6c 64 20 69 64 20 32 37 |put cd f|ld id 27|
|00005910| 20 6f 66 20 63 64 20 22 | 70 72 65 66 73 22 20 69 | of cd "|prefs" i|
|00005920| 6e 74 6f 20 73 6f 75 72 | 63 65 43 68 61 72 73 0d |nto sour|ceChars.|
|00005930| 70 75 74 20 63 64 20 66 | 6c 64 20 69 64 20 32 38 |put cd f|ld id 28|
|00005940| 20 6f 66 20 63 64 20 22 | 70 72 65 66 73 22 20 69 | of cd "|prefs" i|
|00005950| 6e 74 6f 20 72 65 70 6c | 61 63 65 43 68 61 72 73 |nto repl|aceChars|
|00005960| 0d 70 75 74 20 6e 75 6d | 62 65 72 28 6c 69 6e 65 |.put num|ber(line|
|00005970| 73 20 69 6e 20 73 6f 75 | 72 63 65 43 68 61 72 73 |s in sou|rceChars|
|00005980| 29 20 69 6e 74 6f 20 65 | 6e 64 4f 70 0d 72 65 70 |) into e|ndOp.rep|
|00005990| 65 61 74 20 77 69 74 68 | 20 69 20 3d 20 31 20 74 |eat with| i = 1 t|
|000059a0| 6f 20 65 6e 64 4f 70 0d | 67 65 74 20 63 68 61 72 |o endOp.|get char|
|000059b0| 20 31 20 6f 66 20 6c 69 | 6e 65 20 69 20 6f 66 20 | 1 of li|ne i of |
|000059c0| 73 6f 75 72 63 65 43 68 | 61 72 73 0d 69 66 20 69 |sourceCh|ars.if i|
|000059d0| 74 20 3d 20 72 65 74 75 | 72 6e 20 74 68 65 6e 20 |t = retu|rn then |
|000059e0| 6e 65 78 74 20 72 65 70 | 65 61 74 0d 65 6c 73 65 |next rep|eat.else|
|000059f0| 20 69 66 20 69 74 20 ad | 20 22 22 20 74 68 65 6e | if it .| "" then|
|00005a00| 0d 70 75 74 20 6c 69 6e | 65 20 69 20 6f 66 20 72 |.put lin|e i of r|
|00005a10| 65 70 6c 61 63 65 43 68 | 61 72 73 20 69 6e 74 6f |eplaceCh|ars into|
|00005a20| 20 72 0d 69 66 20 6c 61 | 73 74 20 63 68 61 72 20 | r.if la|st char |
|00005a30| 6f 66 20 72 20 3d 20 72 | 65 74 75 72 6e 20 74 68 |of r = r|eturn th|
|00005a40| 65 6e 20 64 65 6c 65 74 | 65 20 6c 61 73 74 20 63 |en delet|e last c|
|00005a50| 68 61 72 20 6f 66 20 72 | 0d 70 75 74 20 72 65 70 |har of r|.put rep|
|00005a60| 28 74 68 65 54 65 78 74 | 2c 69 74 2c 72 29 20 69 |(theText|,it,r) i|
|00005a70| 6e 74 6f 20 74 68 65 54 | 65 78 74 0d 65 6e 64 20 |nto theT|ext.end |
|00005a80| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 70 75 |if.end r|epeat.pu|
|00005a90| 74 20 74 68 65 54 65 78 | 74 20 69 6e 74 6f 20 74 |t theTex|t into t|
|00005aa0| 68 65 20 73 65 6c 65 63 | 74 69 6f 6e 0d 62 69 6e |he selec|tion.bin|
|00005ab0| 6b 0d 65 6e 64 20 74 61 | 62 6c 65 43 6f 6e 76 65 |k.end ta|bleConve|
|00005ac0| 72 74 0d 0d 6f 6e 20 73 | 65 74 4c 46 20 6d 6f 64 |rt..on s|etLF mod|
|00005ad0| 65 0d 73 65 74 55 6e 64 | 6f 0d 73 65 74 20 63 75 |e.setUnd|o.set cu|
|00005ae0| 72 73 6f 72 20 74 6f 20 | 77 61 74 63 68 0d 6c 6f |rsor to |watch.lo|
|00005af0| 63 6b 20 73 63 72 65 65 | 6e 0d 70 75 74 20 6e 75 |ck scree|n.put nu|
|00005b00| 6d 54 6f 43 68 61 72 28 | 31 30 29 20 69 6e 74 6f |mToChar(|10) into|
|00005b10| 20 4c 46 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 | LF.repe|at with |
|00005b20| 69 20 3d 20 31 20 74 6f | 20 33 0d 69 66 20 6d 6f |i = 1 to| 3.if mo|
|00005b30| 64 65 20 74 68 65 6e 0d | 70 75 74 20 72 65 70 28 |de then.|put rep(|
|00005b40| 66 6c 64 20 69 64 20 69 | 2c 72 65 74 75 72 6e 2c |fld id i|,return,|
|00005b50| 72 65 74 75 72 6e 26 4c | 46 29 20 69 6e 74 6f 20 |return&L|F) into |
|00005b60| 66 6c 64 20 69 64 20 69 | 0d 69 66 20 63 68 61 72 |fld id i|.if char|
|00005b70| 20 31 20 6f 66 20 66 6c | 64 20 69 64 20 69 20 ad | 1 of fl|d id i .|
|00005b80| 20 4c 46 20 74 68 65 6e | 0d 70 75 74 20 4c 46 20 | LF then|.put LF |
|00005b90| 62 65 66 6f 72 65 20 66 | 6c 64 20 69 64 20 69 0d |before f|ld id i.|
|00005ba0| 65 6e 64 20 69 66 0d 65 | 6c 73 65 20 70 75 74 20 |end if.e|lse put |
|00005bb0| 72 65 70 28 66 6c 64 20 | 69 64 20 69 2c 4c 46 29 |rep(fld |id i,LF)|
|00005bc0| 20 69 6e 74 6f 20 66 6c | 64 20 69 64 20 69 0d 65 | into fl|d id i.e|
|00005bd0| 6e 64 20 72 65 70 65 61 | 74 0d 75 6e 6c 6f 63 6b |nd repea|t.unlock|
|00005be0| 20 73 63 72 65 65 6e 0d | 65 6e 64 20 73 65 74 4c | screen.|end setL|
|00005bf0| 46 0d 0d 6f 6e 20 75 6e | 77 72 61 70 0d 69 66 20 |F..on un|wrap.if |
|00005c00| 65 6d 70 74 79 53 65 6c | 65 63 74 69 6f 6e 28 29 |emptySel|ection()|
|00005c10| 20 74 68 65 6e 20 65 78 | 69 74 20 75 6e 77 72 61 | then ex|it unwra|
|00005c20| 70 20 65 6c 73 65 20 73 | 65 74 55 6e 64 6f 0d 70 |p else s|etUndo.p|
|00005c30| 75 74 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |ut the s|election|
|00005c40| 20 69 6e 74 6f 20 74 68 | 65 54 65 78 74 0d 73 65 | into th|eText.se|
|00005c50| 74 20 63 75 72 73 6f 72 | 20 74 6f 20 77 61 74 63 |t cursor| to watc|
|00005c60| 68 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 70 75 |h.lock s|creen.pu|
|00005c70| 74 20 72 65 70 28 74 68 | 65 54 65 78 74 2c 72 65 |t rep(th|eText,re|
|00005c80| 74 75 72 6e 26 72 65 74 | 75 72 6e 2c 22 a6 22 29 |turn&ret|urn,".")|
|00005c90| 20 69 6e 74 6f 20 74 68 | 65 54 65 78 74 0d 70 75 | into th|eText.pu|
|00005ca0| 74 20 72 65 70 28 74 68 | 65 54 65 78 74 2c 72 65 |t rep(th|eText,re|
|00005cb0| 74 75 72 6e 2c 22 20 22 | 29 20 69 6e 74 6f 20 74 |turn," "|) into t|
|00005cc0| 68 65 54 65 78 74 0d 70 | 75 74 20 72 65 70 28 74 |heText.p|ut rep(t|
|00005cd0| 68 65 54 65 78 74 2c 22 | a6 22 2c 72 65 74 75 72 |heText,"|.",retur|
|00005ce0| 6e 29 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |n) into |theText.|
|00005cf0| 70 75 74 20 74 68 65 54 | 65 78 74 20 69 6e 74 6f |put theT|ext into|
|00005d00| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 0d 75 | the sel|ection.u|
|00005d10| 6e 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 62 69 6e |nlock sc|reen.bin|
|00005d20| 6b 0d 65 6e 64 20 75 6e | 77 72 61 70 0d 0d 6f 6e |k.end un|wrap..on|
|00005d30| 20 44 65 48 54 4d 4c 0d | 69 66 20 6f 70 74 69 6f | DeHTML.|if optio|
|00005d40| 6e 4b 65 79 28 29 20 ad | 20 64 6f 77 6e 20 74 68 |nKey() .| down th|
|00005d50| 65 6e 20 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 69 |en lock |screen.i|
|00005d60| 66 20 65 6d 70 74 79 53 | 65 6c 65 63 74 69 6f 6e |f emptyS|election|
|00005d70| 28 29 20 74 68 65 6e 20 | 65 78 69 74 20 44 65 48 |() then |exit DeH|
|00005d80| 54 4d 4c 20 65 6c 73 65 | 20 73 65 74 55 6e 64 6f |TML else| setUndo|
|00005d90| 0d 70 75 74 20 74 68 65 | 20 73 65 6c 65 63 74 69 |.put the| selecti|
|00005da0| 6f 6e 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |on into |theText.|
|00005db0| 70 75 74 20 22 48 54 4d | 4c 2c 48 45 41 44 2c 54 |put "HTM|L,HEAD,T|
|00005dc0| 49 54 4c 45 2c 42 4f 44 | 59 2c 48 31 2c 48 32 2c |ITLE,BOD|Y,H1,H2,|
|00005dd0| 48 33 2c 48 34 2c 48 35 | 2c 48 36 2c 42 2c 49 2c |H3,H4,H5|,H6,B,I,|
|00005de0| 54 54 2c 55 2c 53 2c 53 | 55 50 2c 53 55 42 2c 43 |TT,U,S,S|UP,SUB,C|
|00005df0| 4f 44 45 2c 43 49 54 45 | 2c 44 46 4e 2c 45 4d 2c |ODE,CITE|,DFN,EM,|
|00005e00| 53 54 52 4f 4e 47 2c 22 | 26 c2 0d 22 4b 42 44 2c |STRONG,"|&.."KBD,|
|00005e10| 53 41 4d 50 2c 56 41 52 | 2c 45 4d 2c 53 54 52 4f |SAMP,VAR|,EM,STRO|
|00005e20| 4e 47 2c 43 49 54 45 2c | 54 54 2c 50 52 45 2c 50 |NG,CITE,|TT,PRE,P|
|00005e30| 4c 41 49 4e 54 45 58 54 | 2c 41 44 44 52 45 53 53 |LAINTEXT|,ADDRESS|
|00005e40| 2c 42 4c 4f 43 4b 51 55 | 4f 54 45 2c 55 4c 2c 44 |,BLOCKQU|OTE,UL,D|
|00005e50| 49 52 2c 44 4c 2c 4c 49 | 53 54 49 4e 47 2c 4d 45 |IR,DL,LI|STING,ME|
|00005e60| 4e 55 2c 4f 4c 22 20 69 | 6e 74 6f 20 63 6f 64 65 |NU,OL" i|nto code|
|00005e70| 4c 69 73 74 0d 70 75 74 | 20 6e 75 6d 62 65 72 28 |List.put| number(|
|00005e80| 69 74 65 6d 73 20 69 6e | 20 63 6f 64 65 4c 69 73 |items in| codeLis|
|00005e90| 74 29 20 69 6e 74 6f 20 | 65 6e 64 4f 70 0d 70 72 |t) into |endOp.pr|
|00005ea0| 6f 67 72 65 73 73 57 69 | 6e 64 6f 77 20 22 a9 44 |ogressWi|ndow ".D|
|00005eb0| 6f 6d 65 22 2c 22 50 72 | 6f 67 72 65 73 73 22 2c |ome","Pr|ogress",|
|00005ec0| 22 52 65 6d 6f 76 69 6e | 67 20 48 54 4d 4c 20 43 |"Removin|g HTML C|
|00005ed0| 6f 64 65 73 c9 22 26 72 | 65 74 75 72 6e 26 22 54 |odes."&r|eturn&"T|
|00005ee0| 79 70 65 20 11 2d 2e 20 | 74 6f 20 68 61 6c 74 20 |ype .-. |to halt |
|00005ef0| 70 72 6f 63 65 73 73 69 | 6e 67 2e 22 2c 34 31 33 |processi|ng.",413|
|00005f00| 30 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 69 20 |0.repeat| with i |
|00005f10| 3d 20 31 20 74 6f 20 65 | 6e 64 4f 70 0d 62 7a 0d |= 1 to e|ndOp.bz.|
|00005f20| 67 65 74 20 69 74 65 6d | 20 69 20 6f 66 20 63 6f |get item| i of co|
|00005f30| 64 65 4c 69 73 74 0d 70 | 75 74 20 72 65 70 28 74 |deList.p|ut rep(t|
|00005f40| 68 65 54 65 78 74 2c 22 | 3c 22 26 69 74 26 22 3e |heText,"|<"&it&">|
|00005f50| 22 29 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |") into |theText.|
|00005f60| 70 75 74 20 72 65 70 28 | 74 68 65 54 65 78 74 2c |put rep(|theText,|
|00005f70| 22 3c 2f 22 26 69 74 26 | 22 3e 22 29 20 69 6e 74 |"</"&it&|">") int|
|00005f80| 6f 20 74 68 65 54 65 78 | 74 0d 69 66 20 76 69 7a |o theTex|t.if viz|
|00005f90| 28 22 50 72 6f 67 72 65 | 73 73 22 29 20 74 68 65 |("Progre|ss") the|
|00005fa0| 6e 20 73 65 74 20 74 68 | 65 50 65 72 63 65 6e 74 |n set th|ePercent|
|00005fb0| 20 6f 66 20 77 69 6e 64 | 6f 77 20 22 50 72 6f 67 | of wind|ow "Prog|
|00005fc0| 72 65 73 73 22 20 74 6f | 20 28 69 2f 65 6e 64 4f |ress" to| (i/endO|
|00005fd0| 70 29 2a 31 30 30 20 65 | 6c 73 65 20 62 7a 0d 65 |p)*100 e|lse bz.e|
|00005fe0| 6e 64 20 72 65 70 65 61 | 74 0d 70 75 74 20 72 65 |nd repea|t.put re|
|00005ff0| 70 28 74 68 65 54 65 78 | 74 2c 22 3c 50 3e 22 29 |p(theTex|t,"<P>")|
|00006000| 20 69 6e 74 6f 20 74 68 | 65 54 65 78 74 0d 70 75 | into th|eText.pu|
|00006010| 74 20 72 65 70 28 74 68 | 65 54 65 78 74 2c 22 3c |t rep(th|eText,"<|
|00006020| 4c 49 3e 22 29 20 69 6e | 74 6f 20 74 68 65 54 65 |LI>") in|to theTe|
|00006030| 78 74 0d 62 7a 0d 70 75 | 74 20 72 65 70 28 74 68 |xt.bz.pu|t rep(th|
|00006040| 65 54 65 78 74 2c 22 3c | 48 52 3e 22 29 20 69 6e |eText,"<|HR>") in|
|00006050| 74 6f 20 74 68 65 54 65 | 78 74 0d 70 75 74 20 72 |to theTe|xt.put r|
|00006060| 65 70 28 74 68 65 54 65 | 78 74 2c 22 3c 42 52 3e |ep(theTe|xt,"<BR>|
|00006070| 22 29 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |") into |theText.|
|00006080| 62 7a 0d 70 75 74 20 72 | 65 70 28 74 68 65 54 65 |bz.put r|ep(theTe|
|00006090| 78 74 2c 22 3c 44 54 3e | 22 29 20 69 6e 74 6f 20 |xt,"<DT>|") into |
|000060a0| 74 68 65 54 65 78 74 0d | 70 75 74 20 72 65 70 28 |theText.|put rep(|
|000060b0| 74 68 65 54 65 78 74 2c | 22 3c 44 44 3e 22 29 20 |theText,|"<DD>") |
|000060c0| 69 6e 74 6f 20 74 68 65 | 54 65 78 74 0d 69 66 20 |into the|Text.if |
|000060d0| 76 69 7a 28 22 50 72 6f | 67 72 65 73 73 22 29 20 |viz("Pro|gress") |
|000060e0| 74 68 65 6e 20 63 6c 6f | 73 65 20 77 69 6e 64 6f |then clo|se windo|
|000060f0| 77 20 22 50 72 6f 67 72 | 65 73 73 22 0d 70 75 74 |w "Progr|ess".put|
|00006100| 20 74 68 65 54 65 78 74 | 20 69 6e 74 6f 20 74 68 | theText| into th|
|00006110| 65 20 73 65 6c 65 63 74 | 69 6f 6e 0d 75 6e 6c 6f |e select|ion.unlo|
|00006120| 63 6b 20 73 63 72 65 65 | 6e 0d 65 6e 64 20 44 65 |ck scree|n.end De|
|00006130| 48 54 4d 4c 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 64 |HTML..fu|nction d|
|00006140| 65 6c 65 74 65 48 54 4d | 4c 20 65 6e 64 43 6f 64 |eleteHTM|L endCod|
|00006150| 65 2c 66 6c 64 49 44 20 | 2d 2d 20 65 78 2e 20 28 |e,fldID |-- ex. (|
|00006160| 22 3c 42 4f 44 59 3e 22 | 2c 31 32 33 29 0d 2d 2d |"<BODY>"|,123).--|
|00006170| 20 67 69 76 65 6e 20 3c | 58 3e 2c 20 64 65 6c 65 | given <|X>, dele|
|00006180| 74 65 20 61 6c 6c 20 6f | 63 63 20 69 6e 20 48 42 |te all o|cc in HB|
|00006190| 46 20 6f 66 20 3c 58 3e | 20 26 20 3c 2f 58 3e 2c |F of <X>| & </X>,|
|000061a0| 20 72 65 74 75 72 6e 73 | 20 54 52 55 45 20 69 66 | returns| TRUE if|
|000061b0| 20 63 68 61 6e 67 65 73 | 0d 67 65 74 20 46 41 4c | changes|.get FAL|
|000061c0| 53 45 0d 70 75 74 20 65 | 6e 64 43 6f 64 65 20 69 |SE.put e|ndCode i|
|000061d0| 6e 74 6f 20 73 74 61 72 | 74 43 6f 64 65 0d 70 75 |nto star|tCode.pu|
|000061e0| 74 20 22 2f 22 20 61 66 | 74 65 72 20 63 68 61 72 |t "/" af|ter char|
|000061f0| 20 31 20 6f 66 20 65 6e | 64 43 6f 64 65 0d 72 65 | 1 of en|dCode.re|
|00006200| 70 65 61 74 20 77 69 74 | 68 20 6b 20 3d 20 31 20 |peat wit|h k = 1 |
|00006210| 74 6f 20 6c 65 6e 67 74 | 68 28 66 6c 64 49 44 29 |to lengt|h(fldID)|
|00006220| 0d 70 75 74 20 63 68 61 | 72 20 6b 20 6f 66 20 66 |.put cha|r k of f|
|00006230| 6c 64 49 44 20 69 6e 74 | 6f 20 69 0d 69 66 20 73 |ldID int|o i.if s|
|00006240| 74 61 72 74 43 6f 64 65 | 20 69 73 20 69 6e 20 66 |tartCode| is in f|
|00006250| 6c 64 20 69 64 20 69 20 | 6f 72 20 65 6e 64 43 6f |ld id i |or endCo|
|00006260| 64 65 20 69 73 20 69 6e | 20 66 6c 64 20 69 64 20 |de is in| fld id |
|00006270| 69 20 74 68 65 6e 20 67 | 65 74 20 54 52 55 45 0d |i then g|et TRUE.|
|00006280| 70 75 74 20 72 65 70 28 | 66 6c 64 20 69 64 20 69 |put rep(|fld id i|
|00006290| 2c 73 74 61 72 74 43 6f | 64 65 29 20 69 6e 74 6f |,startCo|de) into|
|000062a0| 20 66 6c 64 20 69 64 20 | 69 0d 70 75 74 20 72 65 | fld id |i.put re|
|000062b0| 70 28 66 6c 64 20 69 64 | 20 69 2c 65 6e 64 43 6f |p(fld id| i,endCo|
|000062c0| 64 65 29 20 69 6e 74 6f | 20 66 6c 64 20 69 64 20 |de) into| fld id |
|000062d0| 69 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 72 65 74 |i.end re|peat.ret|
|000062e0| 75 72 6e 20 69 74 0d 65 | 6e 64 20 64 65 6c 65 74 |urn it.e|nd delet|
|000062f0| 65 48 54 4d 4c 0d 0d 6f | 6e 20 70 72 6f 63 45 72 |eHTML..o|n procEr|
|00006300| 72 6f 72 20 6d 73 67 0d | 61 6e 73 77 65 72 20 22 |ror msg.|answer "|
|00006310| 48 54 4d 4c 20 53 59 4e | 54 41 58 20 45 52 52 4f |HTML SYN|TAX ERRO|
|00006320| 52 3a 22 26 72 65 74 75 | 72 6e 26 6d 73 67 26 72 |R:"&retu|rn&msg&r|
|00006330| 65 74 75 72 6e 26 72 65 | 74 75 72 6e 26 22 54 68 |eturn&re|turn&"Th|
|00006340| 65 20 74 65 78 74 20 70 | 61 72 73 65 72 20 77 69 |e text p|arser wi|
|00006350| 6c 6c 20 6e 6f 74 20 70 | 72 6f 63 65 73 73 20 74 |ll not p|rocess t|
|00006360| 68 69 73 20 48 54 4d 4c | 20 63 6f 64 65 2e 22 20 |his HTML| code." |
|00006370| 77 69 74 68 20 22 43 6f | 6e 74 69 6e 75 65 22 0d |with "Co|ntinue".|
|00006380| 65 78 69 74 20 74 6f 20 | 48 79 70 65 72 43 61 72 |exit to |HyperCar|
|00006390| 64 0d 65 6e 64 20 70 72 | 6f 63 45 72 72 6f 72 0d |d.end pr|ocError.|
|000063a0| 0d 2d 2d 20 a5 20 66 75 | 6e 63 74 69 6f 6e 73 0d |.-- . fu|nctions.|
|000063b0| 0d 6f 6e 20 6b 65 79 44 | 6f 77 6e 0d 67 6c 6f 62 |.on keyD|own.glob|
|000063c0| 61 6c 20 75 6e 64 6f 6e | 65 0d 70 75 74 20 46 41 |al undon|e.put FA|
|000063d0| 4c 53 45 20 69 6e 74 6f | 20 75 6e 64 6f 6e 65 0d |LSE into| undone.|
|000063e0| 70 61 73 73 20 6b 65 79 | 44 6f 77 6e 0d 65 6e 64 |pass key|Down.end|
|000063f0| 20 6b 65 79 44 6f 77 6e | 0d 0d 6f 6e 20 73 65 74 | keyDown|..on set|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.