Home > Development Tools > notepad > How to replace newline characters in notepad++

How to replace newline characters in notepad++

(*-*)浩
Release: 2019-08-21 15:54:13
Original
21160 people have browsed it

Can we realize the replacement of line breaks through Notepad? After all, many formats will be retained during many copy-paste processes, such as copying from PDF. Next, I will explain how to do this.

How to replace newline characters in notepad++

Copy content (Recommended learning: notepad )

How to replace newline characters in notepad++

##Paste into the new txt.

How to replace newline characters in notepad++

Check the newline characters. The newline characters of different operating systems are different.

[View]-[Show symbols]-[Show end-of-line characters].

My operating system is windows, so the line ending character is CR LF - the corresponding regular expression is \r\n.

The mac system is CR - the corresponding regular expression is \r.

Unix system is LF - the corresponding regular expression is \n.

How to replace newline characters in notepad++

How to replace newline characters in notepad++

Replacement operation

Shortcut key Ctrl H, [Find target] input [\ r\n], the content after replacement is determined by yourself, as shown in the figure below.

Note: Be sure to select [Extended] here, otherwise it will not succeed.

How to replace newline characters in notepad++

Replace all and complete the newline replacement operation. The effect is shown in the figure below.

How to replace newline characters in notepad++

The above is the detailed content of How to replace newline characters in notepad++. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Why is my hosts notepad blank?
From 1970-01-01 08:00:00
0
0
0
Teacher Notepad++ how to make prompt code
From 1970-01-01 08:00:00
0
0
0
Notepad++ will not use
From 1970-01-01 08:00:00
0
0
0
The contents of hosts notepad are incorrect
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template