
Sometimes we need to add new file type in dreamweaver. Like- to work with Magento we need edit many file which extension is PHTML. Normally Dreamweaver can’t support PHTML files. If you use Dreamweaver to edit your PHTML file to develop your website, you can add phtml as a file type in your Dreamweaver. To support PHTML file in your Dreamweaver you can follow some simple steps which will render your .phtml file as php file. Then you can edit your PHTML file easily.
Steps are given below:
Step one: Add .phtml extension to ‘Extension.txt’ in your Application Data
For XP: Documents and Settings -> User – > Application Data -> Adobe -> Dreamweaver[Your Version] – > Configuration -> Extensions.txt
For Windows7: Documents and Settings -> User – > AppData -> Roaming -> Adobe -> Dreamweaver[Your Version] – > Configuration -> Extensions.txt
For Vista: Users -> [user] -> AppData > Roaming -> Adobe -> Dreamweaver[Your Version] -> Configuration -> Extensions.txt
For Mac OS X: Users -> [Home Folder] -> Library -> Application Support -> Adobe -> Dreamweaver[Your Version] -> [en_US or other locale (only for version CS4)] – > Configuration -> Extensions.txt
Then open Extensions.txt add ‘PHTML’ in the first line and in the PHP line. Which should like-
HTM,HTML,SHTM,SHTML,XML,XSL,XSD,…. PHP,PHP3,PHP4,PHP5,PHTML,…. JSP,WML,VTML,INC,JAVA,EDML,WML:All Documents
PHP,PHP3,PHP4,PHP5,TPL,PHTML:PHP Files
Step two: Add .phtml to the Extension.txt configuration file
This step is same as step one but the Extensions.txt file is located in Dreamweaver’s program files folder and inside a configuration folder. To find out that file please go:
For XP & Vista: Program Files – > Adobe -> Dreamweaver[Your Version] -> Configuration > Extensions.txt
For Windows7: Program files -> Adobe ->Dreamweaver[Your Version] -> Configuration -> Extensions.txt
Mac OS X: Applications -> Adobe -> Dreamweaver[Your Version] -> Configuration -> Extensions.txt
Step three: Add PHTML to MMDocumentTypes.xml
Now we need to change a XML file to fix the colour coding settings for the .phtml files so the code will be easier to edit. This XML file should be located in:
For XP & Vista: Program Files -> Adobe ->Dreamweaver[Your Version] -> Configuration -> DocumentTypes -> MMDocumentTypes.xml
For Windows7: Program files -> Adobe ->Dreamweaver[Your Version] -> Configuration -> DocumentTypes -> MMDocumentTypes.xml
Mac OS X: Applications > Adobe Dreamweaver [Your Version] > configuration > DocumentTypes > MMDocumentTypes.XML
Now open the MMDocumentTypes.XML and add ‘phtml’ to the end of the following lines in the xml files. Which should like-
winfileextension=”php,php3,php4,php5,phtml”
macfileextension=”php,php3,php4,php5,phtml”
Now Restart or Open your Dreamweaver and you will be able to see that the PHTML files look like standard HTML file. Now you shouldn’t have any problems with PHTML files.








Thanx for this tutorial, i make my dreamweaver to color phtml files.