It is currently Tue May 21, 2013 2:00 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Notepad replacement
PostPosted: Sun Jul 01, 2012 10:13 am 
Online
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 912
Location: Terra @ Sol System
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/notepad2-Replacement.html). I reckon it should be documented here at TPFC too, so here:

Create a 'notepad-replace.reg' with the following content:
Code:
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:


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Sun Jul 01, 2012 10:44 am 
Offline

Joined: Sat Mar 26, 2011 2:31 am
Posts: 646
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.


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Sun Jul 01, 2012 12:41 pm 
Offline
User avatar

Joined: Sat Mar 31, 2007 2:38 am
Posts: 902
Location: Kce,PL
I used to use Notepad 2, but recently I switched to GEdit. It's fast and light yet fairly powerful, more than N2.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Sun Jul 01, 2012 2:39 pm 
Offline

Joined: Sat Mar 26, 2011 2:31 am
Posts: 646
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?


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Sun Jul 01, 2012 4:32 pm 
Offline
User avatar

Joined: Thu Aug 07, 2008 4:51 am
Posts: 2586
This metapad's faq detailes a few options:

http://liquidninja.com/metapad/faq.html#Q3

_________________
bəʊɡɪ bəəs


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Sun Jul 01, 2012 6:01 pm 
Online
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 912
Location: Terra @ Sol System
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...


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Mon Jul 02, 2012 8:33 am 
Offline
User avatar

Joined: Sat Mar 31, 2007 2:38 am
Posts: 902
Location: Kce,PL
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. ;)

_________________
Image


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Tue Jul 03, 2012 2:04 am 
Online
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 912
Location: Terra @ Sol System
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? :(


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Tue Jul 03, 2012 7:59 pm 
Offline
User avatar

Joined: Mon Aug 27, 2007 2:00 am
Posts: 3726
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 >> viewtopic.php?p=47352#p47352

_________________
Added 177 Applications: Portable and an AutoIt MVP
SoftwareSpot - Portable Apps


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Wed Jul 04, 2012 1:20 am 
Online
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 912
Location: Terra @ Sol System
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:
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Akelsoft\AkelPad\Recent]

Thanks for the pointer, guinness.


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Thu Jul 05, 2012 8:29 pm 
Offline

Joined: Sat Mar 26, 2011 2:31 am
Posts: 646
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:
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Akelsoft\AkelPad\Recent]

Thanks for the pointer, guinness.


From the AkelPad database entry:
Quote:
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.


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Fri Jul 06, 2012 3:25 pm 
Online
User avatar

Joined: Mon Dec 07, 2009 7:09 am
Posts: 912
Location: Terra @ Sol System
Duh... :oops: I only needed to do 4.


Top
 Profile  
 
 Post subject: Re: Notepad replacement
PostPosted: Sun Jul 22, 2012 10:40 am 
Offline

Joined: Tue Nov 28, 2006 2:27 pm
Posts: 21
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group