Inc and phtml files in Dreamweaver
Make sure Dreamweaver is closed before you follow these instructions.
Go to your configuration files and open extension.txt. The file extension.txt file is located at:
Use notepad or another text editor and add PHTML and INC in uppercase. Remember to use a comma to seperate each entry.Step two
Open the MMDocumentTypes.xml file. You'll most liekely find this file in C:\Program Files\Macromedia\Dreamweaver MX\Configuration\DocumentTypes\MMDocumentTypes.XML
Use notepad or an XML editor to open this file, (do not double-clik it, it will most likely open up in Internet Explorer) Locate the line at the start of this file that look like this:
Add phtml and inc to winfileextensions and macfileextensions like this:
To make the inc file editable in Design View, we need to remove from an instance in the Dreamweaver preferences. Open Dreamweaver and go to:
Edit -> Preferences -> File Types, now remove inc in from 'Open in Code View'.Step Four (Only for Windows XP!)
In XP you also have to need to add inc and phtml to your personal settings:
(the folder can sometimes be named by your username)
If you cannot see the Application Data Folder, go to Tools -> Folder Options ->View and make sure that Show Hidden Files and Folders is checked.
Open extensions.txt in your txt editor and add inc and phtml. Remember the comma to seperate entries.
Close Dreamweaver then re-start it. Dreamweaver should now open phtml and inc files!