PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.html > How to make my file a .htm?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to make my file a .htm?

Réponse
 
LinkBack Outils de la discussion
Vieux 24/04/2008, 18h18   #1
David B.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to make my file a .htm?

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?
Thanks.
  Réponse avec citation
Vieux 24/04/2008, 18h27   #2
Ed Jay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to make my file a .htm?

David B. scribed:

>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?
>Thanks.


Make sure you have htm files associated with your browser.
--
Ed Jay (remove 'M' to respond by email)
  Réponse avec citation
Vieux 24/04/2008, 18h44   #3
Beauregard T. Shagnasty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to make my file a .htm?

David B. wrote:

> Using Win XP SP2
>
> I wrote up a XHTML file


See: http://tekrider.net/html/doctype.php

> 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?


What was it prior to ".htm" ?

Post a link/URL to the file.

--
-bts
-Motorcycles defy gravity; cars just suck
  Réponse avec citation
Vieux 25/04/2008, 11h32   #4
Andy Dingley
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to make my file a .htm?

On 24 Apr, 18:18, David B. <tall_wal...@yahoo.com> 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.
  Réponse avec citation
Vieux 25/04/2008, 16h43   #5
Jonathan N. Little
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to make my file a .htm?

Andy Dingley wrote:
> On 24 Apr, 18:18, David B. <tall_wal...@yahoo.com> 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


Something I advise all Windows users to do, should be off by default.
Since the file extension is *so* important to MS's OS it should never be
hidden and dupe poor newbies in to such trouble with

"readme.txt .exe"

Can add the real *WOW* to Windows...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  Réponse avec citation
Vieux 25/04/2008, 20h56   #6
Sherman Pendley
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to make my file a .htm?

Andy Dingley <dingbat@codesmiths.com> writes:

> On 24 Apr, 18:18, David B. <tall_wal...@yahoo.com> 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


Clicking a checkbox in a config dialog qualifies as "hacking"? Setting the
bar rather low these days, aren't we? Kids today... :-)

> 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"


A popular phishing attack is based on that too. The phisher emails the
victim a program named "jennanaked.jpg.exe". The victim, unaware of the
".exe" extension that Windows is so fully hiding, clicks on what he
thinks is an image.

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h14.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13520 seconds with 14 queries