User Guide

322 Chapter 2: ColdFusion Tags
If you nest cfsetting tags: to make HTML output visible, you must match each
enableCFoutputOnly = "Yes" statement with an enableCFoutputOnly = "No" statement. For
example, after five
enableCFoutputOnly = "Yes" statements, to enable HTML output, you
must have five corresponding
enableCFoutputOnly = "No" statements.
If HTML output is enabled (no matter how many
enableCFoutputOnly = "No" statements
have been processed) the first
enableCFoutputOnly = "Yes" statement blocks output.
Note: If the debugging service is enabled and showDebugOutput =" Yes", the IsDebugMode
function returns Yes; otherwise, No. ColdFusion MX 6.1 allows a </cfsetting> end tag; however,
this end tag does not effect processing. The cfsetting attributes affect code inside and outside the
cfsetting tag body. ColdFusion MX ignored code between cfsetting start and end tags.
Example
<p>CFSETTING is used to control the output of HTML code in ColdFusion pages.
This tag can be used to minimize the amount of generated whitespace.
<cfsetting enableCFoutputOnly = "Yes">
This text is not shown
<cfsetting enableCFoutputOnly = "No">
<p>This text is shown
<cfsetting enableCFoutputOnly = "Yes">
<cfoutput>
<p>Text within cfoutput is always shown
</cfoutput>
<cfsetting enableCFoutputOnly = "No">
<cfoutput>
<p>Text within cfoutput is always shown
</cfoutput>