Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacDonaldsd

macrumors 65816
Original poster
Sep 8, 2005
1,005
0
London , UK
ive been using textwrangler to create a HTML site.

Only problem when I move it to a windows xp machine, load the page then view the source its all in on one line.

How can I fix this ?
 
Assuming you have the buttons at the top of the window on, you'll notice that one of them looks like a page of text. Under that window there is a sub-menu to select the text encoding, as well as the option to choose what kind of line breaks your document will use.

You probably have Macintosh line breaks selected, which don't show up as linebreaks in some Windows text editors. Select "Windows", and you might have the same problem in reverse, but it'll guaranteed look fine on Windows.

I always use Unix, personally, but from a "page looking right" standpoint it doesn't matter which of the three (or four, if you count unicode) you use, since web browsers read them all as whitespace and therefore render the pages correctly.

Incidentally, you can set the default in the "Text Files: Saving" preference.
 
Thanks :)
I saw it in the preferences section but that didn't work, so was getting a bit annoyed, but doing it from the top of each documents works fine.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.