Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Notepad removes html formatting

    Hi - I'm a novice when it comes to writing in HTML, so please be gentle...

    I'm using a PC, Windows OS XP Service Pack 2.

    I had a file written in HTML that appears just fine online. The original file was written using Dreamweaver MX (2004).

    I wanted to add something to the file, so I pulled it up using Notepad. After I hit "Save" in Notepad, the file went from being nicely formatted (e.g. each <tr> <p> etc was demarcated on a separate line, so it was easier to read the HTML code) to suddenly all collapsing onto a single line. It was as if someone had taken out all the hard returns: or imagine all of this text with no carriage returns between any of the paragraphs. It makes it much more difficult to read the resulting HTML text, because suddenly it's one long string of text.

    Has anyone else had trouble with this, and is there any way to avoid this in the future? It's still workable, it's just a lot to slog through now.

    The file was already in .htm format, so it's not a saving as ".txt" vs saving as ".htm" issue, I don't believe.

    Thanks!

    Red

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    yeh I have found that from time to time. I use wordpad because, often, it shows the text as you have descirbed it used to be.

    btw, you should visit updates.microsoft.com (I think) so you can d'l service pack 3.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Hi iguana, I'd recommend notepad++, which is far superior than normal notepad, and it's free.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    Regular Coder cyrus709's Avatar
    Join Date
    Dec 2008
    Posts
    102
    Thanks
    22
    Thanked 5 Times in 5 Posts
    It sounds like, you need to turn on "word wrap". i use notepad most times(depending on what im doing) and i never have this problem, the format stays the same. format/word wrap

  • #5
    Regular Coder
    Join Date
    May 2008
    Posts
    135
    Thanks
    13
    Thanked 10 Times in 10 Posts
    notepad++ is a million times better, if not more coding orientated

  • #6
    Regular Coder Pepe, the bull's Avatar
    Join Date
    Feb 2005
    Location
    Vancouver, WA
    Posts
    163
    Thanks
    1
    Thanked 16 Times in 16 Posts
    If you have Dreamweaver MX, you can "fix" the formatting by opening the file and selecting Apply Source Formatting from the Commands menu.
    Pepe, the bull

  • #7
    Regular Coder
    Join Date
    Jun 2008
    Location
    SE Wisconsin, US
    Posts
    222
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Another vote here for notepad++.
    Milwaukee Web Designer and SEO Milwaukee Firm specializing in ASP.Net, C#, VB.Net, SQL Server and Access.

  • #8
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Hi frank, have you downloaded the npp.5.2.Installer.exe file?
    (If not, hope the above link would help)
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #9
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    uH?? where'd Franks post go to

    anyway, thanks for the link abduraooft

    I think I might this notepad++.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #10
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by bazz View Post
    uH?? where'd Franks post go to

    anyway, thanks for the link abduraooft

    I think I might this notepad++.

    bazz
    Sorry, I removed the post and started again.
    The site still doesn't work.
    This is what I get.

    Notepad++ v5.2 new feature and fixed bugs (from v5.1.4) :

    1. Fix Function Tip crash issue.
    2. Fix the find in files crash bug while cloned views are side by side and focus is on main view.
    3. Fix a crash bug after searching/replacing in files returned with no results.
    4. Enhance "Find in all opened files" and "Find in files" features.
    5. Add Replace in files feature.
    6. Fix command line parsing to accept unquoted files as single argument.
    7. Refine "open ANSI files as UTF8 w/o BOM" feature.
    8. Add minidump feature in the case of crash for debug use.
    9. Adjust PostIt/FullScreen behaviour to mix well together.
    10. The file filters and the directory are set while find/replace/findInFiles dialog is launched.
    11. Adding find in files filters supports user defined language.
    12. Fix the bug that texts in combo box of Find dialog are restored not in order on the launch time.
    13. Add NPPM_DOOPEN plugin message.



    Included plugins (Unicode):

    1. TextFX v0.26
    2. NppExec v0.3 RC1
    3. Spell Checker v1.3.2
    4. MIME Tools v1.5
    5. FTP_synchronize v0.9.6
    6. NppExport v0.2.8
    7. Doc Monitor v2.2
    8. NppNetNote v0.1
    9. Compare plugin v1.5.2

    Included plugins (ANSI):

    1. TextFX v0.25
    2. NppExec v0.3 RC1
    3. Spell Checker v1.3.1
    4. MIME Tools v1.5
    5. FTP_synchronize v0.9.6
    6. NppExport v0.2.8
    7. Compare plugin v1.5.1
    8. Light Explorer v1.5
    9. Doc Monitor v2.2
    10. NppNetNote v0.1
    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #11
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Frank that link posted by abduraooft does download notepad++ and when it opens there is a default file to read. it has the same text as you have just posted. simply close that file (not the top right X but the one below it), and open a new file in the normal manner.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #12
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Thanks bazz, I said I had a blind spot. Works fine now.

    Oh for some new eyes!

    Thanks to all of you and my apologies for the mix-up.
    Foolishly I decided to re-start the post afresh so as not to interfere with the OP's, but I got muddled. Sorry.

    Frank alias 'Old Fogey'
    Last edited by effpeetee; 02-18-2009 at 05:36 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #13
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    I got new eyes ten years ago (I guess they aren't so new now). They helped a lot. My new lenses are fixed distance so I can't focus on anything that isn't 18" away (I chose that as I live on the computer instead of distance vision).

    If you haven't had it done yet, the operation is a snap. Tiny cut in the top of the eye, vacuum out the old lense after cutting it into small pieces and then insert the new plastic one.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #14
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by jerry62704 View Post
    I got new eyes ten years ago (I guess they aren't so new now). They helped a lot. My new lenses are fixed distance so I can't focus on anything that isn't 18" away (I chose that as I live on the computer instead of distance vision).

    If you haven't had it done yet, the operation is a snap. Tiny cut in the top of the eye, vacuum out the old lense after cutting it into small pieces and then insert the new plastic one.
    Not quite so easy for me.
    I have developing cataracts and also age related macular degeneration. Add to that the fact that I have had a burst vein on my right retina, you will see that I have a long way to go to get good vision.
    Trying to play my keyboard and read the music is quite another thing too. Ten leger lines instead of five in each stave. Accidentals are quite hilarious. I see everything twice in each eye horizontal wise. Coding can be a nightmare.

    But I am still not downhearted. 83 years old. I'll soon be starting on my second century.
    That's if the politicians don'e wreck everything in the meantime.

    Frank

    Nil desperandum!
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •