• Login
Community
  • Login

Npp8.1.4 How to enable automatic line wrapping?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 4 Posters 16.7k 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.
  • П
    Поп Расстрига
    last edited by Sep 15, 2021, 8:23 AM

    I am using Notepad++ v/ 8.1.4 to type text. How do I enable automatic line wrapping after 80 characters? (As in MS Word).
    Please do not offer me ‘View -> Word Wrap’. This is only a visible wrap; in fact, the end-of-line character is not inserted into the text.
    Also, don’t suggest the ‘Replace…’ and regex option. With the same success, I can manually press the Enter button while entering text.

    E A 2 Replies Last reply Sep 15, 2021, 10:40 AM Reply Quote 0
    • E
      Ekopalypse @Поп Расстрига
      last edited by Sep 15, 2021, 10:40 AM

      @Поп-Расстрига

      Npp does not have such a function.
      Maybe there is a plugin, but I am not aware of any that provides this function.

      A possible solution could be to create a Python script,
      which means you need to install the PythonScript plugin,
      but I don’t know if you want to go that way.
      And do you really want it to always break at column 80?
      Even if it’s in the middle of the word?

      1 Reply Last reply Reply Quote 3
      • A
        Alan Kilborn @Поп Расстрига
        last edited by Sep 15, 2021, 12:17 PM

        @Поп-Расстрига

        Here’s pretty much the exact same thing, as a declined feature request:

        https://github.com/notepad-plus-plus/notepad-plus-plus/issues/1140

        The primary difficulty seems to be that this type of behavior is not supported by Notepad++ 's editing component, Scintilla.

        E 1 Reply Last reply Sep 15, 2021, 12:32 PM Reply Quote 3
        • E
          Ekopalypse @Alan Kilborn
          last edited by Sep 15, 2021, 12:32 PM

          @Alan-Kilborn

          maybe I’m wrong, but I understood the OP’s request a little differently.
          My understanding is that an eol should be added automatically
          when the 80th column is reached, which could be done by
          checking the current column and changing the inserted Text accordingly.
          The one discussed in the linked issue seems to be just a visual line break instead.

          M A 2 Replies Last reply Sep 15, 2021, 1:15 PM Reply Quote 0
          • M
            Michael Vincent @Ekopalypse
            last edited by Sep 15, 2021, 1:15 PM

            @Ekopalypse said in Npp8.1.4 How to enable automatic line wrapping?:

            maybe I’m wrong, but I understood the OP’s request a little differently.

            I didn’t get it at all. Seems he wants auto-line wrapping

            How do I enable automatic line wrapping after 80 characters? (As in MS Word).

            like @Alan-Kilborn suggests. But then @Поп-Расстрига goes on to say

            Please do not offer me ‘View -> Word Wrap’. This is only a visible wrap; in fact, the end-of-line character is not inserted into the text.

            which @Ekopalypse suggests could be scripted. One should note - MS Word does NOT auto-insert carriage returns when line wrapping - it is only visual. Take an MS Word paragraph and copy/paste to any text editor and it all is one line - no auto-inserted carriage returns - only visual.

            I think @Поп-Расстрига needs to clarify what exactly he wants noting that Notepad++ is NOT a word processor so comparing features to MS Word is not the best way to explain things.

            Cheers.

            1 Reply Last reply Reply Quote 3
            • A
              Alan Kilborn @Ekopalypse
              last edited by Sep 15, 2021, 1:17 PM

              I think @Поп-Расстрига needs to clarify what exactly he wants noting that Notepad++ is NOT a word processor so comparing features to MS Word is not the best way to explain things.

              Probably this is true.

              I’m leaning toward the OP wants hard line-endings inserted, and this may be a good thing, because that’s probably an easier task than soft wrappings at a specific column. :-)

              1 Reply Last reply Reply Quote 2
              4 out of 6
              • First post
                4/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors