• Home
  • Magento
  • Contact
KEEP IN TOUCH

Add new file type (.phtml) in Dreamweaver for XP, Win7, Vista & Mac

Facebook Twitter Google + Share Reddit Digg Stumble Delicious More

 phtml

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.

Related Topics

  • How to remove auto added break (<br />) tag from product description of magento
  • How to upload Magento in server by using SSH command
  • How to Remove Callout section from left / right side of Magento
  • How to add a Custom field in Contact Us form of Magento
  • Including javaScript file or jQuery library in Magento
Posted in Magento, Tips and Tricks
8 CommentsWritten by Admin

8 Comments

  1. Gurinder
    July 18, 2012 at 12:00 PM | Permalink

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

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


− 8 = zero

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" extra="">

E-mail Subscription

Enter your email address:

Recent Posts

BPL Fixture 2013 | Download Bangladesh Premier League Time-Table

BPL Fixture 2013 | Download Bangladesh Premier League Time-Table

Bangladesh Premier League BPL 2013 All Teams and Players List

Bangladesh Premier League BPL 2013 All Teams and Players List

National University Result | Get Bangladesh NU Result

National University Result | Get Bangladesh NU Result

JSC (Junior School Certificate) And JDC Exam Result Bangladesh

JSC (Junior School Certificate) And JDC Exam Result Bangladesh

Primary Somapony Result | PSC (Primary School Certificate) BD

Primary Somapony Result | PSC (Primary School Certificate) BD

Download pdf 33rd BCS written exam routine and Seat Plan 2012

Download pdf 33rd BCS written exam routine and Seat Plan 2012

Degree 1st Year Final Routine of National University (NU) BD

Degree 1st Year Final Routine of National University (NU) BD

JSC (Junior School Certificate) Exam Routine 2012 Download PDF

JSC (Junior School Certificate) Exam Routine 2012 Download PDF

National University (NU) Honours Final (4th) Year Routine Download

National University (NU) Honours Final (4th) Year Routine Download

NU (National University) Honours 1st Year Routine PDF Download

NU (National University) Honours 1st Year Routine PDF Download

How to get oDesk money directly on Bank account from Bangladesh

How to get oDesk money directly on Bank account from Bangladesh

Dhaka University (DU) Admission Test Routine for 2012-2013

Dhaka University (DU) Admission Test Routine for 2012-2013

Recent Comments

  • chayan on National University Result | Get Bangladesh NU Result
  • Stan on Creating and Showing a static block in Magento Frontend
  • Stan on Creating and Showing a static block in Magento Frontend
  • Dani on How to get custom attributes value in Magento Frontend
  • Kiran on How to show products on Magento Homepage from specific Category
  • Bryan on How to Remove Callout section from left / right side of Magento
  • Sawon on Installing Magento on Localhost using WAMP Server
  • Keyur Shah on Installing Magento on Localhost using WAMP Server

Categories

  • Bangladesh Xpress
  • Magento
  • Sports
  • Tips and Tricks

EvoLve theme by Theme4Press  •  Powered by WordPress XpressBangla

Copyright © 2012 XpressBangla. All rights reserved.
You might also likeclose
  • Friday, 03/08/2012 1:01 AM
    How to get oDesk money directly on Bank account from Bangladesh
  • Tuesday, 27/12/2011 12:50 AM
    How to get Previous & Next Product Buttons on Product view Page in Magento