Archive for August, 2008

08 2nd, 2008

When you develop custom applications in Drupal, your best path is to leverage the modular framework of the core and create your own Drupal modules. This week Web Deli has been developing a custom business application for our client and we came up against this nagging issue:

Dreamweaver does not recognise (out of the box) your “.module” file as a valid PHP file (Which it is). So how do I get Dreamweaver to recognise my Drupal module as PHP and provide code colouring and context at runtime?

no_code_highlight.jpg

What you need to do is find the following file:

doctype.jpg

And edit it as below:

doc-types.jpg

Then… Dreamweaver will  recognise Drupal’s .module file as PHP. Simple.

And voila! We have beatiful code once again:

code_highlight.jpg