Forum Moderators: open

Message Too Old, No Replies

DW doubles my lines of code

did this happen to you?

         

mifi601

10:09 pm on Apr 26, 2004 (gmt 0)

10+ Year Member



Some of the files I open, have their lines miraculously doubled. When I first write them it is a line of code per line on the page (unless I use a linebreak of course).

I upload the file.

I download the file.

Voila, every line of code occupies 2 lines ... very ennoying and I have no idea how to get rid of it!

caine

10:33 am on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is DW doing its 'source formatting' - bit of a bugger if you like your code to look clean and tidy.

Basically once you have sorted the code the way that you want it, edit in DW and it re-formats the char lengths of the lines of code.

Problem is inherent in all DW's. I personally have never hunted a solution down, but i would think that you can alter the lengths of character per line.

Its a funny little thing of DW - though irritating if you use DW as your core wysiwyg&tce.

Leosghost

12:15 pm on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Which DW are you using ..I've got MX and I've never seen this ....

My servers alter the files sizes slightly and Cute pro may also have a hand in it as they always get a little bigger when I bring them back ...but thats before I open them in Dw ....

I've never used DW itself to upload whatever they say to me it's a wysiwywg not an ftp...

But I never saw DW do it

sonjay

12:24 pm on Apr 27, 2004 (gmt 0)

10+ Year Member



You can exercise a good bit of control over how DW will format your code. Go into Preferences -> Code Format and you'll get a few choices, and go to the Tag Library Editor (Edit -> Tag Libraries) and you get a bunch more choices.

mifi601

12:47 pm on Apr 27, 2004 (gmt 0)

10+ Year Member



I use MX. and I do use it to up and download - it's just so convenient to test live (as opposed to locally with different PHP versions, apache versions .....) so I usually just do ctrl-shift-u and look at it.

it is not just a line length thing. it inserts a line between every line.

I will have a look at the code options again.

bummer though ...

scottmack

12:09 pm on May 1, 2004 (gmt 0)

10+ Year Member



Look in the preferences somewhere for Linux or Windows - I think it's in code, line breaks. Pick the one that your server is.

mifi601

6:46 pm on May 1, 2004 (gmt 0)

10+ Year Member



I looked and I looked. definitely found no 'server' options.

it is not a 'wrap' issue.

DW inserts lines.

scottmack

8:26 pm on May 1, 2004 (gmt 0)

10+ Year Member



I have DW 4.
It's in Code format / Line breaks

[macromedia.com...]