Editplus 2.12 Usage Tips - Improvement

xiaoxiao2021-03-06  39

In the skill, based on my usual practice, I've made a picture of some official literature in the compiler integration example. There are a few articles that are collected from the Internet. I specifically indicate the source or the original author. If you are the author, don't want the article here, please inform me, I will delete it in time. ----- liangjh

Some of you wrote, don't see how much technical content, just want to save some time for everyone.

-------------------------------------------------- ----

Articles or techniques and original author or source:

Regular expression class

[1] Regular expression application - replacement specified content to the end

[2] Regular expression application - Digital replacement --------------------------- Microshaoft @ ccf, jiuk2k @ ccf

[3] Regular expression application - delete the specified character of each line

[4] Regular expression application - replace multi-line brackets

[5] Regular expression application - delete blank line -------------------------------------------------------------------------------------------- Jiang Dehua

Software skill

-------------------------------------------------- ----

[6] Software Skills - Note on Keyboard Record

[7] Software Skills - Convenient Methods for Close Document Tags

[8] Software Skills - How do I remove the addition suffix prompt when editplus saves text files?

[9] Software Skills - Tips Finding Solutions for Syntax Files

[10] Software Skills - Set Editplus Support Other Texts, such as Korean -------- Jackywu1978 @ LJF

[11] Software Skills - FTP upload settings -------------------------- Li Yingwen 2.11 Chinese version

[12] Software Skills - How to Disable Backup File Features?

[13] Software Skills - Add syntax file, automatic completion file, and clip file

Tool integration class

-------------------------------------------------- ----

[14] Tool Integration - Compiler Integrated Example (Java, Borland C , Visual C , Inno Setup, NSIS, C #)

[15] Tool Integration - Let EditPlus debug PHP program -------------------- Avenger, Aukw @ ccf

[16] Tool Integration - Creating a PHP Debugging Environment (2) ---------------------- Old Seven 2.11 Chinese Edition

[17] Integrated Editplus in WinPE

Subsequent addition

-------------------------------------------------- ----

[18] Support file with UTF-8 tag / without UTF-8 tag

Every step is very detailed, there is no need to map, the volume is not too big.

[1] Regular expression application - replacement specified content to the end

The original text is like the following two lines

ABC AAAAA

123 ABC 444

I hope that each "ABC" is encountered each time, "ABC" and the content to the end to the end are "ABC EFG"

That is, the above text is finally replaced with:

ABC EFG

123 ABC EFG

solve:

1 In the replacement dialog, enter "ABC. *" In the lookup.

2 Check the "Regular Expression" check box, then click the "All Replace" button

Among them, the meaning of the symbol is as follows:

"." = Match any character

"*" = Match 0 times or more

Note: It is actually the regular expression, but it is just to organize some problems that have been raised. From the regular expression itself, you can quote thousands of special cases. [2] Regular expression application - Digital replacement (microshaoft @ ccf, jiuk2k @ ccf)

Hope

askADAS123ASDASDAS456ASDASDASD789ASDASD

Replace with:

askADAS [123] Asdasdas [456] Asdasdasd [789] Asdasd

In the replacement dialog, check the "Regular Expression" checkbox;

Enter "[0-9] [0-9] [0-9]", not quotation marks

"Replace" "Inside" [/ 0/1/2] ", does not include quotes

The range is the range you operate, then select Alternate.

In fact, this is also a special example of the regular expression, "[0-9]" indicates any special case between 0 to 9, and "[A-Z]" represents any special case between the A to Z.

The above reuse "[0-9]" is used, indicating three numbers of continuous appearance.

"/ 0" represents the first "[0-9]" corresponding prototype, "/ 1" represents the second "[0-9]" corresponding prototype, according to this class

"[", "]" Is a simple character, indicating adding "[" or "]", if you enter "other / 0/1/2 other", the replacement result is:

Asdadas other 123 Other ASDASDAS Other 456 Other ASDASDASD Other 789 Other ASDASD

Functional enhancement (by jiuk2k @ ccf):

If you will find the content "[0-9] [0-9] [0-9]" change to "[0-9] * [0-9]", corresponding 1 or 123 or 12345 or ...

Everyone is customized as needed

There are still a lot of related content, you can study your own grammatics for the regular expression.

[3] Regular expression application - delete the specified character of each line

Because these characters are also appeared in the row, they must not be implemented in a simple replacement.

such as

12345 1265345

2345

Need to delete "345" at the end of each row

This is also a regular expression usage. In fact, carefully see the regular expression should be relatively simple, but since this problem has been proposed, it will show that the regular expression has a knowledge process, the solution is as follows

solve:

In the Replace dialog box, enable the "Regular Expression" checkbox

Enter "345 $" in the lookup content

Here "$" means matching from the tail

If you match the first match, you can use "^" to implement, but editplus has another function to delete the lead character string.

a. Select the line you want to operate

b. Edit - Format - Delete Row Note

c. In the pop-up dialog, enter the lead character you want to clear, determine

[4] Regular expression application - replace multi-line brackets

There are hundreds of questions in hundreds of web pages: