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
PHP,PHP3,PHP4,TPL,THTML,CTP:PHP Files
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”>
July 21st, 2008 at 1:10 pm
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:
PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files
Exit and relaunch Adobe Dreamweaver CS3 and, hey, presto! Your search results will now include .ctp file contents.
August 13th, 2008 at 1:15 pm
This works great for Dreamweaver CS3 too.
You’ll need to restart Dreamweaver for the change to take effect.