Click to See Complete Forum and Search --> : open php file and text is all sqaushed


moondance
10-06-2003, 08:47 AM
Sometimes, when i open a php file, the text loses its formatting and all the code is squashed up together. This only happens sometimes, so i don't know what i'm doing thats making this happen.

I've just downloaded a php forum, and want to take a look at it, but the above has happened. I've unzipped it with winrar as well as winzip and unchecked word wrap and put it back on again but it still comes out all monkey'd up.

Any one else had this problem?

edit: i forgot to mention that the php files open up in notepad - don't know if this is relevant or not.

pyro
10-06-2003, 10:22 AM
Yeah, sometimes notepad seems to do this with code. Not positive why, but it's probably something to do with the way it was saved. You can open it in wordpad, and it should work, though you may want to download HTML-Kit (http://www.chami.com/html-kit/), which will also do things like syntax highlighting, etc...

fyrestrtr
10-07-2003, 12:46 AM
The reason it messes up your code is because Unix and Windows store newlines differently.

Your best option would be to get an editor that understands both unix and windows (dos) text formats, such as editplus (http://www.editplus.com).

piersk
10-09-2003, 04:55 AM
don't you have to pay for editplus? (although it is an extremely good bit of kit)

Try Textpad (http://www.textpad.com)

chadypu
10-12-2003, 10:41 AM
get edit pad :)

search for it on download.com