This entry was posted on Saturday, August 2nd, 2008 at 7:46 am and is filed under Dreamweaver, Drupal, Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


Writing your Drupal modules in Dreamweaver
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?
What you need to do is find the following file:

And edit it as below:
Then… Dreamweaver will recognise Drupal’s .module file as PHP. Simple.
And voila! We have beatiful code once again:
Leave a Reply
You must be logged in to post a comment.

