midwest web design

HTML Extension

When working with Dreamweaver MX or Dreamweaver MX 2004 the file extension of an HTML document by default is .htm. It’s rather annoying to me, because I started out giving my HTML documents an .html extension. It doesn’t matter which extension you use today. If you want to learn how to change the setting in Dreamweaver MX or MX 2004, please follow along, it’s not difficult.

Note that Dreamweaver 8 creates files with an .html extension by default.

Dreamweaver MX or MX 2004

Follow these steps to show the preferences window:

New Document - Preferences

In order to change the default extension, we’ll need to navigate to the program path where Dreamweaver is installed. Note that clicking the blue hyperlink will only show Dreamweaver help, which isn’t much help in this case.

Changing the default extension

We’ll change the default extension by navigation to a specific path on our hard drive. Follow these steps:

C:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\DocumentTypes

We’ll modify MMDocumentTypes.xml.

Modifying MMDocumentTypes.xml

Instead of double clicking the file, right-click it, and select Edit>Open with Notepad

In the file, look for winfileextension:

<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">

Do note this tag will be on one line. Change the order of file extensions so that HTML comes first:

winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml"

Save the file. From this point forward, all HTML files will have an .html extension.

Note that if Dreamweaver is currently open, you need to close and restart Dreamweaver for changes to be reflected. Also note if you want Macintosh computers to do the same, change the macfileextension so that HTML comes first.

The modification of MMDocumentTypes.xml has no performance affect on Dreamweaver.

If you have questions, contact me.

top of page

Thank you for visiting Fabrizio.com - Come back again soon.