Recently I started to work in Drupal. 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 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
Window Menu > Preferences > General > Content Types > (Select) Text > 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.
Drupal .module extension treate as php file (syntax color) in Eclipse
Posted by
Divyのsh Karelia
at
10:01 PM
Labels:
.module,
coloring syntax,
drupal,
Eclipse
Subscribe to:
Post Comments (Atom)
1 comment:
That's exactly what I needed. Thanks for the infomation.
Post a Comment