<HTML><BODY>
  >So this brings me to my questions, is there an easy way to 
determine if<br> >the current position in the editor is part of a 
function or not?  If so<br> >is there an easy way to get the function
 definition?  If not could<br> >someone maybe point me to some 
tutorials about parsing text in c.<br> <br>If you turn on your statusbar, will see the "scope" this show the function that you are now in. It is still buggy with php syntax but it is good point to start according me.<br>Your idea is good, i like it, this will provide easy way to documenting the code, go ahead!<br><br><br><br> >-------- Оригинално писмо --------<br> >От:  jordan <phosphor@primus.ca><br> >Относно: [Geany-devel] Function Definition<br> >До: geany-devel@uvena.de<br> >Изпратено на: Сряда, 2010, Април 14 15:25:15 EEST<br><br> >I'm trying to write a plug-in that among other things adds a function<br> >header.    Unfortunately this is also my first C program so it has been<br> >more of  a learning experience then anything, but I'm finally at the<br> >point where it sort of works.<br> ><br> >So far it has been a trial and error sort of thing using devhelp and<br> >various web sites, but now I am at the point where I need some guidance<br> >that is Geany specific.  Currently my plug-in reads the current line and<br> >breaks it down, however it's my understanding that some C programmers<br> >may break a function definition over several lines, in which case my<br> >plug-in would not work properly.  I would also like to make it so the<br> >function definition for whatever the current function is would be used.<br> ><br> >So this brings me to my questions, is there an easy way to determine if<br> >the current position in the editor is part of a function or not?  If so<br> >is there an easy way to get the function definition?  If not could<br> >someone maybe point me to some tutorials about parsing text in c.<br> ><br> >Also I was wondering if it's possible to use Valgrind to profile a plug-in?<br> ><br> >Also currently the header that is generated by my plug-in c style multi<br> >line hard coded, and I was wondering if at some time more of the methods<br> >in templates.c would be opened up to the API? <br> ><br> >-Jordan<br> >_______________________________________________<br> >Geany-devel mailing list<br> >Geany-devel@uvena.de<br> >http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel<br> > </phosphor@primus.ca></BODY></HTML>