Getting CakePHP’s THML/CTP files to work with Dreamweaver

I use Dreamweaver CS4 IDE and Dreamweaver by default doesnt recognize thml/ctp file extensions and hightlight the code. Well we can get it working by doing the following.

  1. Open MMDocumentTypes.xml file inside the folder (C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\DocumentTypes\)
  2. Find the following code

    and replace it with

    and save the file.

  3. Next, open Extensions.txt file found inside the folder (C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\)
  4. Change the Line 1 to END like this

    ,THML,CTP:All Documents

  5. Then, find the following line

    PHP,PHP3,PHP4,PHP5,TPL:PHP Files

    and change it to

    PHP,PHP3,PHP4,PHP5,TPL,THML,CTP:PHP Files

  6. Next, open Extensions.txt file found inside the folder (C:\Users\{USER NAME}\AppData\Roaming\Adobe\Dreamweaver CS4\en_US\Configuration\)
  7. and reapeat Step 4 and Step 5.

Voila !! Now enjoy CakePHP + Dreamweaver
P.S. Changing and adding file extensions recognized by Dreamweaver by Adobe