Search code examples
notepad++newlinelinefeed

How do you get Notepad++ to show separate lines when /r/n is in the text?


I've pasted some XML into Notepad++. The pasted text contains \r\n wherever a newline is supposed to occur. However, Notepad++ is just showing the entire file on a single line. It is as if it is ignoring the \r\n

So the text look like this:

Some stuff on one line\r\n     Some stuff that should be on another line\r\n

Instead of:

Some stuff on one line
Some stuff that should be on another line

Solution

  • Try setting the search mode in Notepad++ to Extended. Then, find and replace all the /r/n with an actual line break(\n). See: This post for more information about this similar case. From what I found, you can get away with simply \n.