Working with PHTML and Dreamweaver
For those who use or may want to use Dreamweaver for editing or creating PHTML files within Magento, this article is for you. To get Dreamweaver to recognize the .phtml extension and treat these files as if they are a php file you will need locate and edit the following 2 files.
1: Locate Extensions.txt and MMDocumentTypes.xml files. Depending on what operating system you use, I would suggest that you read the original KB at the Adobe Knowledge Base to locate these files.
2: Open Extensions.txt and add PHTML to lines 1 and 16;
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,JSP,WML,TPL,LASSO,JSF,VB,VBS,VTM,VTML,INC,JAVA,
EDML,PHTML,MASTER:All Documents
PHP,PHP3,PHP4,PHP5,TPL,PHTML:PHP Files
3: Now add phtml to MMDocumentTypes.xml on line 75;
<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,php5,phtml” macfileextension=”php,php3,php4,php5,phtml” file=”Default.php” writebyteordermark=”false”>
Now when you open a .phtml file in Dreamweaver it will treat it as a PHP file with the correct code syntax highlighting.





