Home >Development Tools >notepad >How to quickly add specified content to the beginning and end of each line in notepad++

How to quickly add specified content to the beginning and end of each line in notepad++

藏色散人
藏色散人forward
2020-05-08 13:55:065687browse

The following tutorial from Notepad will introduce to you how to change the theme of Notepad. I hope it will be helpful to friends in need!

How to quickly add specified content to the beginning and end of each line in notepad++

Use the shortcut key Ctrl H to open the "Replace Dialog" and add content at the beginning of each line.

Check the "Regular Expression" option in the lower left corner (note that you must remember to check it)

Enter the sharp symbol "^" in "Find Target", the sharp symbol represents each At the beginning of the line

Input "(what needs to be added)" in "Replace with"

Then click the "Replace All" button, so that everything is added in front of each line (need to be added Content)

Enter the dollar sign "$" in "Find Target", the dollar sign represents the end of each line

Enter "(content to be added)" in "Replace with"

Then click the "Replace All" button, so that all the content that needs to be added is added at the end of each line

For more notepad technical articles, please visit notepadTutorial column!

The above is the detailed content of How to quickly add specified content to the beginning and end of each line in notepad++. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete