PHP code editing in Dreamweaver
December 06, 2007
I know dreamweaver isn't the best choice for editing PHP code by hand, but it's worked relatively well for me over the past 2 years. There are better tools out there that offer code/syntax validation such as the Eclipse IDE with php, and even simple text editors like textmate. But for those of you that do use dreamweaver and use include files, it has always been a bother that Dreamweaver doesn't color-code include files. Well here's how:I found an article on adobe about this:https://kb.adobe.com. Basically find your file titled MMDocumentTypes.xml... on a mac just use spotlight to find this, otherwise you have to dig through the application package. After locating the file and opening it, just add inc to the XML where the documenttype is listed as PHP_MySQL:
And Voila. A simple code-coloring solution for editing include files with the .inc extension in dreamweaver.