User Guide

100 Chapter 7 Using Web Development Languages
Macromedia CodeSweepers treat the colon character (:) in tag names as a normal
character, allowing the processing of XML namespaces in tags such as
<xsl:thistag
name="foo"/>
.
Tag-specific options
A wide range of options is available for the individual tags contained in a
Macromedia CodeSweeper.
These options cover spacing and indenting and allow you to leave the selected tag
unchanged when invoking the CodeSweeper. If you encounter problems parsing
server-based script code, try enabling the Preserve tag formatting option.
The Strip tag from document option is especially handy for getting rid of superfluous
and unwanted tags that are inserted by code generation tools.
To set rules for a tag:
1Select Options > Settings > CodeSweeper.
2 Select a CodeSweeper from the list.
3 Edit the General Settings tab as needed.
4 Switch to the Tag Specific Settings tab and highlight a tag name in the list.
Note that if you select “All Other Tags” in the list, the rules you select on this tab
will apply to every tag that is not in the list but is found in a document.
5 If the tag you need is not in the list, click Add Tag, type the tag name, and click OK.
6 Edit the options for the tag.
7Click Update Tag.
8 If you are done setting options, click Apply.
To remove a tag:
1Select Options > Settings > CodeSweeper.
2 Highlight the tag to remove and click Remove Tag.
3 If you are done setting options, click Apply.