Preserving Code Formats with CodeSweepers
97
Preserving Code Formats with CodeSweepers
The CodeSweeper feature automates the task of getting your code properly
formatted. It can be useful in a number of situations:
•
You can enforce coding styles for multiple developers by having them set the
same Codesweeper options
•
You can clean up the code formatting of an existing
project
as you review its
documents
•
You can apply formatting rules after using a visual editor such as UltraDev.
Selecting a CodeSweeper
ColdFusion Studio includes a number of CodeSweepers, configured for specific types
of development. You can also create your own CodeSweepers or edit existing ones.
Macromedia CodeSweepers
There are CodeSweepers tailored to HTML only, HTML/CFML, JSP, Web-XML, and
watch
.
My CodeSweeper
is useful for testing and editing, and
Macromedia Default
HTML Tidy Settings
is a pre-configured HTML Tidy for basic code preservation.
For information about formatting your documents to be XHTML-compliant, go to
the Macromedia Developer Center for an article called An XHTML-Aware Editor, and
read the section entitled An XHTML CodeSweeper.
HTML Tidy
HTML Tidy is an independent open source code utility for verifying and formatting
HTML code. Developed by Dave Ragget under the auspices of the
W3C
, HTML Tidy is
installed as an alternative to the Macromedia CodeSweepers. HTML Tidy provides a
number of useful features for line wrapping, tag conversions, language support,
working in
XML
, and other features not available in the Macromedia CodeSweepers.
Select
Options > Settings > CodeSweeper
and expand HTML Tidy CodeSweepers to
view and set options.
You can easily update the HTML Tidy engine if new features are added to HTML Tidy
between ColdFusion Studio releases.
To install a newer version of HTML Tidy:
1
Click the link at the top of the HTML Tidy Settings pane.
2
On the HTML Tidy Web site, download the latest version.
3
Close ColdFusion Studio.
4
Copy the tidy.exe files to your ColdFusion Studio root directory.
5
Restart ColdFusion Studio.
Your HTML Tidy configuration is not affected by the update.
Summary of Contents for ColdFusion Server 5
Page 18: ...xviii About This Book...
Page 26: ...8 Chapter 1 Setting Up the Product...
Page 42: ...24 Chapter 2 Configuring Browsers and Servers...
Page 60: ...42 Chapter 3 Exploring the Workspace...
Page 100: ...82 Chapter 6 Editing Pages...
Page 126: ...108 Chapter 7 Using Web Development Languages...
Page 212: ...194 Chapter 13 Customizing the Development Environment...
Page 320: ...302 Glossary...