74

I usually use Notepad++ for programming, but recently I started doing some writing in it as well.

Writing usually involves long paragraphs with no line breaks, and currently those are displayed in one row, which is extremely inconvenient.

How can I get N++ to to split lines? I believe that the option is called "split lines" in Gedit.

Hennes
  • 65,804
  • 7
  • 115
  • 169
jcora
  • 1,932
  • 3
  • 23
  • 32

4 Answers4

95

Go to View -> Word Wrap. Make sure that is checked.

Mayank
  • 2,278
39

If you do want hard breaks in lines of text, you can use this regexp find & replace all:

Find:      (?<=.{80})\s
Replace:   $0\n

Will look for a space after 80 characters and replace the whole match with itself and a new line (replace with $0\r\n for a Dos\Windows file)

Mike
  • 391
17

Reduce the window size of Notepad++ to your prefered size (move the right window margin). Then select all + Ctrl + I (Edit > Line Operations > Split Lines).

Done.

Dirk
  • 181
-1

I'm not familiar with notepad++ but I'm positive it's the same method:

Click on Format in the menu bar and enable Wrap option.

Bik
  • 1