How do you get Notepad ++ to display individual lines when / r / n is in text?

I have pasted some XML into Notepad ++. The embedded text contains \ r \ n wherever a newline is expected to appear. However, Notepad ++ just shows the entire file on one line. It's as if he ignored the \ r \ n

So the text looks like this:

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

      

Instead:

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

      

+3


source to share


2 answers


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



+1


source


Press CTRL-h and a replace dialog will open. 1. Enter \ r \ n in the "Find what" field 2. Enter \ r \ n in the "Replace with" field. 3.select the Advanced search mode (\ r, \ n, \ t, \ x ..., \ 0) and click "Replace All"



0


source







All Articles