[TxMt] Any PHP Coders with a few minutes to spare ?
soryu2 at gmail.com
soryu2 at gmail.com
Mon Jun 6 00:23:00 UTC 2005
Though Mats will probably publish a new version of his PHPCompletions
bundle tommorow,
I tried to do a completion and snippet thing for user defined functions.
There is a small bundle here: http://public.serenity.de/PHP2.zip
There are two commands defined (with bad keyboard shortcuts, I know,
just for testing, though):
!completion - Shows a tooltip of all functions beginning with the
current word (works if there is no current word, too)
!snippet - completes the parameter list of the function that is named
like the current word. Must match exactly.
What it does:
- parse the current file for use of include and include_once.
syntax should not matter: include "test.php", include_once
('test.php') should work
- check if the included file exist. It assumes a relative path!
- use CTAGS to find the symbol declaration matching the current word
in TM
- show the popup or insert the snippet
Things to mention:
I am just scanning the current file for includes, not recursive
includes.
Selected text will be replaced.
Note: This is only a fast hack, to see how it could work.
Soryu
More information about the textmate
mailing list