If you’re using the Zend Framework and Dreamweaver, you’ve probably noticed you can’t open PHTML files in Dreamweaver. Here’s how to add it. You’ll need to modify three separate files:
- Open Documents and Settings > [user] > Application Data > Adobe Dreamweaver > Configuration > extensions.txt. Keep in mind this is for Windows XP and the file may be located elsewhere for other OS’s. Add PHTML to the first line of this file as shown circled below:

and add it again to the PHP line as shown circled below:
- We’re going to do this again but in another location. Open Program Files > Adobe > Dreamweaver [Your Version] > configuration > Extensions.txt and repeat step 1 above.
- Open Program Files > Adobe > Dreamweaver [Your Version] > configuration > DocumentTypes > MMDocumentTypes.xml. In the middle of the file there will be a section for PHP_MySQL. You will add PHTML to it twice as shown circled below:

Restart Dreamweaver and you should now be able to open PHTML files with normal PHP syntax highlighting.
Hey
Cheers for this – exactly what I was looking for
One thing – when I open a PHTML file, it seems to be using a different font size to a PHP file. All the colour coding is correct, but it’s annoying that the PHTML text is smaller.
Any idea where that config option is?
Cheers
Kieran
Oh my.
How thick do I feel. 2 seconds after posting, I find the answer! The fonts settings in the preferences dialog appear to be somehow sensitive to the context of the file type you have open! (At least the font size of the Code View font is….!)
Move along – nothing to see here!!
Thanks again for the tip
K
Good find on the font size! At least it saved me from searching around for it… Even if it was only for 2 seconds,
-Rob
Hi…..
thanks a ton!!!!!!!!!!!!!!!!!!!!!!!
thanks I used this for several file extensions, it works great
Thanks! you really helped me out with this!!
Is way better editing with the syntax highlight!
Hey Rob!
Thank you for sharing this. The Internet is a little better, with people like yourself in it.
)
Hey… Thank you, Now it’s very much help to development with Zend.
Thank you so much! Work is so much easier now
Greetings from Spain
Hello sir,
I am using window 7, how can i configure it. Please reply me ASAP.
With Regards
Kamlesh, sorry but I don’t have Windows 7. If someone wants to post the instructions for that OS, I’ll gladly update this article to reflect it.