|
||||||
| HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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 Last edited by Tom Brown; 10-24-2007 at 12:26 PM. Reason: Problem solved. |
| Sponsored Links |
|
|
|
|||||
|
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).
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
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.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Do you write html in notepad? | kisna | HTML Programming | 318 | 08-25-2008 08:54 PM |
| printing out into notepad from the html using perl | lichy | Perl | 8 | 12-14-2007 02:06 PM |
| Lost form | InternetGeek | Visual Basic Programming | 3 | 02-10-2007 06:26 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |