Results 1 to 7 of 7

Thread: Edited HTML file with Notepad.Now it's useless. lol ?

  1. #1

    Post Edited HTML file with Notepad.Now it's useless. lol ?

    I was editing a HTML(with Javascript) file by using GoDaddy's file editing panel and it never gave me a problem.Then for unknown reason I decided to download the file and edit it with Notepad.After that I uploaded the file and overwrote the existing one and guess what? Notepad vandalized it.The blank lines and spaces got removed and the file is now useless.All the code is in one line.The file had 2000 lines so I can't manually fix the problem.
    Is there any software that can somehow revert back those changes? I don't have a backup.I know, I know...
    Camp another day.
    Barbarossa

  2. #2
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,269

    Default

    Strange , and unlucky

    Have you tried opening it back up with another editor, like Notepad++ .
    Sometimes when i open up a unnamedsoldier.cfg file in notepad, the data is all on the one line, but when i open it with my default editor i use ( Adobe Dreamweaver ) it resorts back to normal, without any other procedure needed, does it automatically.

    Other then that i wouldn't have a clue how to fix it sorry

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  3. #3

    Default

    I just used GoDaddy's "Show Design" button which runs the code on the file editing area and displays the visual outcome and when I converted the page back to "code" it brought back the spaces but it also added and modified tons of code so the Javascript still won't work.I tried Notepad++ with no luck.I'll ask a friend of mine to test on his DreamWeaver.Thanks for the hint.
    Camp another day.
    Barbarossa

  4. #4

    Default

    If you haven't already got it, Download Adobe dreamweaver ( trial if needed ) and open your html file. In the top menu go to Commands > Apply Source Formatting. Its worked for me before in the past, But I'm not 100% sure. Hope it works out for you!

  5. #5
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    Notepad++ is 1 option, I actually use EditPlus. I like it because it's very light weight (portable) and it makes a backup of the original just inc ase you come across something like this. It also colors your ssyntax so it's easy to follow. It supports several languages. I've used it for mySQL, PHP, Java, JS, C,C++ a lot of different syntax formatting options.

    There is also online sources that allow you to copy/paste your code and tell it how you want it formatted, and it does it for you. I can't remember what they're called, but they do exist.

    EDIT:
    http://www.codebeautifier.com/
    http://jsbeautifier.org/
    http://uncrustify.sourceforge.net/
    http://tools.arantius.com/tabifier

    Hope this helps!

  6. #6

    Default

    ok thanks everyone.Unfortunately I screwed up the file second time by overwriting the one-linear file with GoDaddy's heavily modified file so I'll just start over with a decent file editor hehe
    Camp another day.
    Barbarossa

  7. #7

    Default

    This is a good free html editor too .NET WYSIWYG HTML Editor

Posting Permissions

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