Community
    • Login

    Extra Lines break with Compare tool

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 4 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mathieu ChapotonM
      Mathieu Chapoton
      last edited by

      Hello,

      I’m a beginner with Notepad++, I’m working for a compagny which use .prg files.
      When I open normally this file with Notepad++, the syntaxe of the file looks like correct as expected.

      But when I use Compare tool to see difference with another files, the Compare mode allow me too see very important line break (sometimes more than 200) whereas I don’t see these in normal mode.
      I tried to play with the format of the Line ending (Settings/Preference/New document), without success.

      These important line break creates problem in our system. Could I have an explanation why I don’t see these lines jump in normal mode? What is the difference with the Compare mode for line break?

      Thank you for your Help.

      Mathieu

      1 Reply Last reply Reply Quote 0
      • Terry RT
        Terry R
        last edited by

        @Mathieu-Chapoton said:

        I tried to play with the format of the Line ending (Settings/Preference/New document),

        Firstly, compare will show differences between 2 files, so you will definitely see line ending codes where they differ between the 2 files, just as it displays ANY character differences.

        As for the setting, that is for new files, not existing files you open with NPP. I think your problem is that you aren’t making the line ending codes visible. I’m not at a PC, but I believe it’s under the view menu. Once the option is ticked (there are multiple options) you should see characters like tabs, spaces and line endings if you set them.

        See if that helps.

        Terry

        1 Reply Last reply Reply Quote 0
        • Mathieu ChapotonM
          Mathieu Chapoton
          last edited by

          Hi Terry,

          First of all many thanks for your tips.
          Actually I find out I was confuse by the compare tool which add blank lines on a file to make it comparable with the other. It’s why I got huge blocs of blank line.
          I set “Show all Characters” from view menu and it lighted my lind.

          Thanks so much.

          Mathieu

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Mathieu Chapoton
            last edited by

            @Mathieu-Chapoton said:

            confuse by the compare tool which add blank lines on a file to make it comparable with the other

            I don’t use the Notepad++ Compare plugin, but in other comparison tools I’m familiar with, in this situation the “blank lines” are only added for visual reference (they aren’t really in the file) and they usually appear different (shading) than real blank lines. Just some tips for your understanding moving forward…

            1 Reply Last reply Reply Quote 4
            • PeterJonesP
              PeterJones
              last edited by

              @Mathieu-Chapoton / @Alan-Kilborn,

              Yes, Npp Compare Plugin does display blank lines for lines that don’t exist; for example:

              Imgur

              Those lines aren’t really there in the file; the plugin just shows the blank lines to line things up visually.

              1 Reply Last reply Reply Quote 3
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors