Wednesday, April 25, 2012

Dreamweaver's .php code colouring applied to .module files... there is a useful nugget!

I have been frustrated when editing .module and other non .php suffixed files that Dreamweaver doesn't colour code?! So here is how to make Dreamweaver do so.



  • In Dreamweaver's application directroy follow to here: Configuration\DocumentTypes\MMDocumentTypes.xml
  • In here (MMDocumentTypes.xml file) you should find the lines of code which list the currently accepted suffix formats for php colours to be applied to.
    Something like this: winfileextension="php,php3,php4" or "macfileextension="php,php3,php4"
    Insert "module" onto the end of these like so: winfileextension="php,php3,php4,module" or macfileextension="php,php3,php4,module"
  • Restart Dreamweaver and it should nicely colour code .module files as php ones.