Closed (fixed)
Project:
Textmate
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2010 at 09:27 UTC
Updated:
21 Feb 2010 at 18:27 UTC
Please help. I don't understand the install instructions at all.
I've read the textmate documentation and all it says is to install a new module check it out from SVN in the /Library/Application\ Support/TextMate/Bundles directory.
1) I've downloaded you zip file and unzipped it.
2) Where should I put this folder?
3) When I now go to TextMate which file should I open to be in php mode? If I open any normal php file and press ^H I get the online php help.
It seems like I'm missing a huge chunk of information. What should I be reading?
Comments
Comment #1
psynaptic commentedFirst check if you have the bundles directory:
If that doesn't exist, create and change to the bundles directory (else just change directory):
This is where you put the Drupal bundle you got from GitHub. You can clone directly from GitHub using:
If you don't have git installed or this scares you, you can open Finder here and move your extracted bundle manually:
If you don't use git then you won't be able to pull from the master repo to keep up-to-date with the changes. You woould have to manually do this every so often.
You then need to reload all bundles:
You can also do this from the bundles menu at Bundles > Bundle Editor > Reload Bundles.
You need to add some "Shell Variables". Goto TextMate > Preferences > Advanced > Shell Variables and click the + button.
Add the following:
Variable: TM_DRUPAL_API
Value: http://drupalcontrib.org
Variable: TM_DRUPAL_VERSION
Value: 6
Now you can try ⌃H from PHP mode. You can change to PHP mode by pressing ⌃⌘⇧H (it is recommended by the author of TextMate to use HTML mode rather than PHP mode directly).
Comment #2
psynaptic commentedComment #3
diricia commentedThank you for your help.
Two things that where causing a problem.
1) I extracted the bundle in my own directory library directory not in the root library directory, as per the TextMate documentation.
2) Your bundle (zip file) extracts to psynaptic-php-drupal.tmbundle-af06bfb. I had to rename it to psynaptic-php-drupal.tmbundle. Why is the extension incorrect?
Anyway. Thank you. I'm going to try it out now. I'm sure it is going to be fantastic. Next step is to get xdebug installed and working with TextMate.