User Guide

118 Chapter 7 Using Web Development Languages
Setting Macromedia CodeSweeper options
The options described in this section apply only to Macromedia CodeSweepers.
For a description of options for HTML Tidy CodeSweeper, see http://www.w3c.org/
People/Raggett/tidy/#helphttp://www.w3c.org/People/Raggett/tidy/#help/a.
Setting general options
The following table describes the options on the General Settings tab of a
Macromedia CodeSweeper pane:
You can also change the case of tags on demand for the current document, by
selecting Edit > Convert Tag Case. This operation cannot be undone.
Macromedia CodeSweepers can process XML namespaces in tags—for example,
<xsl:thistag name="foo"/>—because they allow the use of the colon character (:)
in tag names.
General option Description
Format tag names Formats tag/attribute names in one of these ways:
Preserve Case: Ignores the case of names.
All Upper Case: Forces every name to uppercase.
All Lower Case: Forces every name to lowercase.
Format attribute
names
Format event names Formats event names in the same ways as described for tag
and attribute names, with one additional option:
Mixed Case: Forces every event name to be mixed case; for
example,
onclick becomes onClick. This is recommended
for case-sensitive JavaScript event handler names.
Attribute value
quoting
Handles quotes around attributes in one of these ways:
Preserve Existing Quoting: Ignores quoting for attributes.
Quote As Needed: Inserts quotes around an attribute value
when it is required.
Quote All: Inserts quotes around every attribute value.
Trim white space
between tags
Deletes extra spaces that are produced by visual editors and
some code generation tools. It is enabled by default. For best
results, leave it enabled; you can disable it for individual tags.
Run in “silent mode” Eliminates the display of CodeSweeper alerts. Use this option
when you run a CodeSweeper unattended.
Write errors to a log
file
Captures errors found by the CodeSweeper. If selected, you
can specify a custom location for the log file in the text box.