You can use the HomeSite validator, or integrate the CSE HTML validator to work within HomeSite.
You can use the HomeSite validator to check and report syntax errors in HTML (including different browser extensions), XHTML, CFML, JSP, SMIL, and WML.
There are a myriad of configuration options from which you can choose. This section contains a general procedure for configuring the validator, some procedures for setting specific options, and an example.
Note If you validate both CFML and HTML in a single document, the validator cannot assess the pound sign (#). This is because, in CFML, the single pound is an error and the double pound is correct; while in HTML, the double pound is an error and the single pound is correct. |
Some tag sets are built on top of other tag sets. For example, if you select HTML 4.0, HTML 3.2 and HTML 2.0 are automatically selected as well, because the definition for HTML 4.0 is incomplete without them.
If you use ASP or PHP in your code, select the option to ignore it. The validator does not fully support these languages and might incorrectly parse the code.
Following is a description of what you can do on each tab:
For information about regular expressions, see "Using Regular Expressions".
You can add tags to a new family on the Tags tab, or you can back up the validator (.vtv) files in the \Extensions and \Extensions\TagDefs directories and then modify them in the editor.
Caution The changes you make on these tabs take effect immediately and cannot be undone, even if you click Cancel. Be especially careful with the Remove buttons. |
If the attribute is not in the Attribute folder, add it to the Attribute folder and then add it to the Required Attributes folder.
Checking for quotes ensures that each quotation mark is followed by another of the same type (' or "). Reporting special characters catches errors like having "&" in the HTML as opposed to "&".
The Versions tab is for if I need to extend the tag sets against which I can validate, and the Values tab is for validating regular expressions. These are unnecessary for a standard HTML 4.0 document, so this configuration is complete.
You can run the validator for the current document or for a selected tag.
Validating a tag only checks the contents of the specific tag. For example, it does not check if a tag has an end tag or if the tag is in the wrong place in the document.
Note If you validate both CFML and HTML in a single document, the validator cannot assess the pound sign (#). This is because, in CFML, the single pound is an error and the double pound is correct; while in HTML, the double pound is an error and the single pound is correct. |
The Validation Results pane displays a "No errors or warnings" message or lists the syntax errors that it found.
When you work in the Editor, the validator checks every tag that you write as soon as you type its closing bracket (>
).
If something is wrong in the tag, an error message appears in red in the status bar.
If you have installed this HTML validation tool, you can run it from HomeSite. The CSE Validator supports multiple languages and contains other useful features.
For more information, open the Options > Settings >Validation pane and click the CSE HTML Validator link to visit their Web site.
For a description of each field on a tab, click the Help button.
For a description of each field on a tab, click the Help button.