Home > Article > Development Tools > Tip sharing: How to add content at the beginning and end of each line in Notepad
In the process of programmer development, a good The tool is notepad, which is an enhancement of notepad. It has enhanced many functions, including the column block editing mode that programmers like, and supports many plug-ins, such as json formatting and markdown syntax.
One scenario is this,
For example, the title bar of the uploaded salary slip is the above content. Therefore, when entering the database, we need to change all these contents into String, but it is very troublesome to operate one by one. How can I use notepad to quickly add the required characters at the beginning and end of the line?
Transpose the content of the salary row header row into column form, as shown in the previous figure .
First place the cursor before the serial number, then click Edit, select column block editing, or after placing the cursor before the serial number , use the shortcut key Alt C to quickly open the column block editing dialog box.
The results are as follows:
After clicking OK, perform all replacements, the effect is as follows:
Note: the line break may be "\n" (mostly this) or "\r" or "\r\n"
The effect is as follows:
The above is the detailed content of Tip sharing: How to add content at the beginning and end of each line in Notepad. For more information, please follow other related articles on the PHP Chinese website!