PDA

View Full Version : Notepad



weirdbeardmt
01-07-2002, 12:37 PM
Is it possible to change the default extension that Notepad looks for? i.e. I would like to change it from .txt to All Files. Thanks.

<a target="_blank" href=http://www.sitepointforums.com/index.php?referrerid=11001>SPF Mentor</a> -- Webmaster Forums

scrollLok123
01-07-2002, 02:24 PM
Notepad is built for text only editing so this is the default for this setting...you CAN change this but it requries to sift through the whole program using a hex editor or other program of your choice. Some of the more expensive ones allow you to view and edit the text directly. If you are not this fortunate to have one of these programs you will have to look at a lot of hex dumps. There is several other text only readers/editors that can be programed to look for other extentions that are avaiable at www.programfiles.com (which has a ton of other cool stuff as well)

Good Luck

SCROLL LOK

rjkrash
01-07-2002, 04:41 PM
To have an option to "open with notepad" on all file types' right click context menu, copy the <font color=blue>blue</font color=blue> lines below into a file named openwithnotepad.reg (a text file). After you have created and saved the file, <font color=green>right click</font color=green> on the file and click merge.

<font color=blue>
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell]

[HKEY_CLASSES_ROOT\*\Shell\Open with Notepad]

[HKEY_CLASSES_ROOT\*\Shell\Open with Notepad\command]
@="Notepad.exe %1"
</font color=blue>

The two rules for success:
1. Never tell them everything you know.

weirdbeardmt
01-07-2002, 04:47 PM
Thanks, but I don't think that is necessarily what I need (it might be, who knows!).

Basically if in Notepad I hit Open, I want it to show All Files in the files of type by default, rather than .txt files. Is this what your reg hack would do?

<a target="_blank" href=http://www.sitepointforums.com/index.php?referrerid=11001>SPF Mentor</a> -- Webmaster Forums

rjkrash
01-07-2002, 05:10 PM
No it won't do that. It just makes it easier to open a file from 'outside' of notepad e.g., when looking at a file from explorer. No reg hack would change the default open file type within a program, that is a function of the program itself not a system(reg) function.

You do know that the drop down list in Open lists all file types as an option, right?

The two rules for success:
1. Never tell them everything you know.

weirdbeardmt
01-07-2002, 05:15 PM
lol. Yeh (hence why I started this topic!).

<a target="_blank" href=http://www.sitepointforums.com/index.php?referrerid=11001>SPF Mentor</a> -- Webmaster Forums