Wednesday, February 20, 2008

Opening a Files for Editing

I would call this a Web Authoring Tip, but it has many other uses...

Adding an 'Edit' option to HTML Documents Options Menu.

When I double click my *.htm files it always fires up my browser.
Well sometimes I want to edit that document instead. I can put Notepad in the Send To Folder to ease this problem. Here is another way to deal with this that is a bit slicker:

  1. From Windows Explorer, select View then Options
  2. Click the File Types Tab.
  3. Select the type you want to add edit for (in my example this would be 'Netscape Hypertext Document' or *.HTM
  4. Click the Edit Button.
  5. From the Edit File Type panel click the New button.
  6. Action is: &Edit, Application used to.... is: c:\windows\notepad.exe %1
  7. Click OK, then Close, then Close.

Now when you secondary (right) click an HTML Document select Edit
from the menu (or press E) and you are now looking at the source in Notepad.

You can use a similar process for Graphic files (JPG, GIF, etc) to send them to your favorite Graphics program.

No comments: