Re: How to make my file a .htm?



On 24 Apr, 18:18, David B. <tall_wal...@xxxxxxxxx> wrote:
Using Win XP SP2

I wrote up a XHTML file using notepad. Now I want my browser to open
it as a web page but it only sees it as a .txt file. I tried changing
the extension to .htm but its still a .txt file. What do I do?

Hack around in Windows Explorer (NOT Internet Explorer) and switch off
the desktop option uder Tools | Folder options | View | Advanced |
Hide extensions for known file types

If you have this option on (by default), Windows assumes that you're
too stupid to understand a file extension, so it hides them from you.
If you enter one (such as .htm) when editing something that Widnows
thinks is already a ".txt" file, then it thinks you're using some sort
of internal part of the basename and not an extension ('cos you're too
stupid to understand those). Windows then makes you a text file with a
htm in it, as the name "example.htm.txt"

Alternatively, when saving files from Windows-OCD tools like NotePad
use the "All file types" option and type the whole name in there,
including the extension.

Best of all, use a real editor. Editors from people who actually use
editors don't do this stuff.
.



Relevant Pages

  • Re: email attachments
    ... The extension is how the software can ... association thing in windows associates programs with extensions. ... the safest bet is to uncheck the box, and keep launching programs until one ... I use notepad all the time because it is so fast and it creates extremely ...
    (microsoft.public.outlook)
  • Re: Wierd File Name showing up all over in my pc
    ... visual studio installed, but I don't see any reason it would have put this ... have any extension and I have no idea on how I could have possibly put this ... Can you open them with Notepad? ... Windows XP Home to Windows XP MCE. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Notepad not on "open with" list
    ... 2004 Windows MVP "Winny" Award ... Troubleshooting Windows XP ... > files with no extensions in notepad will be helpful. ... That's the way I had been opening the no extension files ...
    (microsoft.public.windowsxp.general)
  • Re: File rename
    ... If i click yes to change the name, the file is not lost but when ... Windows keeps track of which program is used to open each file extension ... and will subsequently open that file in Notepad. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: write into a file
    ... it's Notepad that doesn't work. ... > character. ... Most Windows based editors are not ...
    (comp.lang.java.help)