This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Code View Alignment goes nuts





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Code View Alignment goes nuts
JillTW

2004-08-05, 7:15 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.

Murray *TMM*

2004-08-05, 7:15 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@macromedia.com> wrote in message
news:cetpag$4d8$1@forums.macromedia.com...
> 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.
>



JillTW

2004-08-07, 4:14 am

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.


JillTW

2004-08-07, 4:14 am

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">

Murray *TMM*

2004-08-07, 12:14 pm

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@macromedia.com> wrote in message
news:cf1eq6$58$1@forums.macromedia.com...
> 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">
>



JillTW

2004-08-07, 7:15 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.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews