Need URGENT help with extra whitespace characters in code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • webqueen79
    New Member
    • Feb 2008
    • 1

    Need URGENT help with extra whitespace characters in code

    When I open up my asp code in an editor, I see TONS of extra whitespace between code lines which is making the editor bomb out because it takes so long to load all the lines. When I open up the asp code in notepad I see weird square like characters where the extra whitespace is. I have tried doing a find/replace on the characters, but that hasn't worked. Does anybody know anyway of getting rid of these characters??? Please help, I am desperate.
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Hi WebQueen,

    Which editor are you using and are they just .asp files you are trying to open?

    Dr B

    Comment

    • CroCrew
      Recognized Expert Contributor
      • Jan 2008
      • 564

      #3
      It might be that your file is corrupt.

      On a side note. Notepad is a fine old tool but you might want to look into Notpad++. It’s a powerful editor free tool.



      But if you want to buy a powerful editor then give a look at UltraEdit. It is the best in my opinion.

      Comment

      • markrawlingson
        Recognized Expert Contributor
        • Aug 2007
        • 346

        #4
        Originally posted by webqueen79
        Does anybody know anyway of getting rid of these characters??? Please help, I am desperate.
        You're just going to have to delete the screwy characters manually. I would tend to think the file probably got corrupted but i've also seen WYSIWYG web bots do this to files before under certain circumstances. As for the white space, I wish I could show you some before and afters of some of the files I've ripped apart which were created using wysiwygs - you want to talk about white space? Trying 20kb of it in a single file.

        Don't know if these files have been touched by a WYSIWYG before, but that is one possibility - other than that the only explanation I could offer is that your server just decided to give you a headache one day and corrupted the file on ya...

        It sounds like you can open it in notepad with out the file crashing so i'd go in there and remove a bunch of them, re-save the file under a DIFFERENT file name so as not to kill the original copy - who knows what those characters really are.. could be part of your actual code.. and then try to open it in your favourite editor again.

        Sincerely,
        Mark

        Comment

        Working...