HTMLOL edit macro

Macro name. HTMLOL Edit macro HTMLOL
users. HTML authors Author: David McRitchie
type. Edit Macro resides in d:\spfmacro  for use with SPF/PC
HTMLOL Edit macro checks syntax of ordered lists, unordered lists, and menu lists.
Related HTMLSYN, HTMLOL, QCHK
Related HTMLDOC, EDITOL, EDITCHK

HTMLOL provides for a simple syntax check of HTML coding of ordered lists (<ol> ... </ol>), unordered lists (<ul> ... </ul>), and menu lists (<menu> ... </menu>).

htmlsyn is a related macro that can be used to check pairing of tags that must be matched. Also checks for misuse of ampersands.

After cleaning up the code with HTMLSYN and HTMLOL a rigorous HTML check can be provided by for a web validator such as checking to Level 3.2 (Wilber) at WEBTECHS.

Web validators will find errors but the first error may cause numerous additional errors to be reported. So the use of HTMLOL as a preliminary is highly recommeded.  Other validators can be found in Yahoo.


ISREDIT  EDITOL  [lptr-range | ENTIRE]  [NX | X]  [LEFT | RIGHT]  [LVL1]  [LVL2]  [LVL3]  [NEST]

lptr-rangeindicates that two line pointers are required to indicate a range of lines to be deleted. The line pointers must be a labels. Specifying one line pointer is invalid. 
NXAffects only lines that are NOT EXCLUDED from the display Option X for excluded lines only is not permitted.
XAffects only lines that are EXCLUDED from the display Option X for excluded lines only is not permitted.
LVL1 Display (NX) the level one index lines (<li>). 
LVLn may be combined with other LVLn options.
LVL2 Display (NX) the level two index lines (<li>). 
LVL3 Display (NX) the level three index lines (<li>). 
NEST Display the level information for each group. <ol>, <ul>, <menu>

Examples:

SPF/PC(1) EDIT C:\TEMP\TEST.HTM ------------------------------- COLUMNS 001 072
COMMAND ===> HTMLOL                                           SCROLL ===> CSR
****** ********************************* TOP OF DATA **************************
------ --------------------------- 3 LINE(S) NOT DISPLAYED --------------------
000004 <h1>xxxxx
000005 <ol>
000006 <li>item one
000007 <li>item two
000008 <li>item three
000009 </ol>
000010 <menu>
000011 <li>first item in simple list
000012 <li>last item in simple list
000013 </ul>
000014 The above line is in error s/b </menu>
000015 <ul>
000016 <li>This item is not within any list
000017 </menu>
000018 <ul>
000019 <li>item #1
000020 <li>item #2
000021 <h2.Topic heading ....
000022 </ul> <--- this is in error must be above <h2
------ --------------------------- 3 LINE(S) NOT DISPLAYED --------------------
****** ******************************** BOTTOM OF DATA ************************

After entering ==> HTMLOL

SPF/PC(1) EDIT C:\TEMP\TEST.HTM ------------------------------- COLUMNS 001 072
COMMAND ===>                                                  SCROLL ===> CSR
****** ********************************* TOP OF DATA **************************
=NOTE= HTMLOL OPTIONS AVAILABLE INCLUDE  -- LVL1 LVL2 LVL3 NEST
------ -  -   -  -  -  3 LINE(S) NOT DISPLAYED
000004 <h1>xxxxx
000005 <ol>
000006 <li>item one
000007 <li>item two
000008 <li>item three
000009 </ol>
000010 <menu>
000011 <li>first item in simple list
000012 <li>last item in simple list
000013 </ul>
=NOTE= LEVEL=0  OL=0 SL=0 UL=-1 DL=0 -- 18:02:27
=NOTE= EXPECTING </MENU> FOUND </UL> UNMATCHED TO <MENU> LINE 10
000014 The above line is in error s/b </menu>
000015 <ul>
000016 <li>This item is not within any list
000017 </menu>
=NOTE= EXPECTING </UL> FOUND </MENU> UNMATCHED TO <UL> LINE 15
000018 <ul>
000019 <li>item #1
000020 <li>item #2
000021 <h2.Topic heading ....
000022 </ul> <--- this is in error must be above <h2
------ -  -   -  -  -  3 LINE(S) NOT DISPLAYED
=NOTE= LEVEL =0  OL=0  SL=0 UL=0 DL=0 GL=0 --  18:02:27
****** ******************************** BOTTOM OF DATA ************************

SPF/PC(1) EDIT C:\TEMP\TEST.HTM ------------------------------- COLUMNS 001 072
COMMAND ===> HTMLOL LVL2                                      SCROLL ===> CSR
****** ********************************* TOP OF DATA **************************
------ --------------------------- 7 LINE(S) NOT DISPLAYED --------------------
000008 <ol>
000009 <li>item 1 one
000010 <li>item 2 two
000011 <ol>
000012 <li>item 2.1
000013 <li>item 2.2
000014 <ol>
000015 <li>item 2.2.1
000016 <li>item 2.2.2
000017 </ol>
000018 <li>item 2.3
000019 <li>item 2.4
000020 </ol>
000021 <li>item 3 three
000022 </ol>
000023 - - - - - - - - - - - - - - - - - - - - - - 17 LINES(S) NOT DISPLAYED
****** ******************************** BOTTOM OF DATA ************************

After entering ==> HTMLOL lvl2

SPF/PC(1) EDIT C:\TEMP\TEST.HTM ------------------------------- COLUMNS 001 072
COMMAND ===> print                                            SCROLL ===> CSR
****** ********************************* TOP OF DATA **************************
=NOTE= HTMLOL OPTIONS AVAILABLE INCLUDE  -- LVL1 LVL2 LVL3 NEST
------ --------------------------- 10 LINE(S) NOT DISPLAYED -------------------
000011 <ol>
000012 <li>item 2.1
000013 <li>item 2.2
------ --------------------------- 1 LINE(S) NOT DISPLAYED --------------------
000015 <li>item 2.2.1
000016 <li>item 2.2.2
000017 </ol>
000018 <li>item 2.3
000019 <li>item 2.4
000020 </ol>
------ --------------------------- 3 LINE(S) NOT DISPLAYED --------------------
=NOTE= LEVEL =0  OL=0  SL=0 UL=0 DL=0 GL=0 --  19:07:41
****** ******************************** BOTTOM OF DATA ************************

Internal Aspects:    [SPF/PC code] 

Because this edit macro checks nesting, it can also DISPLAY (NX) level 1 list (<li>) lines using LVL1 option.  The LVL2 option works in the same manner and can be used separately or in conjunction with LVL1.  If using both you might wish to use LABNX after doing LVL2 and the do- ing LVL1.


You are visitor  ctr since count started June 5, 1997.

Related Information and Comments

Please send your comments concerning my pages or materials to:  David using send email comments

Disclaimer and site usage:  Material at The REXX Macros Toolbox is available without warranty of any kind.  Redistribution of source, coding and documentation other than from this site is prohibited.

Copyright © 1995 - 2006, F. David McRitchie, All Rights Reserved