CakePHP default file extension for the views template are in .thtml
As such, Dreamweaver will not be able to show the color code of PHP code embedded inside the views. To allow .thtml to be open as a normal PHP file with the corresponding color code, do the followings:
- Open dreamweaver_installation_folder\\Configuration\\DocumentTypes\\MMDocumentTypes.xml with any text editor and find out the line containing winfileextension=”php,php3,php4,php5″
- Add ‘,thtml’ at the end of this string like this: winfileextension=”php,php3,php4,php5,thtml”
- Navigate to dreamweaver_installation_folder\\Configuration\\ directory
- In Extensions.txt, you need to add ‘,THTML‘ to the first line (just before the colon is a good place), so it ends in: ,THTML :All Documents
- And line 16 you need to add ‘,THTML‘, again before the colon: ,THTML
HP Files - Go to Start -> Run -> Open, type %APPDATA%
- Navigate to Adobe\\Dreamweaver 9\\Configuration folder
- Copy the edited Extensions.txt and replace the one resided in Adobe\\Dreamweaver 9\\Configuration folder
Close your Dreamweaver if it is opened; start it and you will see that .thtml have the same color code as .php
Source: http://anupom.wordpress.com/2007/01/08/configuring-dreamwaver-8-for-editing-thtml/













