| View previous topic :: View next topic |
| Author |
Message |
Negima I post too much
Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Thu Sep 13, 2007 11:28 pm Post subject: problem with viewing my html files |
|
|
This is the script im using
| Code: | <html>
<body>
yo
</body>
</html> |
when I put it into a .txt file and rename it .html it just keeps opening with notepad. There something wrong with the script?
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Thu Sep 13, 2007 11:34 pm Post subject: |
|
|
windows associates .html files with notepad
(not by default, that would be IE so I assume you overrode it)
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Thu Sep 13, 2007 11:35 pm Post subject: Re: problem with viewing my html files |
|
|
| Negima wrote: | This is the script im using
| Code: | <html>
<body>
yo
</body>
</html> |
when I put it into a .txt file and rename it .html it just keeps opening with notepad. There something wrong with the script? |
Hahahaha.
Right click -> Open with -> Choose Program... -> Select your browser, and tick "Always use the selected program to open this kind of file." Click OK.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Sep 13, 2007 11:38 pm Post subject: Re: problem with viewing my html files |
|
|
| Negima wrote: | This is the script im using
| Code: | <html>
<body>
yo
</body>
</html> |
when I put it into a .txt file and rename it .html it just keeps opening with notepad. There something wrong with the script? |
In most cases the system is seeing the file as 'file.html.txt'.
To fix that you can turn on showing the file extensions for known file types so you can change them via renaming. To do that follow these steps:
1. Open 'My Computer'
2. At the top menu, goto Tools -> Folder Options
3. At the top of the window that opens, click the view tab.
4. In the box, scroll down till you find 'Hide extensions for known file types'
5. Uncheck the box next to this then click apply or ok and close that box and My Computer. You should see the extensions of the file types now and should be able to easily edit them via renaming.
|
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Fri Sep 14, 2007 10:06 am Post subject: |
|
|
| Quote: | | when I put it into a .txt file and rename it .html |
By the sounds of it. It looks like your saving it as a .txt, and then renaming it to whatever.html, but what it actually is, is a text file still. You have to save it initially as whatever.html.
_________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
|