Community
    • Login

    Visibility of EOL

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 4 Posters 787 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.
    • Neil McNaughtonN
      Neil McNaughton
      last edited by

      Is there a way of making it easier to see what EOL is being used in the current document (Windows/Unix/Mac)? This would help when working across different systems.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Neil McNaughton
        last edited by

        @Neil-McNaughton

        Yes, but a common complaint with it is that the effect is too “heavy”; here’s how to turn it on and a background example of what it looks like:

        8ba4c097-5920-48e6-90ba-1398fbea5027-image.png

        I believe that a newer Scintilla editing component than N++ (8.1.4) currently uses is available which makes the effect less pronounced, but this newer component would have to be integrated into N++ in order to work.

        astrosofistaA 1 Reply Last reply Reply Quote 1
        • Nick BrownN
          Nick Brown
          last edited by

          The type of line ending in use for the current file is shown on the status bar assuming it is visible:

          846fef37-5677-410a-bae6-d4956a92e205-image.png

          Alan KilbornA 1 Reply Last reply Reply Quote 3
          • Alan KilbornA
            Alan Kilborn @Nick Brown
            last edited by

            @Nick-Brown said in Visibility of EOL:

            The type of line ending in use for the current file is shown on the status bar assuming it is visible

            Ach, I misread the question, but I will add now that although every file has a line-ending “type” (as shown on the status bar), there is no form of guarantee that the file itself will contain only those types of line-endings.

            So…my method has the virtue of showing one the line-endings on any given line.

            If you want a guarantee of the line-ending types all being consistent, I think you might want to check out the editor-config plugin.

            Nick BrownN 1 Reply Last reply Reply Quote 1
            • Nick BrownN
              Nick Brown @Alan Kilborn
              last edited by

              @Alan-Kilborn I was just offering an alternative as I read the question, both seem valid answers to me.

              Alan KilbornA 1 Reply Last reply Reply Quote 2
              • Alan KilbornA
                Alan Kilborn @Nick Brown
                last edited by

                Another feature relating to line-endings that I noticed is that if you paste data into your document from another source, your line-endings become unified (to the type specified on the status bar).

                Example:

                Start with this (I have MY ways of generating this data) – notice the “mixed” line-endings, some are CR, some are LF and some are CRLF:

                ded566e7-1621-4328-931b-58a5706ad7a4-image.png

                and this showing on the status bar:

                116cdafa-8a8d-4a22-9c36-8dd6b65d3959-image.png

                In another tab, create a one-liner:

                d14ad655-1393-4c02-92e6-3428258f530b-image.png

                and then copy that one-liner to the clipboard.

                Return to the mixed line-ending tab and move to the start of line 10 and paste there using Edit > Paste or the right-context menu’s Paste item – what you’ll obtain is a unified line-ending file per the status bar setting:

                762f6741-40cd-44ce-a582-f945d9be71a2-image.png

                1 Reply Last reply Reply Quote 3
                • astrosofistaA
                  astrosofista @Alan Kilborn
                  last edited by

                  @Alan-Kilborn said in Visibility of EOL:

                  I believe that a newer Scintilla editing component than N++ (8.1.4) currently uses is available which makes the effect less pronounced, but this newer component would have to be integrated into N++ in order to work.

                  That is correct. For the curious among you, the new feature was introduced in Scintilla 5.1.0. See here for details.

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