branko ajzele, senior developer / project manager

Posts / Articles

Drupal .module extension and Eclipse (Zend Studio Eclipse) syntax color

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.

  • Adeel Shahid

    Why do you say other’s CMS solutions look easy after few months of Magento Development.

  • Adeel Shahid

    Why do you say other’s CMS solutions look easy after few months of Magento Development.

  • http://activecodeline.com/ branko

    Because Magento is soooo damn complicated and big… :) -I meant no disrespect to “other CMS” solutions. I am a fan of WordPress and Drupal :) Cheers.

  • http://activecodeline.com branko

    Because Magento is soooo damn complicated and big… :) -I meant no disrespect to “other CMS” solutions. I am a fan of WordPress and Drupal :) Cheers.

  • http://blog.abhinavzone.com/ Abhinav Varshney

    you are right branko! Coding in magento is dmamn hell!!

  • http://blog.abhinavzone.com Abhinav Varshney

    you are right branko! Coding in magento is dm\amn hell!!

  • http://monsoonconsulting.com/ Ashish

    Thanks for eclipse tips for .module extension

  • http://monsoonconsulting.com Ashish

    Thanks for eclipse tips for .module extension

  • http://www.postpeakliving.com/ Andre Angelantoni

    Unfortunately, Studio 7.0 doesn’t have the PHP Content Type as an option…

  • http://www.postpeakliving.com Andre Angelantoni

    Unfortunately, Studio 7.0 doesn’t have the PHP Content Type as an option…

  • http://www.postpeakliving.com/ Andre Angelantoni

    Never mind…it was nested one level in.

  • http://www.postpeakliving.com Andre Angelantoni

    Never mind…it was nested one level in.

  • Dave Hoebe

    Thanx, that's what i was looking for !!!

blog comments powered by Disqus