Change default file extension from .htm to .html (< Dreamweaver 8)

By: N Rohler

Note - this tutorial is for versions prior to Dreamweaver 8.

Are you tired of Dreamweaver appending .htm to your files, unless you specify .html? Unfortunately, Macromedia didn’t make this a GUI enabled option.

To change this, you will need to edit the document types configuration file. This file, MMDocumentTypes.xml, is located in the following installation directory:

Windows 2000/XP:
C:/Program Files/Macromedia/Dreamweaver MX 2004/Configuration/DocumentTypes/MMDocumentTypes.xml

Go ahead and open this up with Dreamweaver. On the third line, you’ll see something like this:

<documenttype id=”HTML” internaltype=”HTML” winfileextension=”htm,html,shtml,shtm,stm,tpl,lasso,xhtml” macfileextension=”htm,html,shtml,shtm,tpl,lasso,xhtml” file=”Default.html” writebyteordermark=”false”>

Notice the bolded text. To change the default, all we have to do is change the order of these two. Change the bolded text from htm,html to html,htm.

Save the file, restart Dreamweaver, and you should be good to go! When you save files, the default extension will be .html.