1. Open the registry and create the following registry key: HKLM \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution options \ notepad.exe. If it cannot be modified, right-click to obtain the permission;
2. In the notepad.exe registry key, create a string value named debugger (reg_sz );
3rd, modify the data in the "debugger" string to the complete path of notepad2.exe, and end with the/Z parameter. (For example, "d: \ Program Files \ notepad2 \ notepad2.exe"/Z)
Or you canCodeSave it to The. reg file, double-click it, and you can merge (insert the registry key and string value to the registry.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution options \ notepad.exe] "Debugger" = "\" D: \ Program Files (x86) \ notepad2 \ notepad2.exe \ "/z"
You may encounter a situation where you cannot write data to the Registry, as shown below:
The solution is to restart the system and press F8 to enter safe mode and then execute the reg file.
Official Website:Http://www.flos-freeware.ch/notepad2.html
Chinese version:Google (refer to: http://www.orsoon.com/soft/4900.html, including 32-bit and 64-bit)
Notepad2 features:
1. Custom syntax highlighting: HTML, XML, CSS, JavaScript, VBScript, ASP,
PHP, CSS, PERL/cgi, C/C ++, C #, Java, VB, Pascal, a compilation, SQL, Python, NSIs, INI, Reg, INF, bat, diff, and many other script files.
2 supports ANSI, Unicode, UTF-8 and Other encoding Interchange
3. You can set unlimited bookmarks (9 types of icons can be changed) for easy positioning.
4 spaces, tab color display, and can be converted to each other
5. You can operate any text block, ALT + mouse
6 pairs of brackets {} [] () can be highlighted and paired for ease of viewing (only valid for English symbols)
7. You can customize code pages and character sets, and have good support for Chinese characters.
8. search and replace using standard Regular Expressions
9 you can use the translucent mode, cool
10. Zoom in and out the page quickly without setting the font size.
11 you can specify the ESC key to minimize notepad2 to the system tray or disable notepad2.