Hi All
I've written some HTML and CSS files using a text editor called Leafpad which I downloaded using Synaptic Packet Manager on a box running PCLinuxOS. Leafpad looks very much like Windows Notepad and is very quick and easy to use. I indented the script - as one does - to make the files understandable. I have need to edit these files at a different location on a PC running Windows XP, so I tried to use Windows Notepad. However, when I open the files, I have lost all the layout and indentation. The text is just one large block of text. When checking back on my Linux box. If I open the files in Linux text editor KWrite, the indentation is still there. Why have I lost the indentation when using Windows Notepad.
Regards
Tom
Lost indentation in Notepad. - Problem solved.
Started by Tom Brown, Oct 24 2007 01:52 AM
6 replies to this topic
#1
Posted 24 October 2007 - 01:52 AM
|
|
|
#2
Guest_Jordan_*
Posted 24 October 2007 - 03:53 AM
Guest_Jordan_*
Notepad doesn't understand Unix/Linux line-break and tab indention character sets. Trying opening this in Wordpad or download a text editor like Notepad2 (which is free).
#3
Posted 24 October 2007 - 04:59 AM
Jordan
Thank you very much for the prompt response. I'll try both your suggestions.
Thanks again.
Tom
Thank you very much for the prompt response. I'll try both your suggestions.
Thanks again.
Tom
#4
Posted 31 October 2007 - 02:05 AM
Yes I saw that quite sometimes.. I just openit with wordpad, and save it in wordpad.. notepad than should work fine.
#5
Posted 01 November 2007 - 03:36 PM
Why is that? Is it because of the ASCII values or something? Aren't they supposed to be the same on all OSes?
#6
Guest_Jordan_*
Posted 02 November 2007 - 03:30 AM
Guest_Jordan_*
It isn't the ASCII values but the line-breaks. MS looks for carriage returns (\r) instead of new lines (\n) which it should. To fix the problem you can convert "\n" to "\r\n".
You can use this website to convert your files from Unix to Dos.
You can use this website to convert your files from Unix to Dos.
#7
Posted 07 November 2007 - 12:03 AM
Really? So how come that Wordpad still shows it correctly? isn't it still MS?


Sign In
Create Account

Back to top









