Go to View--> Show symbol-->Show all character // Its worked for me
Maybe you can use TextFX plugins
In TextFX, go to textfx edit ? delete blank lines
Just do a \r with a find and replace with a blank in the replace field so everything goes up to one line. Then do a find and replace (in my case by semi colon) and replace with ;\n
:) -T&C
It appears that this is a FAQ, and the resolution offered is:
Simple search (Ctrl+H) without regexp
You can turn on View/Show End of Line or view/Show All, and select the now visible newline characters. Then when you start the command some characters matching the newline character will be pasted into the search field. Matches will be replaced by the replace string, unlike in regex mode.
Note 1: If you select them with the mouse, start just before them and drag to the start of the next line. Dragging to the end of the line won't work.
Note 2: You can't copy and paste them into the field yourself.
Advanced search (Ctrl+R) without regexp
Ctrl+M will insert something that matches newlines. They will be replaced by the replace string.
To change a document of separate lines into a single line, with each line forming one entry in a comma separated list:
\r\n
".,
" or ",
" (depending on preference).These steps turn e.g.
foo bar
bar baz
baz foo
into:
foo bar,bar baz,baz foo
or: (depending on preference)
foo bar, bar baz, baz foo
The way I found it to work is by using the Replace function, and using "\n", with the "Extended" mode. I'm using version 5.8.5.
In 2013, v6.13 or later, use:
Menu Edit ? EOL Conversion ? Windows Format.
Assuming it has a "regular expressions" search, look for \r\n. I prefer \r?\n, because some files don't use carriage returns.
EDIT: Thanks for the feedback, whoever voted this down. I have learned that... well, nothing, because you provided no feedback. Why is this wrong?
I was totally unable to do this in NP v6.9. I found it easy enough on Msoft Word (2K).
Open the doc, go to edit->replace.
Then in the bottom of the search box, click "more" then find the "Special" button and they have several things for you. For Dos style, I used the "paragraph" one. This is a cr lf pair in windows land.
It appears that this is a FAQ, and the resolution offered is:
Simple search (Ctrl+H) without regexp
You can turn on View/Show End of Line or view/Show All, and select the now visible newline characters. Then when you start the command some characters matching the newline character will be pasted into the search field. Matches will be replaced by the replace string, unlike in regex mode.
Note 1: If you select them with the mouse, start just before them and drag to the start of the next line. Dragging to the end of the line won't work.
Note 2: You can't copy and paste them into the field yourself.
Advanced search (Ctrl+R) without regexp
Ctrl+M will insert something that matches newlines. They will be replaced by the replace string.
On the Replace dialog, you want to set the search mode to "Extended". Normal or Regular Expression modes wont work.
Then just find "\r\n" (or just \n for unix files or just \r for mac format files), and set the replace to whatever you want.
If you need to do a complex regexp replacement including \r\n, you can workaround the limitation by a three-step approach:
\r\n
by a tag, let's say #GO#
? Check 'Extended', replace \r\n
by #GO#
ICON="*"
from an html bookmarks ? Check regexp, replace ICON=.[^"]+.> by >
#GO#
by \r\n
Use the advanced search option (Ctrl + R) and use the keyboard shortcut for CRLF (Ctrl + M) to insert a carriage return.
To find any kind of a line break sequence use the following regex construct:
\R
To find and select consecutive line break sequences, add +
after \R
: \R+
.
Make sure you turn on Regular expression mode:
It matches:
U+000DU+000A -
CRLF` sequenceU+000A
- LINE FEED
, LFU+000B
- LINE TABULATION
, VTU+000C
- FORM FEED
, FFU+000D
- CARRIAGE RETURN
, CRU+0085
- NEXT LINE
, NELU+2028
- LINE SEPARATOR
U+2029
- PARAGRAPH SEPARATOR
I opened the file in Notepad++ and did a replacement in a few steps:
This puts all the breaks where they should be and removes those that are breaking up the file.
It worked for me.
Make this setting. Menu-> View-> Show Symbol-> uncheck Show End of the Line
Image with CRLF
Image without CRLF
I've not had much luck with \r\n regular expressions from the find/replace window.
However, this works in Notepad++ v4.1.2:
Use the "View | Show end of line" menu to enable display of end of line characters. (Carriage return line feeds should show up as a single shaded CRLF 'character'.)
Select one of the CRLF 'characters' (put the cursor just in front of one, hold down the SHIFT key, and then pressing the RIGHT CURSOR key once).
Copy the CRLF character to the clipboard.
Make sure that you don't have the find or find/replace dialog open.
Open the find/replace dialog. The 'Find what' field shows the contents of the clipboard: in this case the CRLF character - which shows up as 2 'box characters' (presumably it's an unprintable character?)
Ensure that the 'Regular expression' option is OFF.
Now you should be able to count, find, or replace as desired.
Source: Stackoverflow.com