Macro name. HTMLSYN | Edit macro HTMLSYN | |
users. | HTML authors | Author: David McRitchie |
type. |
Edit Macro resides in d:\spfmacro for use with SPF/PC | |
HTMLSYN | Edit macro checks for pairing of tags that must be matched. Also checks for misuse of ampersands. | |
Related | HTMLOL, HTMLSYN, QCHK | |
Related | QCHK EDITOL, EDITCHK, PLICHK, | |
Related | HTMLDOC, | |
Related | WebTechs HTML Validation Service -- Comprehensive check of HTML coding. | |
Related | HTML 3.2 Reference Specification -- HTML Reference just like it says. (Suggest keeping a copy on your C: drive and bookmarking it, near top of bookmarks) |
HTMLSYN provides for a simple syntax check of HTML coding. The emphasize is on checking for mismatched HTML tags. It also checks for some additional errors that I frequently make based on previous experience with DCF.
htmlol is a related macro that can be used to check nesting levels of <li> within <ol>...</ol>, <ul>...</ul>, and <menu>...</menu>.
After cleaning up the code 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.
Q | Quick option bypasses checking of matched "<" to ">" pairings. |
FORCE | FORCE testing on non HTML code (.htm, .html). |
left right | Special test for one tag pair. |
Examples:
Results of HTMLSYN use
SPF/PC(1) EDIT C:\TEMP\JUNK.HTM ------------------------------- COLUMNS ... ... COMMAND ===> HTMLSYN SCROLL ===> CSR ****** ********************************* TOP OF DATA ************************** 000001 ?HTML> 000002 <body> 000003 <P> 000004 <b><u>>example</u></b> 000005 AT&T 000006 "Within quotes" 000007 </body> 000008 </html> 000009 <PRE> ****** ******************************** BOTTOM OF DATA ************************ SPF/PC(1) EDIT C:\TEMP\JUNK.HTM ------------------------------- COLUMNS ... ... COMMAND ===> SCROLL ===> CSR ****** ********************************* TOP OF DATA ************************** ==msg>= HTMLSYN 10:15:46.010000 0 bounds 001 700 (at start) 001 100 ==msg>= ...important tags missing: <html> <head> <title> ==msg>= HTMLSYN 10:15:46.230000 finished in 0.220000 seconds 000001 ?HTML> ==msg>= extraneous termination > at 000001 006 000002 <body> 000003 <P> 000004 <b><u>>example</u></b> ==msg>= extraneous termination > at 000004 007 ==msg>= 1...5...10...15...20...25...30...35...40...45...50...55...60...65...70.. 000005 AT&T ==msg>= Check use of ampersand(s)|symbol at/after 000005 003 perhaps s/b & ==msg>= Valid symbols look like-- & > < " ==msg>= . Á ... ÿ 	 ... ÿ 000006 "Within quotes" ==msg>= " -- accidentally dropped from HTML 3.2 lang -- use ", x(00000002) 000007 </body> 000008 </html> ==msg>= extraneous termination </html> at 000008 001 no more <html> thru EOF =note= Extra lines after </HTML> 000009 <PRE> ****** ******************************** BOTTOM OF DATA ************************
Internal Aspects:
[SPF/PC code]
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