zoukankan      html  css  js  c++  java
  • notepad的最佳替代者:notepad2

    notepad2 也是基于 Scintilla 开发的一款用于windows平台的编辑器。(同样基本 Scintilla 开发的还有 SciTE,以后再介绍)。最佳替代者为什么不是notepad++?为什么不是vim?为什么不是emeditor?为什么不是editplus?…不要问为什么了。
    轻便小巧。功能上,这几个可能比notepad2更强大,但是启动速度能和notepad2相比吗?不能的。很多时候,你用不着那么复杂的功能。你需要的仅仅是修改一个文件或查看一个文本文件而已。

    这里再次强调下:

    这里说的只是用来替换windows自带的notepad的一个工具而已,并不是选“最佳编辑器”。很多人误会意思了。。。

    主页: http://www.flos-freeware.ch/notepad2.html

    Description

    Notepad2 is a light-weight, free and open source Notepad-like text
    editor with syntax highlighting for a few commonly used languages.
    It’s based on the Scintilla source code editing component and works
    on NT-based versions of Windows.

    Features

    – Syntax highlighting: HTML, XML, PHP, ASP (JS, VBS), CSS,
    JavaScript, VBScript, C/C++, C#, Resource Script, Makefiles, Java,
    Visual Basic, Pascal, Assembly, SQL, Perl, Python, Configuration
    Files, Apache Config Files, PowerShell, Batch Files, Diff Files
    – Drag & drop text editing inside and outside Notepad2
    – Basic regular expression search and replace
    – Useful word, line and block editing shortcuts
    – Rectangular selection (Alt+Mouse)
    – Brace matching, auto indent, long line marker, zoom functions
    – Support for Unicode, UTF-8, Unix and Mac text files
    – Open shell links
    – Mostly adjustable

    可以下载exe安装包或者zip包,我这里用的是zip包,解压到某个目录,再执行下面的修改注册表的命令即可完成对windows记事本的替换工作(注意:D:\\greensoft\\notepad2\\Notepad2.exe是绝对路径,实际使用时请修改为你自己的路径,这里要用\来转义反斜杠):

    1
    2
    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /"Debugger" /t REG_SZ /"\"D:\\greensoft\\notepad2\\Notepad2.exe\" /z" /f
    操作成功完成。

    这里其实是用到的著名的“映像劫持”,别以为只有病毒才用这玩意儿,这个是个双刃剑,正用还是歪用,全看你自己。正如菜刀,可以用来切菜,亦可用来杀人。但从来没有人因为菜刀可以用来杀人就不用菜刀了,不是吗?
    用“映像劫持”的好处是,你不必要删除原来的Notepad.exe。

  • 相关阅读:
    数据库MySQL调优实战经验总结
    Apache常见功能实战详解
    使用HeartBeat实现高可用HA的配置过程详解
    Nginx实现集群的负载均衡配置过程详解
    CentOS系统通过PXE实现批量无人值守安装
    CentOS 7 网卡命名修改为eth0格式
    Nagios 系统监控基本安装配置过程详解
    LAMP 系统服务搭建过程详解
    使用 python 管理 mysql 开发工具箱
    C++标准库string类型的使用和操作总结
  • 原文地址:https://www.cnblogs.com/youxin/p/2232987.html
Copyright © 2011-2022 走看看