114
Chapter 7 Using Web Development Languages
Formatting code with CodeSweepers
CodeSweepers automate the task of formatting your code correctly. It is especially
useful in the following situations:
•
Enforcing a uniform coding style for developers by having them use the same
Codesweeper options
•
Cleaning up the code formatting of a project as you review its documents
•
Applying formatting rules after using a visual editor
H for Dreamweaver MX includes several CodeSweepers, each configured
for a specific type of development. You can edit these CodeSweepers, and you can
create your own CodeSweepers.
About Macromedia CodeSweepers
CodeSweepers are available for HTML only, HTML/CFML, JSP, Web-XML, and
WDDX.
My CodeSweeper
is useful for testing and editing, and
Macromedia Default
HTML Tidy Settings
is a preconfigured HTML Tidy for basic code preservation.
For information on formatting documents so that they are XHTML-compliant, see
“Using CodeSweepers to convert your code to XHTML” on page 105
.
About HTML Tidy
HTML Tidy is an independent, open source code utility for verifying and formatting
HTML code. It was developed by Dave Ragget under the auspices of the W3C.
H for Dreamweaver MX provides HTML Tidy as an alternative to the
Macromedia CodeSweepers. It has additional language support, and useful features
such as line wrapping, converting tags, and working in XML.
If new features are added to HTML Tidy between H for Dreamweaver MX
releases, you can update your version of HTML Tidy.
To upgrade HTML Tidy:
1
Expand the
Options > Settings > CodeSweepers
list and select a CodeSweeper
under HTML Tidy CodeSweepers.
2
At the top of the pane for the CodeSweeper, click the HTML Tidy website link.
3
In the HTML Tidy website, download the latest version.
4
Close H for Dreamweaver MX.
5
Copy the tidy.exe files to the root directory of your H for Dreamweaver
MX installation.
6
Restart H for Dreamweaver MX.
Updating the HTML Tidy version does not affect your configuration settings.
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...