HighDots Forums  

Code View Alignment goes nuts

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Code View Alignment goes nuts in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JillTW
 
Posts: n/a

Default Code View Alignment goes nuts - 08-05-2004 , 01:04 PM






I am using Dreamweaver 4 and moved my website files onto a new computer (Sony
VAIO, WIn XP) after installing Dreamweaver on the new machine.

When I open any file from my site and look at Code View, my code is nicely
aligned with indentations and tables split into rows with indentations for each
tag. Paragraphs are also nicely indented and aligned. These pages were
created under Dreamweaver 4 on my old machine.

As soon as I place the cursor anywhere in Design view and begin to make any
sort of change (type anything, hit the enter key, etc), the code in my Code
View falls apart, wraps around, sticks multiple tags on a single line and
becomes impossible to read.

In my "Preferences" settings under "Code Format", I have Indent Checked with
"use spaces" selected, Table Rows and Columns Checked, Frames and Framesets
Checked, Indent Size = 2, Tab Size = 4, Automatic Wrapping Checked and After
Column 72 selected, Line Breaks = CR LF (Windows).

Anyone have any ideas why this is happening and how to correct?

Many thanks.


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Code View Alignment goes nuts - 08-05-2004 , 01:08 PM






COMMANDS | Apply Source Formatting?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"JillTW" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I am using Dreamweaver 4 and moved my website files onto a new computer
(Sony
VAIO, WIn XP) after installing Dreamweaver on the new machine.

When I open any file from my site and look at Code View, my code is
nicely
aligned with indentations and tables split into rows with indentations for
each
tag. Paragraphs are also nicely indented and aligned. These pages were
created under Dreamweaver 4 on my old machine.

As soon as I place the cursor anywhere in Design view and begin to make
any
sort of change (type anything, hit the enter key, etc), the code in my
Code
View falls apart, wraps around, sticks multiple tags on a single line and
becomes impossible to read.

In my "Preferences" settings under "Code Format", I have Indent Checked
with
"use spaces" selected, Table Rows and Columns Checked, Frames and
Framesets
Checked, Indent Size = 2, Tab Size = 4, Automatic Wrapping Checked and
After
Column 72 selected, Line Breaks = CR LF (Windows).

Anyone have any ideas why this is happening and how to correct?

Many thanks.




Reply With Quote
  #3  
Old   
JillTW
 
Posts: n/a

Default Re: Code View Alignment goes nuts - 08-06-2004 , 10:25 PM



Tried that, no help.

Tried changing my screen resolution back to 1024x768 (which is what the pages
on the old machine were created under), no help (I'm grasping at straws here !)

It doesn't mess it up if I type directly in the code view area... formatting
is retained.

I installed the latest Updater to version 4.01... no help.

Here's a snippet of the good and the ugly:

Good:
<table width="750" border="0">
<tr>
<td width="25" height="36">&nbsp;</td>
<td height="36">
<h4 align="center">Acting and Voice Instruction</h4>
</td>
</tr>
<tr>
<td width="25">&nbsp;</td>
<td valign="top">
<div align="left"></div>

Hit the "Enter" key (carriage return) immediately after the text "Acting"
(ugly):

<tr> <td width="25" height="36">&nbsp;</td><td height="36"> <h4
align="center">Acting
</h4><h4 align="center">and Voice Instruction</h4></td></tr> <tr> <td
width="25">&nbsp;</td><td valign="top">
<div align="left"></div><table border="0" cellpadding="5" cellspacing="0"
width="650">

This is driving me nuts !

Thanks for your help.



Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Code View Alignment goes nuts - 08-07-2004 , 09:27 AM



I am having a little trouble understanding what the problem is.

The code you show is what *should* happen when you press enter while the
cursor is positioned inside an <h#> tag -

<h1>blah blah2</h1>

should produce -

<h1>blah</h1>
<h1>blah2</h1>

Or am I misunderstanding something?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"JillTW" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I just realized in the "Good" snippet I posted that the code indentation
did
not show up... it actually shows up with 2 character spacing indentation
after
the first <table> tag. I'm trying the "Attach Code" feature here:

Good:

table width="750" border="0"
tr
td width="25" height="36">&nbsp;</td
td height="36"
h4 align="center">Acting and Voice Instruction</h4
/td
/tr
tr
td width="25">&nbsp;</td
td valign="top"
div align="left"></div
table border="0" cellpadding="5" cellspacing="0" width="650"
tr


Ugly:

tr> <td width="25" height="36">&nbsp;</td><td height="36"> <h4
align="center">Acting</h4><h4 align="center"
and Voice Instruction</h4></td></tr> <tr> <td width="25">&nbsp;</td><td
valign="top"
div align="left"></div><table border="0" cellpadding="5" cellspacing="0"
width="650"
tr> <td align="center" valign="top"> <p align="center"




Reply With Quote
  #5  
Old   
JillTW
 
Posts: n/a

Default Re: Code View Alignment goes nuts - 08-07-2004 , 06:00 PM



I apologize... the first example where the code is aligned and indented is from
the Code View window as it displays when I first open the file. The second
example is what the Code turns into (in the Code View window) when I type
anything into the page from the Design view. As soon as I touch the keyboard
in Design View, everything in Code view scrambles up.

This is somehow related to my new computer, a Sony VAIO running Win XP
(because it didn't happen on the old computer, a Dell running Windows 2000, but
I am at a complete loss as to why this would occur. I've compared all my
"preferences" to the old computer (which I still have, with Dreamweaver still
loaded), and everything looks the same. I saved all the files on my old
computer to a CD and copied them to the new, set up the Site in Dreamweaver,
and everything links properly and looks normal (except this).

Thanks for your help.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.