Alex Rivera | Logout

What are common file extensions for web programming languages?

Asked 2009-10-23T16:22:46.280
29

What file extensions are used most commonly by different languages? Please don't put source file names (like .java) but rather extensions that would be present in a URL for rendered pages.

Here is my (alphabetized) list so far

  • ASP Classic
  • asp
  • ASP.NET
  • aspx
  • axd
  • asx
  • asmx
  • ashx
  • CSS
  • css
  • Coldfusion
  • cfm
  • Erlang
  • yaws
  • Flash
  • swf
  • HTML
  • html
  • htm
  • xhtml
  • jhtml
  • Java
  • jsp
  • jspx
  • wss
  • do
  • action
  • JavaScript
  • js
  • Perl
  • pl
  • PHP
  • php
  • php4
  • php3
  • phtml
  • Python
  • py
  • Ruby
  • rb
  • rhtml
  • SSI
  • shtml
  • TS
  • XML
  • xml
  • rss
  • svg
  • Other (C, perl etc.)
  • cgi
  • dll

Any more? I'll keep updating this based on comments. Largest correct additions (or deletions) is the accepted answer.

Aside: This is for comparing language use online: http://blog.paulisageek.com/2009/10/file-extensions-on-internet.html

Edit
Report

2 Answers

1

Ruby on Rails also uses the following internally for templates (files that are mostly HTML or JavaScript). So they're not really public facing, and are transparent to the end user/robot.

  • .html.erb
  • .erb
  • .rjs

Used to be that most CGI scripts were written in Perl.

answered 2009-10-23T16:29:14.057
0

Here's a few of the commonly-used (but rarely enforced) extensions for some CSS dialects:

answered 2009-10-23T17:09:00.243

Your Answer