Notepad replacement

Ask other users about problems encountered with portable apps or help by posting solutions to existing problems.
Post Reply
Message
Author
User avatar
Midas
Posts: 5415
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Notepad replacement

#1 Post by Midas » Sun Jul 01, 2012 10:13 am

We all have different ways of dealing with the issue of substituting the creaking old but always faithful Windows Notepad; most of them involve renaming or wiping its executable out, which is tricky since it's a protected system file and it sometimes even comes back from the dead without us noticing. There's an easy solution I was unaware of up until today, although it has been making rounds all over the Net -- it's most notoriously found at Notepad2's home-site (see http://www.flos-freeware.ch/doc/notepad ... ement.html). I reckon it should be documented here at TPFC too, so here:

Create a 'notepad-replace.reg' with the following content:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"Debugger"="\"C:\\PATH\\TO\\YOUR\\TEXTEDITOR.exe\" /z"
Dont' forget to replace that bogus file path with an existing one or the bees might go away for good... :mrgreen:

lautrepay
Posts: 711
Joined: Sat Mar 26, 2011 2:31 am

Re: Notepad replacement

#2 Post by lautrepay » Sun Jul 01, 2012 10:44 am

If you prefer to make the change without "making your hands dirty", Notepad Replacer is a good option.
IIRC, needs .NET, but I'm not sure.

User avatar
m^(2)
Posts: 890
Joined: Sat Mar 31, 2007 2:38 am
Location: Kce,PL
Contact:

Re: Notepad replacement

#3 Post by m^(2) » Sun Jul 01, 2012 12:41 pm

I used to use Notepad 2, but recently I switched to GEdit. It's fast and light yet fairly powerful, more than N2.

lautrepay
Posts: 711
Joined: Sat Mar 26, 2011 2:31 am

Re: Notepad replacement

#4 Post by lautrepay » Sun Jul 01, 2012 2:39 pm

m^(2) wrote:I used to use Notepad 2, but recently I switched to GEdit. It's fast and light yet fairly powerful, more than N2.
(Off topic) Weren't you a Programmer's Notepad user?

User avatar
I am Baas
Posts: 4146
Joined: Thu Aug 07, 2008 4:51 am

Re: Notepad replacement

#5 Post by I am Baas » Sun Jul 01, 2012 4:32 pm

This metapad's faq detailes a few options:

http://liquidninja.com/metapad/faq.html#Q3
Bəəs 2.0

User avatar
Midas
Posts: 5415
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Notepad replacement

#6 Post by Midas » Sun Jul 01, 2012 6:01 pm

I was a faithful Win32pad user, but recently had to switch to AkelPad due to my move to Windows XP Pro x64 -- not as many native 64 bit text editors yet -- hence the discovery...

User avatar
m^(2)
Posts: 890
Joined: Sat Mar 31, 2007 2:38 am
Location: Kce,PL
Contact:

Re: Notepad replacement

#7 Post by m^(2) » Mon Jul 02, 2012 8:33 am

lautrepay wrote:
m^(2) wrote:I used to use Notepad 2, but recently I switched to GEdit. It's fast and light yet fairly powerful, more than N2.
(Off topic) Weren't you a Programmer's Notepad user?
I still am. I use GEdit, PN and PSPad for different purposes. GEdit is the generic notepad. PN - for coding when I don't want IDE (this applies to all that I do at home recently). PSPad - when I need its features. HTML, XML, some specific functions like text sorting. I also have TextPad connected to some older scripts, so it launches sometimes, but this is just legacy stuff. ;)

User avatar
Midas
Posts: 5415
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Notepad replacement

#8 Post by Midas » Tue Jul 03, 2012 2:04 am

May I note that an IDE is not exactly a "notepad replacement"? OTOH, I keep lots of text editors around, just in case -- the last I checked, there was over half a Gig of them... :mrgreen:

EDIT: After finding AkelPad settings stowing away in the registry, it seems that this notepad replacement procedure has the evident downside (at least in AkelPad's case) of preventing the app from being fully portable. Funnily, those settings are virtually indistinguishable from the ones set in akelpad.ini -- it might be the case that it starts AkelPad with the ini settings and they get written to the registry afterwards; is anyone able to detail what gets read or written? :(

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: Notepad replacement

#9 Post by guinness » Tue Jul 03, 2012 7:59 pm

The registry key 'Image File Execution Options' can also be used for other system applications too e.g. Task Manager. Just replace the notepad.exe part with tskmgr.exe and then the alternative path.

I wrote about this before >> http://www.portablefreeware.com/forums/ ... 352#p47352
Added 179 Applications: Portable

User avatar
Midas
Posts: 5415
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Notepad replacement

#10 Post by Midas » Wed Jul 04, 2012 1:20 am

Further testing seems to show that only the recent opened files list get rewritten... I can live with that for the time being -- I didn't find a way to completely set it off from AkelPad, but it's easy to cleanup with a regfile:

Code: Select all

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Akelsoft\AkelPad\Recent]
Thanks for the pointer, guinness.

lautrepay
Posts: 711
Joined: Sat Mar 26, 2011 2:31 am

Re: Notepad replacement

#11 Post by lautrepay » Thu Jul 05, 2012 8:29 pm

Midas wrote:Further testing seems to show that only the recent opened files list get rewritten... I can live with that for the time being -- I didn't find a way to completely set it off from AkelPad, but it's easy to cleanup with a regfile:

Code: Select all

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Akelsoft\AkelPad\Recent]
Thanks for the pointer, guinness.
From the AkelPad database entry:
How to extract:

1.
2.
3. Open the "Settings" dialog from the "Options" menu
4. Under "Registry" set "Save settings" to "INI File" and set "Recent files" and "Search history" to "0"

Stealth [?]: Yes. If you set Recent Files and Search History to 0 as these are stored in the registry.

User avatar
Midas
Posts: 5415
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Notepad replacement

#12 Post by Midas » Fri Jul 06, 2012 3:25 pm

Duh... :oops: I only needed to do 4.

ReadOnly
Posts: 21
Joined: Tue Nov 28, 2006 2:27 pm

Re: Notepad replacement

#13 Post by ReadOnly » Sun Jul 22, 2012 10:40 am

AkelPad 4.7.7

Changed: plugin architecture. Update plugins.
Changed: command 4196 - inserts new line without keeping left spaces, if option "Keep space" is on.

Added: checking hotkey existence in the Hotkeys plugin.
Added: command 4199 - move caret on the contrary side of selection (Alt+\).

Fixed: in overtype mode space and tabulation inserted without replacement.
Fixed: size of the first non-maximized MDI frame when status bar is on.
Fixed: size of the first maximized MDI frame when status bar and tab panel are off.
Fixed: drawing tab bar, located at the bottom, when the status bar is turned on (PMDI).
Fixed: current directory in the file open/save dialog.
Fixed: search backward with regular expressions.
Fixed: search forward with regular expressions and whole word option.
Fixed: restore maximized state on startup after closing main window in minimized state.
Fixed: notepad replacement mode in installer (WinVista/7)

Post Reply