Hey gang -
I've googled around a fair bit, poked in the prefs, but no love yet.
Hence, this post.
I recently picked up a new Mac tower (sweet!) and I've got Dreamweaver
CS3 loaded up. All works fine except for one annoying issue - with
certain files, Dreamweaver is changing my code when opening the file,
and changing it so that it is invalid.
For example, I have a little bit of code that displays the contents of a
query. I have it set to drop ten items in each column, then close the
cell and start a fresh one. Works fine.
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left" valign="top">
<cfloop query="queryName">
#variable#<br />
<cfset curMod = currentrow MOD 10>
<cfif curMod EQ 0></td><td align="left" valign="top"></cfif>
</cfloop>
</td>
</tr>
</table>
Looking at the script in TextEdit, outside DW, the code is intact.
But when I open it in DW:
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left" valign="top">
<cfloop query="queryName">
#variable#<br />
<cfset curMod = currentrow MOD 10>
<cfif curMod EQ 0></td><td align="left" valign="top"> (close </cfif> is
gone!)
</cfloop>
</cfif></td> (oh here it is...)
</tr>
</table>
It's subtle, but what DW is doing is taking the </cfif> off the end of
the line starting with <cfif curMod EQ 0> and sticking it after the
</cfloop> tag - hence making the code break if I push the file up to my
server.
DW also color-codes the opening <cfif> tag as black, where it's coding
normal CF code in red (defaults). However, if I edit the black coded
<cfif> tag at all - even add a space - it recognizes it and colors it
red, as expected.
I've been poking around the app settings, trying to find an option to
turn off to keep this from happening, but no luck yet. I seem to recall
having a similar issue with DW on the PC, some unknown time period in
the past, but it's been long enough that I simply don't recall what I
did at that point to solve the issue.
Halp! :(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298613
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4