Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File types...

Status
Not open for further replies.

BobbaFet

Programmer
Feb 25, 2001
903
NL
Can someone please list for me all the file type extensions
for webpages that can be read by notepad. I've done some
research and have found the following:

.htm
.html
.js
.css
.asp

Are there any more that can be added to this list?
I need this for a program that I am designing.

Thanks a lot,

[bobafett] BobbaFet [bobafett]

Code:
if not Programming = 'Severe Migraine' then
                       ShowMessage('Eureka!');
faq102-5352
 
Notepad can read anything, no matter what the extension (though it used to choke on very large files, I don't know if it still does). It won't make much sense if it's a binary file, but notepad will still open it.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
... ok rephrasing ...

List all web documents in plain text format.

[bobafett] BobbaFet [bobafett]

Code:
if not Programming = 'Severe Migraine' then
                       ShowMessage('Eureka!');
faq102-5352
 
It still doesn't matter what the extension is. Notepad will open anything you give it. If it happens to be a file in text format, that'll make it a lot easier for you to understand, but notepad doesn't care.

You could write an HTML file, store it on the server as "myfile.exe", configure your server to send it with a "text/html" MIME type and firefox will open it like any other HTML page (IE'll probably get confused by the extension), Notepad will open it without complaint.

Notepad can open anything. If it's in plain text format, that's how Notepad will display it.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
BobbaFet said:
Can someone please list for me all the file type extensions for webpages that can be read by notepad.

Web pages can have any extension you can think of, and Notepad will open them whichever you choose.

If you are instead after a list of popular extensions used for web pages, rather than any that are technically possible (which is everything), then here are a few to help you get started:

HTM, HTML, ASP, ASPX, JSP, PHP, CFM, CGI, FMP (and FM3, FM4, etc).

Note: You have JS and CSS - while these can be used for web page extensions, they are more likely to be found as extensions for related files, rather than the pages themselves.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
And these extensions (which are all text files anyway) appear regularly in my browser location bar -- and can be opened by notepad:
.inc
.htaccess
.txt
.xml
.do
.pl

There is no canonical list of them.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
To add to the uselessness of this thread. You can also come across:

.shtml
.phtml
.php3
.php4
 
or NO extensions (a la W3C's stance)
/foo/bar
/foo/bar/foobar

what's the point? the file extension is irrelevant (ANY extension can be mapped to this behaviour; if you wanted your web pages to end in .exe they could), what matters is the MIME type:
sample text types
text/plain
text/html
text/css
text/javascript
sample image types
image/gif
image/jpeg

etc.

<marc>
New to Tek-Tips? Get better answers - faq581-3339
 
Vragabond said:
To add to the uselessness of this thread.

Useless to you? Probably, highly likely even...
Useless to me? No not at all...

[bobafett] BobbaFet [bobafett]

Code:
if not Programming = 'Severe Migraine' then
                       ShowMessage('Eureka!');
faq102-5352
 
HTTP is text. Even binaries will be encoded as text.
 
I'm guessing Bobba's lucky that he's answered a few questions in his 4 years at TT. Admins usually axe people for posting venomous comments like he had earlier.

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
kaht said:
venomous comments
Heh, and I was just thinking about how mild his comment was compared to what I would have posted had I been in his shoes :)

barcode_1.gif
 
Oh yes - it was pretty hate filled!

Kaht's safe - he has a cute sheep in his sig (a la "rules of hollywood" where the main actor or cute animal sidekick seemingly never die in films)



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top