PDA

View Full Version : Prevent Code Rewrite


supergrover44
04-04-2011, 06:52 PM
I'm trying to apply a new template to a page that utilizes Cold Fusion, but Dreamweaver keeps rewriting my code even though all of my Code Rewriting preferences are set correctly.

Example:
BEFORE NEW TEMPLATE

<table>
<tr> <cfoutput query="getcats">
<td valign="top"><input type="radio" name="categoryid" value="#groupid#">
#description#</td>
<cfset colcnt = colcnt - 1><cfif #colcnt# eq 0>
<cfset colcnt = 3>
</tr>
<tr> </cfif></cfoutput>
</tr>
</table>

AFTER NEW TEMPLATE APPLIED:

<table>
<tr><td><tr></td></tr> <cfoutput query="getcats">
<td valign="top"><input type="radio" name="categoryid" value="#groupid#" />
#description#</td>
<cfset colcnt = colcnt - 1><cfif #colcnt# eq 0>
<cfset colcnt = 3>
<tr><td></tr></td></tr>
<tr><td><tr></td></tr> </cfif></cfoutput>
<tr><td></tr></td></tr>
</table>

Any help would be GREATLY appreciated.