User Guide

104 Chapter 7 Using Web Development Languages
To create an XHTML document, do either of the following:
Create a document with one of the templates available in the File > New >
XHTML dialog box (Strict, Transitional, or Frameset).
Open or create a document containing a Strict, Transitional, or Frameset
doctype
declaration.
To set the current document to be XHTML:
1 Select Options > Set Document as XHTML for the current document.
This will have no effect if the current document is read-only.
2In the Options > Settings > Markup Languages > XHTML/HTML pane, if the
option to Display DTD Selection Dialog When the XHTML Namespace is
Specified is selected, a dialog box appears. Select the
doctype declaration for the
DTD that you will use (there are three versions of the XHTML 1.0 specification).
3 In the dialog box, select one of the following options:
No replacement Select this if you do not want to change or add a
doctype
declaration, for example if you are writing XHTML code to include in another
page that already has its own doctype declaration.
Always replace with this DTD Select this if you do not want the dialog box
to display again and you will always use the same
doctype declaration.
Don’t ask me again Select this if you do not want to display this dialog box,
and you never want to replace or insert a
doctype declaration.
4Click OK.
If you must undo this, select Options > Set Document as XHTML again with the
XHTML document as the current document in the Editor. In the Confirm dialog
box, click Yes.
Setting color coding for XHTML
This section explains how to use the default color coding scheme for XHTML.
You can modify this default scheme as necessary. For more information, see “Using
color coding schemes” on page 112.
To use the XHTML color coding scheme in your documents:
1In the Options > Settings > Editor > Color Coding pane, select Extensible
Hypertext Markup Language (XHTML) and click Set as Default.
2 Click Apply.