Return to site

Notepad2 Vs Notepad

broken image


Notepad has more features, but Notepad2 is cleaner, faster and can work very well with files much larger than memory. (Notepad can't edit a 100GB file) – skan Sep 30 '16 at 12:13. Notepad2 is a light-weight Scintilla-based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for about 80 programming languages/documents, bundled with file browser plugin metapath and dark theme. zufuliu/notepad2.

A modified version (fork) of Notepad2 based on Kai Liu's and other people's patches.

Changes compared to the official Notepad2

  • Code folding
  • Support for bookmarks
  • Option to mark all occurrences of a word
  • Word auto-completion
  • Syntax highlighting support for AutoHotkey, AutoIt3, AviSynth, Bash, CMake, Inno Setup, LaTeX, Lua, Markdown, NSIS, Ruby, Tcl and YAML scripts
  • Improved support for NFO ANSI art
  • Support for replacing Windows Notepad using a clean, unintrusive registry-based method
  • Other various minor changes and tweaks

Supported Operating Systems

XP SP3 (SP2 might or might not work), Vista, 7, 8, 8.1 and 10 both 32-bit and 64-bit.

If you use Windows 2000, the last build working on it is r856.

Screenshots

Notes

  • If you find any bugs or have any suggestions for the implemented lexers (and not only) feel free to provide patches/pull requests. Without patches/pull requests chances are that nothing will be fixed/implemented.
  • I'm not interested in any localization of Notepad2.

Contributors

  • Aleksandar Lekov
  • Bruno Barbieri

Notepad ++ Vs Textpad

More information

Changed keyboard shortcuts compared to Notepad2

Ctrl+Alt+F2 Expand selection to next match.
Ctrl+Alt+Shift+F2 Expand selection to previous match.
Ctrl+Shift+Enter New line with toggled auto indent option.

Note: This document explains the technical details how to replace Windows Notepad with Notepad2. As of Notepad2 version 4.2.25, the Notepad2 Setup Tool takes care of this task, and it's no longer necessary to manually perform the steps outlined below.

Some usage notes to the setup tool can be found in the Notepad2 FAQ: How to use the Notepad2 Setup Tool to install and update Notepad2?

Microsoft Notepad Free

Kai Liu has introduced support for replacing Windows Notepad using a clean, unintrusive registry-based method with his modified version of Notepad2.

Replacing Windows Notepad with Notepad2

Replacing Windows Notepad with Notepad2 can be a little tricky since notepad.exe is a protected system file, which makes a direct replacement a bit difficult (though not impossible).

There is an easier way to replace Windows Notepad by using the 'Image File Execution Options' registry key to trick Windows into running notepad2.exe whenever notepad.exe is run. This same trick is used by the 'Replace Task Manager' function in Microsoft's Process Explorer. The benefit to using this method to replace Notepad is that you will not run afoul of Windows File Protection (since you are not actually replacing the executable itself), and you can undo it at any time by simply deleting the registry key. The downside to this method is that it does not work properly with the official Notepad2 build; there are a few minor changes that need to be made to Notepad2 in order for this to work (see my img_exec_replace patch).

In order to use this method of Notepad replacement, you will need to follow these steps:

Notepad2 vs notepad++
  1. Obtain a build of Notepad2 that supports this form of Notepad replacement.
  2. Create the following registry key: HKLMSOFTWAREMicrosoftWindows NTCurrentVersionImage File Execution Optionsnotepad.exe.
  3. Inside the key, create a new string (REG_SZ) value, named 'Debugger'.
  4. Set the data of this new 'Debugger' value to the full path to the Notepad2 executable, followed by the /z switch. For example, 'C:WindowsNotepad2.exe' /z

Simon Steele describes the same procedure for his text editor Programmer's Notepad, and also explains which registry key to use on 64-bit Windows, in case you're using a 32-bit version of Notepad2 on 64-bit Windows.

HKLMSOFTWAREWow6432NodeMicrosoftWindows NTCurrentVersionImage File Execution Options

Replacing Windows Notepad with Notepad2 4.1.24 (or newer)

As of version 4.1.24, the official release of Notepad2 supports this method for replacing Windows Notepad, so the steps outlined above will work fine. However, there's no support to perform the Notepad replacement automatically, as the official release of Notepad2 will not modify the system registry. For the same reason, there's no support for accessing recent files through the Windows 7 jump lists, by default (this requires registration of applications in the system registry, first).

Also be aware that automated Notepad replacement could have undesirable effects if Notepad2 was used as a Notepad replacement from a portable device, and the original state was not restored when disconnecting the device.

A batch script to run from the Notepad2 directory and replace Windows Notepad might look like this (requires elevated privileges):

The Windows Notepad can be restored with this command (requires elevated privileges):

Enable Jump List Support

Free Notepad Download

A few more tweaks are needed to enable recent file access through the jump lists introduced with Windows 7. First, register Notepad2 as an 'Open with' handler using the following batch script (run from the Notepad2.exe directory with elevated privileges):

Next, apply the following changes to the Notepad2.ini file:

Recent files now appear in the jump lists. Notepad2 windows are now assigned to a custom AppUserModelID, that's why multiple icons may appear if Notepad2.exe is directly pinned to the taskbar. To fix this, open a Notepad2 window first, and then pin it to the taskbar from the Notepad2 taskbar button context menu.

Free Notepad

Unregister the Notepad2 'Open with' handler with the following script (requires elevated privileges):

© Florian Balmer 1996-2014
Page last modified: July 01, 2011




broken image