Search code examples
language-agnosticprogramming-languagesfile-extension

What are common file extensions for web programming languages?


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


Solution

  • Add there:

    • ASP.NET
      • .axd
      • .asx
      • .asmx
      • .ashx
      • .aspx