Tuesday, January 20, 2015

Add New File Type in Adobe Dreamweaver

If you use Dreamweaver regularly than  you must change Dreamweaver files for support some extra file type like if you use Magento than use PHTML extension in  Dreamweaver and some like many other file type than not provide by default Dreamweaver so you must change some setting for support new file type in that.
Here describe how to support PHTML file type in Dreamweaver.
No that PHTML is supported Magento file extension that related to PHP so add here in that group.

Below steps for support new (phtml) extension in dreamweaver.

1. Add .phtml extension in your Application Data

Location of file accoring to operating system as below

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

2. Add .phtml to the Extension.txt configuration file

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

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

3. Add PHTML to MMDocumentTypes.xml

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  Dreamweaver and check new file type supported in dreamweaver.
Some extension like PHTML,TPL extension supported in new version CS5 and CS6 but this information useful  for support any extra file type in Dreamweaver.

No comments :

Post a Comment