Community Documentation

Configuring Komodo Edit

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:

  1. 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.
  2. 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.
  3. Launch Komodo Edit, and on the start page, go to "Check Configuration".
  4. 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 :

  • Create a project in the root folder of the theme or module you are working on.
  • Next, right click on the project and choose "properties" to access the properties dialog window.
  • Select "Language/PHP" and add the root directory of your drupal install.
  • Komodo will scan all of the Drupal code and offering completions for the entire Drupal API (functions, variables, ...).
  • And as Drupal use jQuery, you could enabled the jQuery in the "Code intelligence" section of the preferences.

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.

nobody click here