Gedit snippets plugins allow smart code completion ala Textmate. Here is how to configure gedit to enable this feature :
1/ Download this file it contains symfony smart completion code
2/ Click “Edit” > “Preferences” and then select the plugins tab, scroll down unitl you found “Snippets”, Check it
3/ Go to “Tools” > “Manage Snippets” and click on the import button you should now see the new snippets.
NB : The triggers are the small words between parentheses, for example for link_to(…) just type linktoTAB and tab again to move from first parameter to the next one. I’ll update this post soon with a full list of triggers.
3 Responses
Thierry
02|Jan|2008 1Thanks a lot, I successfully installed the snippets, although I had to manually create the directory $HOME/.gnome2/gedit/snippets (gedit directory only contained a ‘tools’ directory).
I’ll be using gedit + your symfony snippets plugin since e-texteditor is still not available under linux.
zero0x
12|Mar|2008 2Hi,
Is there a way to make get added automatically?
now, I have to type:
php[tab]linkto[tab].. etc
I already have php snippet, that produces $0
I just ‘d like get it there without typing it…
brainfault
12|Mar|2008 3what do you mean by without typing it ? you have to write something to activate the trigger !!
Leave a reply