Community
    • Login

    Npp8.1.4 How to enable automatic line wrapping?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 4 Posters 15.5k 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

      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.

      EkopalypseE Alan KilbornA 2 Replies Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Поп Расстрига
        last edited by

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

        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
        • Alan KilbornA
          Alan Kilborn @Поп Расстрига
          last edited by

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

          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.

          EkopalypseE 1 Reply Last reply Reply Quote 3
          • EkopalypseE
            Ekopalypse @Alan Kilborn
            last edited by

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

            Michael VincentM Alan KilbornA 2 Replies Last reply Reply Quote 0
            • Michael VincentM
              Michael Vincent @Ekopalypse
              last edited by

              @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
              • Alan KilbornA
                Alan Kilborn @Ekopalypse
                last edited by

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