Skip to main content
Participant
June 8, 2009
Question

dreamweaver cs4 moving/breaking code!

  • June 8, 2009
  • 12 replies
  • 6774 views

Hi,

Could someone please shed some light on the following - it must be a bug. I have disabled code rewriting in dreamweaver cs4 for mac, yet it continues to shift my code around.

example test.cfm:

<cfswitch expression="#template.section#">
    <cfcase value="head">

    <style type="text/css">
     .footer { margin-bottom:30px; text-align:center; }
    </style>
       
    </cfcase>
    <cfcase value="body">

    <table>
     <tr>
      <td></td>
     </tr>
    </table>

    </cfcase>

</cfswitch>

-----------------------

Pretty simple code, yet if I OPEN that in DW cs4 on mac, it moves the last cfcase to the end of the code and therefore breaks the code - like so:

<cfswitch expression="#template.section#">
     <cfcase value="head">

    <style type="text/css">
      .footer { margin-bottom:30px; text-align:center; }
     </style>
        
     </cfcase>
     <cfcase value="body">

    <table>
      <tr>
       <td></td>
      </tr>
     </table>

</cfswitch>

</cfcase>

-------

This happens with several of my templates - DW for me is unusable like this...

thanks.

    This topic has been closed for replies.

    12 replies

    Inspiring
    August 3, 2009

    I've got the same problem using Win XP Sp3 with Dreamweaver 10.0 Build 4117. Code gets a "<tr  >" added every time I open the file, like the snippet below. I don't even need to save the file for the change to take affect, which really bugs me. Code rewriting is turned off. I've seen it in 2 seperate files now and another user I work with on a different XP computer and the same version of Dreamweaver has the same problems with the same files. I have submitted a bug report to Adobe. This is a major bug. We may have to uninstall because of this one.

              <cfif intDiffYrs>
                <cfloop from="1" to="#intDiffYrs#" index="i" step="1">
                  <tr  ><TD class="qtydata">0</TD>
                </cfloop>
              </cfif>

    Inspiring
    June 9, 2009

    (Shrug...)  I used DW as an HTML/ColdFusion editor and never employed any other part of that product.  Eclipse, by the way, is absolutely free and does just as well.  I just don't grok the notion that you can really expect "whizzy-whig" when there's code involved in the scenario.

    In short:  it don't surprise me that you're seeing this, and I counsel you to avoid the "fee-chur" that's leading to it.

    byrningAuthor
    Participant
    June 9, 2009

    I've tried eclipse - I cant say I like iton mac. I'm only using DW as a code editor - so no design view or nothing - I'm not using any "fee-chur"s as you put it

    So simply, file > open .. change code .. save. still doens't work.