Last updated January 7, 2009. Created by lilou on April 18, 2008.
Edited by jeremdow. Log in to edit this page.
Komodo Edit is a free, open source editor and cross-platform.
If you want to enable syntax checking and auto-completion for standard PHP and Drupal functions in Komodo Edit, here's what to do:
- First you need to download and install PHP on your local machine (if you haven't). Make sure to install the same version that you run on your server.
- Then, download the version of Drupal that you're using on your site(s) - or if you keep mirror copies of all your Drupal sites on your local machine already, then you could use those instead and pick up all the available functions.
- Launch Komodo Edit, and on the start page, go to "Check Configuration".
- Komodo Edit should automatically detect your PHP installation, so the PHP line should read "PHP Syntax Checking:Ready". Go into Configure PHP, and you'll want to add the Drupal directory or your site directories under "PHP directories".
That's it - Komodo Edit will check your syntax and recommend/auto-complete for all php and Drupal functions as you type.
Comments
I used another method with
I used another method with komodo :
I just want to say that this
I just want to say that this is so cool. Is like a marriage, Komodo & Drupal.
Luis
Create a project instead
There's a problem with your approach: what if I work on different projects with different versions of Drupal (e.g. 6 and 7)?
You should create a new project in Komodo Edit and place it in the Drupal root directory instead of adding Drupal at the "PHP Directories". This way you will always have code completion for the Drupal version you are working with at the moment.