Dreamweaver mx2004 code color CakePHP template files – .thtml .ctp

You want to get dreamweaver to treat .thtml and .ctp files like php files. There are 2 config files that you’ll need to edit

View hidden file types

C:\Documents and Settings\[user]\Application Data\Macromedia\Dreamweaver MX 2004\Configuration\Extensions.txt


C:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\DocumentTypes\MMDocumentTypes.xml

<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,thtml,ctp” macfileextension=”php,php3,php4,thtml,ctp” file=”Default.php” writebyteordermark=”false”>

2 thoughts on “Dreamweaver mx2004 code color CakePHP template files – .thtml .ctp

  1. Shamus

    I found this page searching for a way to make .ctp file contents be included in Dreamweaver’s search results. Putting the answer here to benefit any others who land up here for the same reason; it was make-or-break for me considering the CakePHP framework, since I’d rather pick another framework than drop Dreamweaver.

    Edit the appropriate line in C:\Documents and Settings\(USERHERE)\Application Data\Adobe\Dreamweaver 9\Configuration\Extensions.txt so that it looks like this:


    Exit and relaunch Adobe Dreamweaver CS3 and, hey, presto! Your search results will now include .ctp file contents.

Leave a Reply