User Guide

Coding in XHTML 105
Using CodeSweepers to convert your code to XHTML
Following is one way to configure a CodeSweeper to convert your code to XHTML.
To use a preconfigured XHTML CodeSweeper:
1Open the Options > Settings > CodeSweeper > HTML Tidy CodeSweeper pane.
2 Select Macromedia HTML Tidy Settings and click Edit Profile.
This opens the default settings for editing.
3 In the Formatting options box, select Convert document to XHTML.
4 In the Char encoding box, select UTF8.
5 (Optional) Set any other options.
For more information, see “Formatting code with CodeSweepers” on page 114.
6 Click Apply.
7 To use the CodeSweeper on the current document, select Tools > CodeSweeper >
Macromedia HTML Tidy Settings.
Validating XHTML code
This section explains how to configure the validator to check against the XHTML 1.0
specification, and describes what the XHTML validator checks.
For more information about the validator, see Validating code” on page 120.
Configuring the validator for XHTML
Following is one way to configure the validator to check XHTML code.
To configure the validator for XHTML:
1In the Options > Settings > Validation pane, select XHTML 1.0 Strict.
2 Click Validator Settings.
3 In the Validator Configuration dialog box, on the Options tab, in the Report box,
select every type of error except CFML Compiler Errors.
4 In the Other box, select the options to check for quotes in text and report special
characters.
Checking for quotes ensures that each quotation mark is followed by another of
the same type (' or ").
Reporting special characters catches errors like having & instead of &.
The Tags tab is for customizing the structure and requirements of a tag set; for
example, to require an attribute for a tag.
The Versions tab is for extending the tag sets against which you can validate.