Saturday, September 18, 2004

Coldfusion Tippy

When writing Coldfusion in BBEdit, put your <cfif><cfelse></cfif> statements in <cfscript></cfscript> tags, like:


<cfscript>

if(){

}else{

}

</cfscript>



The reason for this is that BBEdit's automatic tag closer needs all tags closed by either a closing tag or closed by an ending slash. However, all of Coldfusion's inline tags can be closed with an ending slash except for <cfelse>. However, by putting the if-else statement in a cfscript tag, BBEdit's tag closer will ignore it. Whee!

No comments:

Post a Comment