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.
- Open MMDocumentTypes.xml file inside the folder (C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\DocumentTypes\)
- Find the following code
and replace it with
and save the file.
- Next, open Extensions.txt file found inside the folder (C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\)
- Change the Line 1 to END like this
,THML,CTP:All Documents
- 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
- Next, open Extensions.txt file found inside the folder (C:\Users\{USER NAME}\AppData\Roaming\Adobe\Dreamweaver CS4\en_US\Configuration\)
- and reapeat Step 4 and Step 5.
Voila !! Now enjoy CakePHP + Dreamweaver
P.S. Changing and adding file extensions recognized by Dreamweaver by Adobe