Dreamweaver CS4 Version 10 Build 4117
on Microsoft Vista Home Premium Service Pack 2
I'm trying to edit Menalto PHP Gallery files via Dreamweaver. Some of Gallery's core php module files use the .class file extension. I want the following extensions to be treated as PHP files in Dreamewaver.
phtml, class, cpt
I added these extensions to the following files.
C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS4\configuration\DocumentTypes\MMDocumentTypes.xml
C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS4\configuration\Extensions.txt
I set Vista to use Dreamweaver as the default program for opening .class files.
I have restarted the computer.
I can open up phtml and cpt files just fine. However, when I try and open .class files, I get the error:
Dreamweaver can't open .class files
Please choose an HTML, XML, or other compatible file
I used Dreamweaver to create a new file in the Dreamweaver file pannel. I called the new file test.class and opened it up in notepad. Dreamweaver is successfully pre-populating the test.class file with the default PHP template.
So Dreamweaver is creating the test.class file using the default PHP template, but it still can't open .class files in Dreamweaver.
I think this might be a reserved extension or something. Anyone else had a similar problem?
Hey, I gave up myself. While I still use Dreamweaver for layout (HTML, images) work and for synching my website via SFTP, I don't code PHP in it anymore. Dreamweaver really isn't a PHP development IDE. So, I do all my PHP work in something called NetBeans. It is less user friendly but once you set it up... my goodness... is it great for coding PHP. So Dreamweaver for visual stuff and HTML stuff. NetBeans for PHP app development. That's my suggestion.
There actually is one very pathetic way of opening class files in dreamweaver. If you use dreamweaver's search feature, which searches files and you have the extensions.txt set for class files, then dreamweaver will search the class file and return resutls. After that you can now double click the result and it will open the class file in dreamweaver. It is the only place Adobe has forgotten to disable in order to open class files.