Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > HTML Programming

HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-2007, 05:52 AM
Tom Brown Tom Brown is offline
Newbie
 
Join Date: Oct 2007
Posts: 2
Rep Power: 0
Tom Brown is on a distinguished road
Default Lost indentation in Notepad. - Problem solved.

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 10-24-2007, 07:53 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,651
Last Blog:
PHP Objects, Patterns,...
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-24-2007, 08:59 AM
Tom Brown Tom Brown is offline
Newbie
 
Join Date: Oct 2007
Posts: 2
Rep Power: 0
Tom Brown is on a distinguished road
Default

Jordan

Thank you very much for the prompt response. I'll try both your suggestions.

Thanks again.

Tom
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-31-2007, 06:05 AM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Yes I saw that quite sometimes.. I just openit with wordpad, and save it in wordpad.. notepad than should work fine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-01-2007, 07:36 PM
GMailGuy GMailGuy is offline
Learning Programmer
 
Join Date: Oct 2007
Posts: 60
Rep Power: 5
GMailGuy is on a distinguished road
Default

Why is that? Is it because of the ASCII values or something? Aren't they supposed to be the same on all OSes?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 11-02-2007, 07:30 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,651
Last Blog:
PHP Objects, Patterns,...
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-07-2007, 03:03 AM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Really? So how come that Wordpad still shows it correctly? isn't it still MS?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -5. The time now is 07:44 AM.

Contest Stats

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

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads