Home > Article > Development Tools > How to remove line breaks in notepad
Generally, our text compiler has its own search and replace function, but because the ordinary notepad program cannot display carriage returns and line feeds, naturally there is no way to search and replace.
So we recommend using the notepad tool (recommended learning: notepad use)
Open notepad, we open the view button in the top menu bar of the program
##[Show symbols]->[Show all Character], so that we can view the hidden characters that cannot be displayed on the computer. We can see that CRLF is the carriage return and line feed character, the arrow is the tab character indentation, and the dot is the space.
We click the search button on the top bar menu, or press the shortcut key [CTRL F] to see where we enter \r\n. At the same time, we need to The extension is turned on so that we can search for carriage return and line feed characters normally
Note: Must display hidden characters before searching them out
We switch to the replacement tab. At this time we can choose to replace all \r\n with empty, thus realizing the operation of removing line breaks
The above is the detailed content of How to remove line breaks in notepad. For more information, please follow other related articles on the PHP Chinese website!