Site map
•
Home > Software > Offline HTML Validator
Software |
||||
Offline HTML Validator |
The Off-line Validator clipbook gives NoteTab users a convenient and easy-to-use interface to James Clark's SGML Parser, which is widely recognized for its great performance and reliability. This allows very efficient off-line validation of edited web pages (without the Internet connection), and the level of rigor is practically the same as that of W3C HTML Validator. Note that this is real validation, since the syntax of the document is checked against the SGML definition of the corresponding mark-up language.
This clipbook consists of three groups of macros:
DOCTYPE
and charset
declarations.Besides this, a corresponding clipbar with a set of toolbar icons is provided for use in NoteTab Pro and NoteTab Standard.
"C:\Program Files\NoteTab Pro"
or "C:\Program Files\NoteTab Light"
)
The clipbook, the clipbar, and clipbar icons will be added to the NoteTab "Libraries" subdirectory, and the subdirectory called "sp" will be created. The "sp" subdirectory contains James Clark's SGML parser binaries for 32-bit Windows, parser's documentation, and document type definitions.
In may happen that you will need to enlarge the memory allocated for environment variables. For example, in Windows 95/98 you may need to add the following line to your CONFIG.SYS file:
SHELL=C:\WINDOWS\COMMAND.COM /e:4096 /p
Another possible method is to locate the file called "validate.bat
" in the "sp" subdirectory,
right-click on it and select "Properties" in the context menu. Then click on "Memory" tab, and enlarge the memory
for environment variables there.
To use the clipbook, select "Validate" in the clipbook list. In NoteTab Pro/Std you can also enable the clipbar (menu View-Clipbar-Validate).
Open a document which you like to validate. To perform validation, for example, against XHTML 1.0, run "XHTML 1.0" macro either from the clipbook window or from the the clipbar.
If there are errors, they will be shown in a separate document window.
To jump to the position where the first error in the document was detected, run "First ERROR" macro. You will be taken there, and the description of this particular error will be shown in a message box. If appropriate, the corresponding tag will be highlighted. (Note: the line number in the message box is actually the paragraph number; if line wrap is off, the line number is equal to the paragraph number.)
To browse through the errors, you can use "Next ERROR" and "Previous ERROR". However, it can be recommended to correct the first detected error, and then run validation again – many of other errors may dissappear after fixing the first error.
NOTE: Currently, this Off-line Validator validates the disc files, and not on what you see (unsaved yet) on the screen. Don't forget to save the edited file before running the Validator again (I thank Frank Abbing who suggested to include this statement in this on-line manual).
If there are no errors, the corresponding message will appear.
One should realize that brilliant, intelligent, and highly recommended for daily use HTML Tidy utility is NOT a validator.
To realize this, it is sufficient to mention that it does not work with DTDs. Due to this, it often oversights improper parameters in tags, etc.
On the other hand, HTML Tidy can fix properly most of errors in mark-up code (wrong nesting of tags, missing ends of tags, etc.), re-format the code nicely with indents of nested tags, transform HTML to XHTML, clean terrific MS Word 97/2000 HTML output, and do many other things, which any validator will not do for you.
Not every file which passed through Tidy will pass through a validator. However, after Tidy there will be less errors to handle manually.
Speaking shortly, use both Tidy and some Validator. Using NoteTab is ideal because of its built-in support for Tidy, existing Grant MacKenzie's HtmlTidy NoteTab clipbook for fine-tuning Tidy, and the existence of this Off-Line Validator clipbook for NoteTab.
Off-line Validator clipbook © Igor Podlubny 2005-2007
Igor Podlubny,Your bug reports, comments and suggestions are welcome, although I cannot even promise that you will get an immediate reply.
© Igor Podlubny 2005-2008. Valid XHTML 1.0 – Valid CSS2