Configure dreamweaver for .thtml and .ctp files
I prefer to use Dreamweaver to create code all of my websites, mainly because of the code highlighting and the way I organize my sites in separate folders. I realize that there are lots of text editors out there but Dreamweaver is what I’m comfortable with and it does the great job.
Other text editors are Netbeans, Ecplipse, Notepad++ etc but these have limited features. Dreamweaver have lot of features almost all a developer need.Yeah, It is paid but by it you speedup of your coding affords and managing projects skills,I think lots of programmer like Dreamweaver.
In CakePHP I found out that Dreamweaver doesn’t open .THTML and .CTP extensions files automatically, But it is so easy to configure Dreamweaver for these type of file.
Here it is…
THTML and CTP Files
CakePHP 1.1 uses .THTML files and CakePHP 1.2 uses .CTP files. We will set both of these extensions so that we don’t have to fiddle around with Dreamweaver again.
Modifying the Necessary Dreamweaver files
There are 3 files that you need to edit. The first two are located in the folder that you have installed Dreamweaver, in my case It is in ‘C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration‘.
C:\Program Files\Macromedia\Dreamweaver 8\Configuration in case,if you are using Macromedia Dreamweaver 8
Open up ‘Extensions.txt’ and on the first line at the very end add THTML and CTP separated by commas, so the line should read
Similarly add these two extensions to the ‘:PHP Files’ line.
Next open the ‘DocumentTypes’ folder and edit the ‘MMDocumentTypes.xml’ file, just open it up using notepad/wordpad. Search for the line which has an id ‘PHP_MySQL’ and add the THTML/CTP file extensions to both the ‘winfileextension’ and ‘macfileextension’ so the line should read.
The final file is another version of the ‘Extensions.txt’ which is located in your ‘Documents and Settings’ Folder in my case this is ‘C:\Documents and Settings\Mahesh\Application Data\Adobe\Adobe Dreamweaver CS3\Configuration’ just add the very same things you inserted earlier.
If you are using Macromedia Dreamweaver 8, you need not to do this edit.
for windows 7 you need to edit one more configuration file:
edit just like the other extension files.
Hope this will make sense!!