Recently I started Drupal development. Have I mentioned how easy other CMS solutions look after few months of Magento development
Anyhow, I came across strange little problem with Drupal’s module development, syntax coloring and general PHP support when it comes to files with extension different than .php or .phtml. Lucky for me, Eclipse (Zend Studio Eclipse) comes with a nice solution for these kind of situations.
All you need to do in order for Eclipse to treat .module extensions as .php is to go to General > Content Types > (Select) PHP Content TYpe from the Content types area, then below under File Associations click on Add button and write down any extension you wish. In Drupal CMS case, write down “.module”.
Now you should be able to work with .module files as with all other .php files.
