Adding file extensions to Dreamweaver

If you have found this post and reading, definitely you're in a situation where you need that one bizarre type of files to be handled by DreamWeaver. There are tons of template engines in the market and each one ideally have their own extension for templates, tpl, stpl, shtml and the list goes on.

Open the file /Configurations/Extensions.txt under from your DreamWeaver installation directory.
Add the extension which you need to the appropriate group there. A snapshot might look like the following:

HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,AS, ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF,LBI,DWT,ASP, ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD, TXT,PHP,PHP3,PHP4,PHP5,TPL,LASSO,JSP,JSF,VB,VBS, VTM,VTML,INC,JAVA,EDML,WML,THTML,STPL:All Documents
HTM,HTML,HTA,HTC,XHTML:HTML,STPL Documents
SHTM,SHTML,STM,SSI,INC:Server-Side Includes
JS:JavaScript Documents
XML,DTD,XSD,XSL,XSLT,RSS,RDF:XML Files
LBI:Library Files


Once done with this file, locate the next extensions.txt which should be available more or less in the following path:

C:\Documents and Settings\<Your user account name to this machine>\Application Data\Macromedia\<Dreamweaver version specific directory>\Configuration


Edit this file exactly the way you did the previous one.

Next you have to edit the file /Configuration/DocumentTypes/MMDocumentTypes.xml, the third line from the top (for that matter it could be anywhere, just search in that document) should read:

documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3,php4,php5,ctp" macfileextension="php,php3,php4,php5,ctp" file="Default.php" writebyteordermark="false"

Add the extension here also, in "winfileextension". Save the file, close and reopen DreamWeaver. Your bizarre new template files are now recognized by DreamWeaver and you can have your favorite WYSIWYG feel back with them. Enjoy!

Cheers!

Comments

Popular posts from this blog

uTorrent: Data error (cyclic redundancy check)

Khude Jajabor Istasi

Photo upload to Facebook from your PHP web application