• Login
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.
  • N
    Neil McNaughton
    last edited by Sep 24, 2021, 7:45 AM

    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.

    A 1 Reply Last reply Sep 24, 2021, 11:45 AM Reply Quote 0
    • A
      Alan Kilborn @Neil McNaughton
      last edited by Sep 24, 2021, 11:45 AM

      @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.

      A 1 Reply Last reply Sep 24, 2021, 9:24 PM Reply Quote 1
      • N
        Nick Brown
        last edited by Sep 24, 2021, 2:30 PM

        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

        A 1 Reply Last reply Sep 24, 2021, 2:33 PM Reply Quote 3
        • A
          Alan Kilborn @Nick Brown
          last edited by Sep 24, 2021, 2:33 PM

          @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.

          N 1 Reply Last reply Sep 24, 2021, 3:36 PM Reply Quote 1
          • N
            Nick Brown @Alan Kilborn
            last edited by Sep 24, 2021, 3:36 PM

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

            A 1 Reply Last reply Sep 24, 2021, 5:17 PM Reply Quote 2
            • A
              Alan Kilborn @Nick Brown
              last edited by Sep 24, 2021, 5:17 PM

              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
              • A
                astrosofista @Alan Kilborn
                last edited by Sep 24, 2021, 9:24 PM

                @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
                5 out of 7
                • First post
                  5/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors