Npp8.1.4 How to enable automatic line wrapping?
-
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. -
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? -
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.
-
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. -
@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.
-
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. :-)