Recommendation: EmEditor

Source: Internet
Author: User

I don't like adventure. I know what I like. That is life.
-- San ekzhouperry
From the earth of man

What is EmEditor? It is a text editor similar to UltraEdit and EditPlus.
"KAO! Is there anything wrong with a text editor ?!"
"I am used to UltraEditor and EditPlus. I don't want to change it any more. Goodbye !"
I think you will say that. I used EditPlus for a long time, but recently I switched to EmEditor because it does have many unique features. Let me go slowly.

Amazing search highlight Function

To put it bluntly, the most common feature of lazy text editors is the search and replacement function. I often think that the only thing I have more advanced than migrant workers is that I can copy, paste, and find and replace them, But migrant workers cannot. Of course, if the House can also be copied and pasted, I don't know whether it's the current price or not? Searching and replacement is indeed quite advanced, but when there are three or fifty parts in a file that need to be replaced, We will click the "replace" button while staring at the continuously beating screen with wide eyes, for fear of replacing which one should not be replaced. When it is over, do you have to worry about whether the replacement is not replaced? Alas, the programmer's life is bitter and his eyes are sore ...... Even so, I am afraid to press the "replace all" button. Who knows which of the following should be replaced, what should be replaced but missed? I hate to say that.

If you try to press the "Find Next" button in EmEditor ......

See? (The green ones are not intentionally painted with marker pens, although I often like this), all the matching conditions will be painted green, in this way, we can check it before replacing it. Then we can pick up our Erlang legs, take a sip of coffee, and click "Replace All.

TIPS: select "Search> Erase Find Highlight (Alt + F3)" to temporarily turn off the highlighted feature.

Exclusive stunt: forced replacement in upper case (lower case)

Late at night, pear company.
Clark was sitting in a daze in front of the computer, and a burst of crisp cell phone ringtones broke his meditation. It turned out that he was calling his wife who was studying.
Clark: "My wife, have you passed the paper ?"
Wife: "I didn't have much problem with my thesis, but the teacher said that my program completely did not comply with. net coding specifications and I had to change it all. But I will officially answer the question tomorrow. What can I do ?"
Clark: "Why? You can take the program and let me see 1 ."
Later, Clark saw his wife's program and swollen eyes like peaches. The wife pointed to the property declaration code in the program and said, "Sorry, It is here:

Private long contract_id;
Private string contract_number;
Private string customer_name;

"The teacher said that the code that complies with the coding specifications should look like this ."

Private long contractId;
Private string contractNumber;
Private string customerName;

"Well ...... This is not difficult. Just use a regular expression to find and replace it .", Clark said.
"I also thought about this, but I can only remove the underline at most by searching and replacing it. I cannot change the lower-case letters to uppercase letters ?" The old lady is dying.
Clark Smiled slightly and said, "Don't worry, there will be some bread, and the lower case will also be converted into upper case ......"
Before the old lady rushed over, Clark opened the EmEditor at a speed that could not beat his ears, and entered a regular expression [_ (\ w) and replace the expression \ U \ 1 \ E ]. "\ 1" indicates the content in the first pair of "()" in the search expression.

Then, click "Replace All.

Tip: In the "Replace" dialog box, there is a ">" button on the right side of the "Find" and "Replace with" text boxes. Click them to see a drop-down menu, many common Regular Expression tags are listed. Click "Help on Regular Expressions" in the last menu to open the Help document for Regular Expressions supported by EmEditor.

Rich plug-ins

I don't know when, since then, many features of the classics have not been put into the main program-they have all become plug-ins, after installing the main program, I have to download the plug-in one by one.

Because there are too many plug-ins, the length is limited (in fact, it is relatively lazy). Here we only introduce a few interesting ones.

Insert a string at the beginning/end of a row

We have a program written in VB:

OpenIceBoxDoor ()
PutElephantIn ()
CloseIceBoxDoor ()

Now you want to change it to C # (that is, add a semicolon at the end of each line). You can do this:

Right-aligned & Column edit mode

Now we want to change the above program to VB (that is, remove the semicolon at the end of the line). We can do this:

