notepad3 替代windows自帶文本編輯器(xjl456852原創)


notepad3 是個更加奢華的記事本編輯器.
(Notepad3 安裝版會直接替代記事本,但便攜版可直接運行,不替代)
Windows 上的記事本在日常使用的時候挺方便的,但記事本在保存 utf-8 編碼文件的時候,會在文件頭前面加上幾個不可見的字符(0xEF 0xBB 0xBF,即 BOM 頭),導致一些編程文件出錯,比如修改 php.ini 配置文件的時候,會導致加載出錯。
為此,想找到一款輕量級的文本編輯軟件,以替換掉 Windows 下的記事本。
Notepad3 是在 Notepad2 基礎上進行升級開發,主要目標也是替換掉 Windows 自帶記事本,功能上比記事本更加強大,也支持中文界面。
Notepad3 除了基本文本編輯外,並不會自作多情在文件增加一個 BOM 頭。並支持多種開發語言的語法高亮支持,支持多種外觀主題,支持代碼折疊等功能,查找功能支持正則表達式等。

替換方法
方法一:
notepad3 安裝版,可以安裝時勾選替代系統自帶記事本.
安裝版下載地址

方法二:
可以使用notepad2e提供的方法進行替代.

Replacing Windows (XP/7/10) Notepad

One obvious way is to overwrite all Notepad.exes inside Windows directory. However, this irritates SFC and may not persist across OS updates.

A better way is using Image File Execution Options, originally explained here. In short: #157

  1. Place Notepad2e.exe somewhere. Program Files (x86)\Notepad2e\ directory is a good place.
  2. Import this registry key:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"Debugger"="\"C:\\Program Files (x86)\\Notepad2e\\Notepad2e.exe\" /z"
  • If the EXE was put elsewhere, edit the part inside the second quotes, and don't forget to double all backslashes - example: ...="\"D:\\Foo\\Bar\\MyN2e.exe\" /z"
  • Attention: the EXE should not be named notepad.exe (in any char case).

Now whenever Windows needs to launch Notepad.exe it will launch the EXE you have specified instead.

To undo, replace last line above with "Debugger"=- and import the key.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM