Something that I have used extensible in my windows favorite editor MultiEdit, is a snippet kind of functionality, that allows me to write "func" (or up to the full word "function") to build a function comment. Typical, I like it to build something like this;
/*-----------------2005-05-31 13:22----------------- * Function: spi_setup() * Description: Initialization of the spi interface * prior to making use of any resource. * Normally called from startup code. * Author: MBe * Arguments: - * Returns: - *------------------------------------------------*/
As a snippet could do this, I am relieved and excited. But can I put the (current) date in the snippet? How would I do this?
Thanks,
Micael
On Fri, 11 Jul 2008 13:44:44 +0200 Micael m8847@abc.se wrote:
As a snippet could do this, I am relieved and excited. But can I put the (current) date in the snippet? How would I do this?
I don't think you can do this at the moment, but maybe it could be implemented.
Regards, Nick
On Fri, July 11, 2008 2:03 pm, Nick Treleaven wrote:
On Fri, 11 Jul 2008 13:44:44 +0200 Micael m8847@abc.se wrote:
As a snippet could do this, I am relieved and excited. But can I put the (current) date in the snippet? How would I do this?
I don't think you can do this at the moment, but maybe it could be implemented.
Depending on which variables should be included, this can be done by an plugin. In GeanyLaTeX plugin I did some similar stuff at the wizard. Maybe we can recycle some code from it.
Regards, Frank
On Friday 11 July 2008 17.43.38 Frank Lanitz wrote:
On Fri, July 11, 2008 2:03 pm, Nick Treleaven wrote:
On Fri, 11 Jul 2008 13:44:44 +0200 Micael <m8847@abc...> wrote:
As a snippet could do this, I am relieved and excited. But can I put the (current) date in the snippet? How would I do this?
I don't think you can do this at the moment, but maybe it could be implemented.
Depending on which variables should be included, this can be done by an plugin. In GeanyLaTeX plugin I did some similar stuff at the wizard. Maybe we can recycle some code from it.
This sounds interesting! I haven't looked at plugins (yet), so can't exactly comment.. But in my case, I am primarily interested in time and date, but I guess a more generic solution could be useful in long term.
Thanks, Micael
On Fri, 11 Jul 2008 13:44:44 +0200, Micael m8847@abc.se wrote:
Something that I have used extensible in my windows favorite editor MultiEdit, is a snippet kind of functionality, that allows me to write "func" (or up to the full word "function") to build a function comment. Typical, I like it to build something like this;
/*-----------------2005-05-31 13:22-----------------
- Function: spi_setup()
- Description: Initialization of the spi interface
prior to making use of any resource.
Normally called from startup code.
- Author: MBe
- Arguments: -
- Returns: -
*------------------------------------------------*/
As a snippet could do this, I am relieved and excited. But can I put the (current) date in the snippet? How would I do this?
I just added this functionality in SVN r2773. Now you can use most of the template wildcards like {developer}, {date} or {datetime}. Additionally, since SVN r2775 you can also change the format of the date/time wildcards in the Templates tab of the preferences dialog. Docs were updated and know the details :D
But for the above mentioned function description template, you may want to use the already existing corresponding template?
Regards, Enrico
On Sunday 13 July 2008 13.56.57 Enrico Tröger wrote:
On Fri, 11 Jul 2008 13:44:44 +0200, Micael <m8847@ ..> wrote:
Something that I have used extensible in my windows favorite editor MultiEdit, is a snippet kind of functionality, that allows me to write "func" (or up to the full word "function") to build a function comment. Typical, I like it to build something like this;
/*-----------------2005-05-31 13:22-----------------
- Function: spi_setup()
- Description: Initialization of the spi interface
prior to making use of any resource.
Normally called from startup code.
- Author: MBe
- Arguments: -
- Returns: -
*------------------------------------------------*/
As a snippet could do this, I am relieved and excited. But can I put the (current) date in the snippet? How would I do this?
I just added this functionality in SVN r2773. Now you can use most of the template wildcards like {developer}, {date} or {datetime}. Additionally, since SVN r2775 you can also change the format of the date/time wildcards in the Templates tab of the preferences dialog. Docs were updated and know the details :D
But for the above mentioned function description template, you may want to use the already existing corresponding template?
Enrico, Cheers mate!
I am now adopting this editor as my favorite one in the linux world! :)
I hope to do some testing the upcoming days, but I am not at the actual box right now...
Regards, Micael