User Guide
Setting options for markup languages 99
How a language is detected
On a document level, HomeSite+ for Dreamweaver MX determines the language
based on the document’s DOCTYPE declaration. If there is no declaration, the program
treats the document content as HTML. In the case of XHTML, when you enable
Options > Set Document as XHTML, the program treats the document as XHTML,
even if there is no change to the
DOCTYPE declaration.
On a character level, supported languages have their own start and end tags to alert
the program that the tag content is written in a specific language.
The status bar displays the language of the code in the current document.
Setting options for markup languages
This section provides instructions for setting language-specific options. For setting
specific options for XHTML, also see “Setting options for XHTML” on page 103.
To set language options:
1Open the Options > Settings > Markup Languages pane.
2 Select the options you need as described in the following table.
Option Result when selected
Lowercase all inserted
tags
Tag editors and the Tag Inspector insert all
lowercase code in the Editor.
To convert tags to lowercase in existing documents,
you can open the document, select Edit > Convert
Tag Case, and select the lowercase option.
Always insert colors as
hexadecimal values
Tag editors and Tag Inspector insert a RGB value like
C0C0C0 and 008080 instead of “Silver” and “Teal”.
Different browsers interpret the names of colors
differently, but if you use RGB values, the same color
appears in every browser.
Force filenames to
lowercase when inserting
links
When dragging a file to the Editor, the inserted link
contains a lowercase filename. For example, if you
drag ABCs.htm to the Editor, the following code is
inserted:
<a href="abcs.htm">ABC’s</a>
Note that this option can cause links to break on
UNIX servers.
When editing tags, return
the output on a single line
Tag editors insert the code on a single, non-wrapping
line in the Editor.