Thursday, January 27, 2005

Edit This...

Is their a way to automatically convert .htm to .htm using Dreamweaver MX 2004?

The short answer is no. The longer answer is that it is possible to reconfigure Dreamweaver MX to automatically use .html instead of .htm, although before going through all of the work to do it, I'd wonder a little bit why you want to. It doesn't matter which extension you use - they both work just fine. I would say that the key is keeping the extension to all of your files consistant. The server and the web browser will render both .htm and .html files in the same manner.

There are programs out there that will do batch file renaming, and if you really want to know how to get Dreamweaver MX to start using .html, you can obtain the software.

OR

You can to edit one of Dreamweaver's configuration files. To do this, you need to find the MMDocumentTypes.xml file. In a default installation of Dreamweaver MX, it should be at:

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

(If you have MX instead of MX 2004, the path will be the same, minus the 2004.)

Open this file in any text editor. I've heard that you shouldn't edit the file in Dreamweaver MX itself, but I've never had a problem doing that.

You're looking for a line that looks 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"

It should be about line 3. All you need to do is reverse the order of htm and html in the winfileextension attribute, so that it reads:

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

Save this file. If you had Dreamweaver MX open while you did this, close and restart Dreamweaver MX, relaunch the program and you should be all set.

0 Comments:

Post a Comment

<< Home