Quick Problem with files using odd line brakes

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
I'm working on a file and I want it to be displayed using the standard line breaks and not the rectangular symbols. They are about the size of a block letter with more height than width. I usually encounter this uploading in an ASCII file mode but this time I'm just editing a program and its like this.

How can I change this back? By the way, I'm using TextPad, a programming tool like notepad only much more powerful.
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
Originally posted by: Pepsi90919
line brakes?

Its like the result by pressing enter, it creates an empty line. I guess I was thinking more HTMl when I posted this, hehe.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
unix line break: \n
Windows line break: \r\n
macintosh line break: \r

What os are you using?
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
BTW, if your text editor can't recognize end line characters from the 3 major operating systems, it sucks. A decent text editor will let you save your file with any of the three line endings, and will open them all correctly.

If you're transferring these files via FTP, the mode should be set to "ascii" rather than "binary" and the conversions will be automatic.
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
Originally posted by: notfred
BTW, if your text editor can't recognize end line characters from the 3 major operating systems, it sucks. A decent text editor will let you save your file with any of the three line endings, and will open them all correctly.

If you're transferring these files via FTP, the mode should be set to "ascii" rather than "binary" and the conversions will be automatic.

I'm using Windows. my text editor recognizes it, but when I open it up in Notepad, it looks all messed up with everything scrunched up. Also, I need for this to be spaced correctly because when my CS teacher grades the program, he prints it out using a simple text editor or something from Eudora so I don't want it to look like crap because he also grades our spacing and layout of the code itself.

I'll try the uploading trick. :)
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: AgaBooga
Originally posted by: notfred
BTW, if your text editor can't recognize end line characters from the 3 major operating systems, it sucks. A decent text editor will let you save your file with any of the three line endings, and will open them all correctly.

If you're transferring these files via FTP, the mode should be set to "ascii" rather than "binary" and the conversions will be automatic.

I'm using Windows. my text editor recognizes it, but when I open it up in Notepad, it looks all messed up with everything scrunched up. Also, I need for this to be spaced correctly because when my CS teacher grades the program, he prints it out using a simple text editor or something from Eudora so I don't want it to look like crap because he also grades our spacing and layout of the code itself.

I'll try the uploading trick. :)

Yeah, notepad sucks that way.
 

AgaBoogaBoo

Lifer
Feb 16, 2003
26,108
5
81
Originally posted by: notfred
Originally posted by: AgaBooga
Originally posted by: notfred
BTW, if your text editor can't recognize end line characters from the 3 major operating systems, it sucks. A decent text editor will let you save your file with any of the three line endings, and will open them all correctly.

If you're transferring these files via FTP, the mode should be set to "ascii" rather than "binary" and the conversions will be automatic.

I'm using Windows. my text editor recognizes it, but when I open it up in Notepad, it looks all messed up with everything scrunched up. Also, I need for this to be spaced correctly because when my CS teacher grades the program, he prints it out using a simple text editor or something from Eudora so I don't want it to look like crap because he also grades our spacing and layout of the code itself.

I'll try the uploading trick. :)

Yeah, notepad sucks that way.

Ok, I got it to work! Thanks again!