Menu

Weird Experience With Notepad++

Iridius
2007-04-06
2012-11-13
  • Iridius

    Iridius - 2007-04-06

    I don't know if anyone else has experienced this, but I've been plagued by troubles with Notepad++. I didn't realize what was happening until recently.

    I have Notepad++ on my thumb drive to use at school (as they don't allow install of programs) and on my laptop. Switching between the two separate instances of Notepad++ produced some bizarre effects, which seemed mostly benign at first. Things such as putting a blank line between all the lines of code (double lining, would you call it), weird indentations that went way way right and lines of code suddenly being on the same line.

    On Thursday night I experienced the most bizarre occurrences yet. Namely, after using Notepad++ to modify code, the files no longer worked after uploading them to my host. I develop in PHP and was stumped by what was happening. I was getting error after error from the host server. I checked and rechecked everything. I finally realized that Notepad++ was the culprit after I copied and pasted into Notepad, removed some weird characters and re-uploaded the files (which then worked).

    I checked to make sure I was on the setting of Encode in ANSI.

    Has anyone else had this problem? Do I need to encode in UNIX before I upload?

     
    • MJG

      MJG - 2007-04-19

      The weird indentations might be a difference in tab size settings.  See the MISC tab on the Preferences dialog.  --Joel

       
      • Nobody/Anonymous

        i'm running into this same problem on an xp pro box, where unicode (with bom) sometimes sees double-lines, sometimes not, with no apparent rhyme or reason.  ultra-edit, on exactly the same files, sees text exactly as entered/typed...

        and the tabs issue is truly annoying...  i've set tab preferences to 8 spaces, and almost without exception the tabstop "on screen" appears to be anywhere from 2 spaces to 4, depending on the chosen font.  i've yet to find a single non-fixed character besides courier new that has a displayed tab of more than 4 spaces, even when 8 (or sometimes even 16) has been chosen in misc preferences...

        00 travelgirl
        http://www.parkgallery.org

         
    • Miamidot

      Miamidot - 2007-04-10

      I think you are facing an issue common to usage of any text editing across unix and MS Windows.

      An ancient number of years ago I had been editing csh files in vi natively on a solaris box. The csh files then ran fine.

      Then a technological itch had me edit the files using a MS Windows text editor from my PC thro Hummingbird PC-NFS. After that I found that my csh files were encountering errors. Then I inspected the csh files using dtpad on solaris ~ still no problems found. Until it occurred to me that I should get back to using good ol vi which revealed the extra ctrl-M chars at the end of each line.

      One would think that CS schools by now should warn their students about the phenomenon and history behind the differences between unix and microsoft way of terminating a line. I guess some professors deliberately leave it to their students to discover the horror by themselves. That's the real culprit.

       
    • MJG

      MJG - 2007-04-19

      There *may* be a way to configure Notepad++ to not "add" extra characters; double-spacing is definitely one symptom of the Windows-Unix exchange.  Like Miamidot, my experience is one carriage-return/linefeed "new line" in Windows is usually considered two in Unix.

      You might look at what is selected on the "New Document" tab of the Preferences dialog for your two different instances of Notepad++.  --Joel