![MACROMEDIA ColdFusion Server 5 Use Manual Download Page 120](http://html1.mh-extra.com/html/macromedia/coldfusion-server-5/coldfusion-server-5_use-manual_687499120.webp)
102
Chapter 7 Using Web Development Languages
Validating Code
You can use the ColdFusion Studio validator, or integrate the CSE HTML validator to
work within ColdFusion Studio.
Using the default validator
You can use the ColdFusion Studio validator to check and report syntax errors in
HTML (including different
browser
extensions), XHTML, CFML, JSP, SMIL, and
WML.
Configuring the validator
There are a myriad of configuration options from which you can choose. This section
contains a general procedure for configuring the validator, some procedures for
setting specific options, and an example.
Note
If you validate both CFML and HTML in a single document, the validator cannot
assess the pound sign (#). This is because, in CFML, the single pound is an error and
the double pound is correct; while in HTML, the double pound is an error and the
single pound is correct.
To configure the validator:
1
Open the
Options > Settings > Validation
pane.
2
Select the tag sets against which to validate.
Some tag sets are built on top of other tag sets. For example, if you select HTML
4.0, HTML 3.2 and HTML 2.0 are automatically selected as well, because the
definition for HTML 4.0 is incomplete without them.
3
Click Validator Settings.
4
In the Validator Configuration dialog box, complete the Options tab as needed:
•
In the Report section, specify the types of errors that you want the validator to
report. To limit the number of errors that appear in the Results window after
validating a document, specify a maximum number of errors to report.
•
In the Other section, select options as needed; for example, to check the code
for mismatched quotes and unconverted special characters.
If you use ASP or PHP in your code, select the option to ignore it. The validator
does not fully support these languages and might incorrectly parse the code.
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...