Macro

To be honest, I have never liked to use macros. It may be that the macro virus has caused some psychological barriers. However, some problems can only be solved with macros. For example, you want to extract the field name from the following code.

Use the macro "emeditor_perfecta_en.jsee" to extract the string matching the regular expression [Path = \ w +] and put it in a new document. Another reason I don't like macros is that they cannot be previewed before execution, just like searching and replacing them, therefore, it is reassuring to put the Matching content in a new document without changing the original file content like this macro.

Then, use the column editing mode described earlier to delete the previous "Path =.
You may ask why you don't need a regular expression with a reverse view structure 【(? <= Path =) \ w +? In this way, "Path =" is not included in the matching result. This is because the Macros in EmEditor use JavaScript code, while the regular expressions in JavaScript do not support reverse view structure.
The Regular Expression in JavaScript can refer to the http://www.ijavascript.cn/shouce/javascript-regexp-71.html
You can use this mini tool to Test your regular expression Test javascript regex

Get character encoding

I can't remember the encoding of the character "<". I don't have to worry about it with EmEditor. Place the cursor on the left of "<" (note that it is left rather than selected), and then use the menu "View> Character Code Value... (Ctrl + I) "to know its ANSI and Unicode encoding.

The Unicode code of "jing" is "666F", which is "Shun shun Fa". Do you know why I 've been so lucky?

Even the character counting function is so detailed ......

I did not expect this article to be written for more than n hours. I really want to know how many words I have written.

I wrote more than 2000 words.

A Tab page similar to IE7

Double-click the left mouse button in the blank space to create a blank document.

Rich customization Functions

You can use the menu "Tools> Properties for All types of documents" to set the attributes of All types of documents. Use the menu "Tools> Select Configuartion> C #" to set the attributes of C # documents separately.

For example, if you tick the "Vertical Line" check box in, you can display a silver-gray Vertical Line in the document, which is cool (this interesting feature was discovered by a fan, thank you ).

Make a USB flash drive EmEditor

We have tried every effort to install a full set of plug-ins and macros we like, and made many personalized settings suitable for ourselves. However, once the system is reinstalled or the machine is changed, we will do our best, but it's a big bad thing. Fortunately, EmEditor provides the function of exporting data to a USB flash disk. You only need to use the menu "Tools> Import and Export" to plug and play with pai_^. Of course, if you reinstall the system, you just need to Copy the EmEditor folder in the USB flash drive to any place on the hard disk to avoid re-installation.

Download & Install

You can download the latest main program and dozens of plug-ins, macros, syntax files, and language packs from the official homepage of EmEditor.
Registration Code: 1817 5990 1004 4106
If you like my EmEditor settings, you can directly download my USB flash drive:
EmEditor.part01.rar (1.7 MB)
EmEditor.part02.rar (1.7 MB)
EmEditor.part03.rar (1.5 MB)
After downloading these three compressed files, right-click and decompress the “emeditor.part01.rar file.

TIPS: if you are using my USB flash drive, you will find that the tray icon of EmEditor is not displayed, and there is no file association or right-click menu. You can use the EmEditor menu "Tools> Customize... ", and then select the" Shortcut cut "Tab, you can choose to add EmEditor to the" send to "System menu, boot automatic run tray icon; click" More Shortcuts... you can select the right-click menu added to the resource manager and choose whether to use it as the editor for IE to view the source code. Select the "File" Tab and click "Associate with EmEditor..." to add a File association.

EmEditor9.06 (updated at 2009-12-1)

It has been one and a half years since I wrote this article, and EmEditor has released version 9.06. The reason why I made up my mind to upgrade this time is that I really like the new feature of version 9.06-the CSV mode. As long as you press the "CSV mode" button on the toolbar to enter the CSV mode, text in the CSV style separated by commas will be automatically aligned by column, so it is not easy to see the string. Because I often need to edit the CSV-style string of the Balsamiq Mockups control, this function is really helpful to me.
You can download the Chinese green version of EmEditor9.06, Which I adjusted the plug-in layout again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.