Notepad3
一个快速、轻量、基于Scintilla的Windows文本编辑器
Notepad3 是一款免费的开源文本编辑器,支持Windows平台的语法高亮。它基于Scintilla编辑组件和Lexilla词法库构建,占用内存小,同时功能足够强大,适合专业编程和日常文本编辑。
Notepad3基于Florian Balmer的Notepad2和XhmikosR的Notepad2-mod的代码。MiniPath基于Florian Balmer的metapath。

特性
- 支持全部切换的代码折叠
- 文件内快速导航书签
- 带可配置填充字符的单词自动补全
- 标记所选词的出现位置,并显示次数
- 使用PCRE2正则表达式引擎查找和替换
- 聚焦视图 - 只显示与当前单词/选中内容匹配的行(Ctrl+Alt+V),支持折叠、书签和高亮模式
- TinyExpr++ - 内联数学表达式求值,支持80多个函数
- 撤销/重做,同时保留选中状态
- Visual Studio风格的复制/粘贴当前行
- 虚拟空间矩形选择(Alt+拖动)
- 可配置分隔符的加速单词导航
- 直接把GUID插入到文档里
- 剪贴板监控模式(/b 命令行开关)——会自动将每次剪贴板的更改作为新条目添加到文档末尾;可以随时通过 编辑 → 停止剪贴板监控 来停止,而无需关闭编辑器。
- AES-256 Rijndael 加密/解密(应用内和命令行批处理工具)
- 语法高亮 支持超过55种语言,包括:
ANSI Art, Apache Config, Assembly, AutoHotkey, AutoIt3, AviSynth, Awk, Batch, C/C++, C#, CMake, CoffeeScript, CSS, CSV, D, Dart, Diff, F77/Fortran, Go, HTML/XML, Java, JavaScript, JSON, Julia, Kotlin, KiXtart, LaTeX, Lua, Makefiles, Markdown, MATLAB, Nim, NSIS, Pascal, Perl, PHP, PowerShell, Python, R/S-Plus, Registry, Resource Script, Ruby, Rust, Shell Script, SQL, SystemVerilog, Tcl, TOML, VBScript, VHDL, Verilog, Visual Basic, YAML, and more.
下载Notepad3
- Notepad3_7.26.602.1_x86_Setup.exe.zip (访问密码: 3705)
- Notepad3_7.26.602.1_x86_Portable.zip (访问密码: 3705)
- Notepad3_7.26.602.1_x64_Setup.exe.zip (访问密码: 3705)
- Notepad3_7.26.602.1_x64_Portable.zip (访问密码: 3705)
说明: 32位系统选x86,64位系统选x64,Setup为安装版,Portable为绿色版。
命令行选项
Notepad3 支持从 Notepad2 / Notepad2-mod 继承的一系列丰富命令行选项,同时还有一些 Notepad3 特有的扩展。所有选项都不区分大小写,可以用/或-作为前缀。
1Notepad3.exe /utf8sig /crlf d:\temp\Test.txt :: 以 UTF-8 BOM + CRLF 打开
2Notepad3.exe /g 250,5 src\Notepad3.c :: 跳到第250行,第5列
3Notepad3.exe /m TODO main.c :: 打开并找到第一个“TODO”
4Notepad3.exe /b /i :: 剪贴板模式,托盘启动
5 :: (hold Ctrl during the brief
6 :: pre-minimize window to keep
7 :: the editor visible)
8Notepad3.exe /v report.log :: 静默打印并退出
9Notepad3.exe /? :: Built-in help dialog
Coverage at a glance:
- File arguments & multi-file — positional paths,
+,-,/y,/z - Encoding —
/ansi,/unicode,/unicodebe,/utf8,/utf8sig,/e <name> - Line endings —
/crlf,/cr,/lf - Navigation & search —
/g,/mwith regex / case / backslash modifiers - File watching —
/l,/l0,/l1 - New documents —
/q,/qs,/c - Pasteboard / clipboard collector —
/b(with deferred-minimize and Ctrl-skip when combined with/i) - Lexers —
/s,/d,/h,/x - Window placement & behaviour —
/p(with presets),/t,/i,/o - Window reuse / single-instance —
/n,/ns,/r,/rs,/rp - Printing —
/v,/vd - INI & elevation —
/f,/f0,/u - Shell integration —
appid=,sysmru=
Credits
Notepad3 建立在以下工作的基础上:
| 项目 | 作者 | 角色 |
|---|---|---|
| Notepad2 | Florian Balmer | 原始编辑器 |
| Notepad2-mod | XhmikosR | 扩展fork |
| Scintilla 5.5.8 | Neil Hodgson | 编辑组件 |
| Lexilla 5.4.6 | Neil Hodgson | 语法高亮 |
| PCRE2 10.47 | PCRE2 Project | 正则表达式引擎 |
| TinyExpr++ | Blake Madden | 表达式求值器 |
| uchardet | Mozilla / freedesktop | 编码检测 |
| Fugue Icons | Yusuke Kamiyamane | 工具栏图标 |
License
Notepad3 is licensed under the BSD 3-Clause License.