User Guide

Coding in XHTML 103
Setting options for XHTML
This section has instructions for setting options that are optimal for XHTML coding.
For more information about these options and other language options that are not
specific to XHTML, see “Setting options for markup languages” on page 99.
To set language options that are optimal for XHTML:
1Open the Options > Settings > Markup Languages pane.
2 Select the following options:
Lowercase all inserted tags.
Include closing
</p> when inserting paragraph tag
Insert numeric values surrounded by quotes (Tag Inspector).
Minimize empty tags (such as,
<br/>).
3 In the Insert special characters as box, select Character entities.
(Numeric references must have the ampersand encoded; for example
&#38;#38;
instead of &#38;).
4 Under Markup Languages, in the HTML/XHTML pane, select Compatibility
mode for older browsers (such as, space before “/>”).
This ensures that your code displays properly in older browsers; for example, by
inserting a space before minimized empty tags (
<br /> instead of <br/>).
5 If, when you select Options > Set Document as XHTML, you want to be able to
choose between inserting the doctype declaration for the XHTML Strict,
Frameset, or Transitional DTD, or not inserting or replacing a
doctype
declaration, select the option to Display DTD Selection Dialog When the XHTML
Namespace is Specified. (The dialog box that appears has options to Always
replace with this DTD or Dont ask me again, in case you change your mind).
If you clear this option, when you set a document as XHTML, no dialog box
appears and no
doctype declaration is inserted or replaced.
6 Click Apply.
Using coding tools that support XHTML
Tag editors, the Tag Inspector, Tag Insight, and other coding tools support the
XHTML 1.0 specification. This means that, in an XHTML document, tag editors
insert XHTML-compliant code, the Tag Inspector displays information in its
attribute table that is appropriate for XHTML, and Tag Insight displays a list of
completion options that are appropriate for XHTML.
The only thing you must do to take advantage of this support is to create an XHTML
document, or set the current document to be XHTML. This enables XHTML support
in the document.