Why when I download code does it open up all on one line?

This is a discussion on "Why when I download code does it open up all on one line?" within the Web Page Design section. This forum, and the thread "Why when I download code does it open up all on one line? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 21st, 2007, 10:46
Junior Member
Join Date: Nov 2006
Location: UK - Warwickshire
Age: 23
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Question Why when I download code does it open up all on one line?

I have been editing an HTML file and CSS file which were nicely formatted. I download from another PC to re-edit and both scipts code is all on one line? Lost it's line breaks. Any idea why?
Reply With Quote

  #2 (permalink)  
Old Oct 21st, 2007, 10:54
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why when I download code does it open up all on one line?

Possibly the chaneg in the way *nix systems vs Windows systems represent new lines and tabs.

Windows represents new lines with \r and *nix \n so unless the editor you are using keeps this in mind it may cause the problem.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #3 (permalink)  
Old Oct 21st, 2007, 12:48
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Why when I download code does it open up all on one line?

Notepad++ has some cool features for converting files from *nix to Mac to Windows formats...
Reply With Quote
  #4 (permalink)  
Old Oct 22nd, 2007, 18:58
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,765
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Why when I download code does it open up all on one line?

Generally you should use nix line breaks. Most editors will let you specify.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Source of Open Thoughts Rakuli Free Web Site Critique 5 Feb 14th, 2008 07:03
Download button - to download a PDF file attila001122 Web Page Design 3 Dec 9th, 2007 16:09
Open Thource - For Open Source Thoughts Rakuli Free Web Site Critique 44 Oct 9th, 2007 09:51
help! need search facility code to open in new window metamuse JavaScript Forum 0 Jul 15th, 2007 15:01
try to open php and asks if i want to open or save file steven rowlands PHP Forum 6 Feb 20th, 2007 21:42


All times are GMT. The time now is 03:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43