View Full Version : how to stop DW from reformatting my code layout!
jasonc310771
02-09-2009, 12:45 PM
Hi
Hopefully someone can answer this for me as i have been getting rather annoyed with DW !
It keeps changing the layout of my code! aarrgghh
adding in tabs realigning code here and there when i reload the file.
how can i stop DW from doing this please.
abduraooft
02-09-2009, 01:03 PM
You may achieve this by never viewing your document in the design view.
jasonc310771
02-09-2009, 01:07 PM
You may achieve this by never viewing your document in the design view.
ha ha ha
put a smile on my face this morning with that
no seriously there must be an option somewhere to turn this off?
i have tried to find it but can not figure it out.
ipmark
02-21-2009, 09:38 AM
I use dreamweaver and never suffer from this.
However I never use design view for changes, only (occasionally) for quick viewing.
I normally use firefox/chrome/ie/safari and the actual file in my local apache server for viewing pages.
As far as I know if u make changes in design view dreamweaver will use its own (less than perfect) way of doing things. Hand coding is the best way to keep things as you want them.
jasonc310771
02-21-2009, 10:11 AM
on looking at my OP i see that i say it is changing my code, well not changing it excactly, more like restructuring the code view. mainly divs
DW changes this...
my original code
<body>
<div id="tag_1">
<div id="tag_2">
<div id="tag_3">
<div id="tag_4">
<img src="images/intro01.jpg" alt="Olympus" />
<img src="images/intro02.jpg" alt="McKenzie" />
</div>
</div>
</div>
</div>
</body>
to this.... when i open the file in design or code view.
<body>
<div id="tag_1">
<div id="tag_2">
<div id="tag_3">
<div id="tag_4">
<img src="images/intro01.jpg" alt="Olympus" />
<img src="images/intro02.jpg" alt="McKenzie" />
</div>
</div>
</div>
</div>
</body>
is there an option to stop this happening?
Major Payne
02-23-2009, 11:09 AM
Dreamweaver Moving Code (http://www.sitepoint.com/forums/showthread.php?t=538788)
Dreamweaver rearranges my code (http://www.phwinfo.com/forum/macromedia-dreamweaver/265296-dreamweaver-rearranges-my-code.html)
How do I stop Dreamweaver breaking up text (http://www.webmasterworld.com/forum46/836.htm)
Don't have DW, but always thought there were formatting options that could be set.
jasonc310771
02-25-2009, 05:11 PM
please please help me out someone please its starting to drive my insane!!
i use code view all the time to make changes to my scripts and everytime i open the file the code get moved around, i think i should be saying that the code get tabs added to it.
as i say in my previous post.
i have check the options and all are off, no ticks in any option to alter the code.
TapeBoy929
03-27-2009, 04:06 AM
Why use Dreamweaver then? There are variety of tools to use instead.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.