HTML file question

Mayfriday0529

Diamond Member
Sep 15, 2003
7,187
0
71
What would make a HTML not show up correctly on a text editor or html editor?
I'm using this template file on my website and when i play with the original files on my computer they show up ok on my HTML editor which is Notepad2 or HTML-KIT

What i mean by ok, is that the code is spaced out in lines.
Once i upload the file and then download it back to my computer and i open it, it shows up in two lines only and it goes on and on hard to edit it.
You can also see the problem if you go to my website and click on show source and it shows the HTML code only on two lines only on Firefox, IE uses regular notepad.

If i use a different template everything is ok, maybe the code is missing something?

If you use Firefox you should be able to see the problem by checking the page source
link to site... to see the page source click view/page source or ctrl+u

What do you think?
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
maybe you don't have line breaks in the file and your html editors automatically put them in for readability? i'm guessing since i haven't used either of the html editors you listed.
 

Mayfriday0529

Diamond Member
Sep 15, 2003
7,187
0
71
Originally posted by: oog
maybe you don't have line breaks in the file and your html editors automatically put them in for readability? i'm guessing since i haven't used either of the html editors you listed.


I don't know, its weird... The original file looks ok but once it has been uploaded to the site and then activated i guess it looks like that..

I can't find any errors in the code either.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
The file has windows line breaks when you first write it. when it's uplaoded to your unix server, the line breaks are converted to unix line breaks. When you downlaod it again, it still has unix line breaks.

Notepad is a horrible peice of crap of an editor, and it doesn't support line breaks.

Download Crimosn Editor. It's free, it's a pretty decent editor, and it suports unix line break characters.

Either that, or you're uploading text in binary mode instead of ascii text mode.
 

Mayfriday0529

Diamond Member
Sep 15, 2003
7,187
0
71
Originally posted by: notfred
The file has windows line breaks when you first write it. when it's uplaoded to your unix server, the line breaks are converted to unix line breaks. When you downlaod it again, it still has unix line breaks.

Notepad is a horrible peice of crap of an editor, and it doesn't support line breaks.

Download Crimosn Editor. It's free, it's a pretty decent editor, and it suports unix line break characters.

Either that, or you're uploading text in binary mode instead of ascii text mode.


I use Notepad 2 not regular notepad from windows. I use Pixelpost for a photoblog and they have several template available with it and this problem only happens with the current template that i'm using.

Yes its true maybe its uploading them binary instead of text, i will check that out and see if that matters.
 

Mayfriday0529

Diamond Member
Sep 15, 2003
7,187
0
71
Originally posted by: Jnetty99
Originally posted by: notfred
The file has windows line breaks when you first write it. when it's uplaoded to your unix server, the line breaks are converted to unix line breaks. When you downlaod it again, it still has unix line breaks.

Notepad is a horrible peice of crap of an editor, and it doesn't support line breaks.

Download Crimosn Editor. It's free, it's a pretty decent editor, and it suports unix line break characters.

Either that, or you're uploading text in binary mode instead of ascii text mode.


I use Notepad 2 not regular notepad from windows. I use Pixelpost for a photoblog and they have several template available with it and this problem only happens with the current template that i'm using.

Yes its true maybe its uploading them binary instead of text, i will check that out and see if that matters.


No luck,,, i remove the file and went back to the original, uploaded in ascii and then same thing happens when i redownload it or view it on page source, also same thing happen on the Crimson Editor app, which by the way thanks for pointing it out.

 

Mayfriday0529

Diamond Member
Sep 15, 2003
7,187
0
71
Originally posted by: notfred
that's odd then. Maybe it's a problem with the pixelpost software.


I thought i had it solved.. the code had a closing </html> tab but no opening one so i added but still didnt help.

Its annoying because if i edit the code at work and try to edit the code at home its very hard going through the code when its all in one line and not divided into sections to edited.

I have contacted the creator of the template for some input.
 

dderolph

Senior member
Mar 14, 2004
619
0
0
I viewed it in Notepad. If I set Word Wrap, under Format, that eliminates the need for horizontal scrolling, but it's still ugly because there's no logical line breaking.
 

Mayfriday0529

Diamond Member
Sep 15, 2003
7,187
0
71
Originally posted by: dderolph
I viewed it in Notepad. If I set Word Wrap, under Format, that eliminates the need for horizontal scrolling, but it's still ugly because there's no logical line breaking.



Correct and the original file does not require that.
the original files looks nice and clean.

 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
try winvi, I have seen source like that (looked crappy in one view, ok in another). WinVI it looked fine in.
 

Mayfriday0529

Diamond Member
Sep 15, 2003
7,187
0
71
Originally posted by: nweaver
try winvi, I have seen source like that (looked crappy in one view, ok in another). WinVI it looked fine in.


Nope, didnt help....
I don't understand, I even deleted all the files and uploaded them up again, i dont even have to activate the template all i have to do is upload it and redownload it and it goes all weird on me.
 

Mayfriday0529

Diamond Member
Sep 15, 2003
7,187
0
71
Originally posted by: nweaver
any idea on os/webserver/ftp server software?


I use WS_FTP and i just tried SmartFTP and didnt help. I use XP at home and at work and both do it, and the webservers they are unix servers Sonataweb is my host and every other HTML file i upload is ok except for this and two more that go together.
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
is it possible that the web server has some white-space stripping module installed for serving up slightly smaller pages?
 

Mayfriday0529

Diamond Member
Sep 15, 2003
7,187
0
71
Originally posted by: oog
is it possible that the web server has some white-space stripping module installed for serving up slightly smaller pages?


I don't quite understand what you mean?

I have this other template that is a revisided version of the one that i'm using now same style just diffent look and that is ok. I'm thinking something in the code is making this happen because the same creator on a different version didnt have this problems.
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
it was just a guess based on what i remembered about this thread, but i should have gone back to see that you do have pages that aren't coming up the same way -- that don't have the newline characters stripped.