Hello, i search how create plugin for write :
_def(param, value) and press [Tab]
transform to :
param = (typeof param == 'undefined') ? value : param;
Thanks for yout help.
Am Samstag, den 29.08.2009, 15:36 +0200 schrieb Dorian M.:
Hello, i search how create plugin for write : _def(param, value) and press [Tab] transform to : param = (typeof param == 'undefined') ? value : param;
Thanks for yout help.
You do not have to write a plugin for that, just edit your snippets.conf accordingly. See the manual for details on how the snippets.conf does work.
Regards, Dominic
Thanks, i set :
[Javascript]
_def=param = (typeof param == 'undefined') ? value : param;
But i don't understand how use variables (it's not in the manual : http://www.geany.org/manual/current/index.html#user-definable-snippets).
Can you help me ?
2009/8/29 Dominic Hopf dmaphy@googlemail.com
Am Samstag, den 29.08.2009, 15:36 +0200 schrieb Dorian M.:
Hello, i search how create plugin for write : _def(param, value) and press [Tab] transform to : param = (typeof param == 'undefined') ? value : param;
Thanks for yout help.
You do not have to write a plugin for that, just edit your snippets.conf accordingly. See the manual for details on how the snippets.conf does work.
Regards, Dominic
-- Dominic Hopf dmaphy@gmail.com
Key Fingerprint: A7DF C4FC 07AE 4DDC 5CA0 BD93 AAB0 6019 CA7D 868D
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Sat, 29 Aug 2009 16:41:38 +0200, Dorian wrote:
Thanks, i set :
[Javascript]
_def=param = (typeof param == 'undefined') ? value : param;
But i don't understand how use variables (it's not in the manual :
In that case you need indeed to write some own code, e.g. a plugin. General help on how t start can be found in the plugin API documentation on http://www.geany.org/manual/reference/ (see also the included HOWTO).
More information can also be found in the HACKING document (http://www.geany.org/manual/dev/hacking.html and included in the source distribution of Geany).
If you have any detailed questions, just ask.
Regards, Enrico
It seems too hard for me... The actual solution is good. Thanks a lot for all ;) .
2009/8/29 Enrico Tröger enrico.troeger@uvena.de
On Sat, 29 Aug 2009 16:41:38 +0200, Dorian wrote:
Thanks, i set :
[Javascript]
_def=param = (typeof param == 'undefined') ? value : param;
But i don't understand how use variables (it's not in the manual :
In that case you need indeed to write some own code, e.g. a plugin. General help on how t start can be found in the plugin API documentation on http://www.geany.org/manual/reference/ (see also the included HOWTO).
More information can also be found in the HACKING document (http://www.geany.org/manual/dev/hacking.html and included in the source distribution of Geany).
If you have any detailed questions, just ask.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Sat, 29 Aug 2009 19:37:20 +0200 "Dorian M." pr.dorian@gmail.com wrote:
It seems too hard for me... The actual solution is good. Thanks a lot for all ;) .
Alternatively, you could maybe write a script for the Lua Script plugin with a keybinding assigned to run the script.
http://plugins.geany.org/geany-plugins/ See the Geanylua link for scripting API.
It's also not easy, but easier than writing a C plugin.
Regards, Nick