Preserving Code Formats With Codesweepers; Selecting A Codesweeper - MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO Use Manual

Table of Contents

Advertisement

Preserving Code Formats with CodeSweepers

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
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.
project
as you review its
97

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?

This manual is also suitable for:

Coldfusion studio 5

Table of Contents