Hello,<br><br>Here is the full code of my plugin and the script I use to create the .so file. Let me know if someone can run it on another platform instead of Gentoo. <br>Some feedback would be also really appreciated :-)<br>
<br>Can you just give me the start point into the doc : I wanna add a panel into the preferences for my plugin. How must I proceed ?<br><br>Best regards,<br>Cedric<br><br><div class="gmail_quote">On Fri, Aug 7, 2009 at 7:08 PM, Frank Lanitz <span dir="ltr"><<a href="mailto:frank@frank.uvena.de">frank@frank.uvena.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Fri, 7 Aug 2009 18:45:56 +0200<br>
<div class="im">Cédric Tabin <<a href="mailto:tabin.cedric@gmail.com">tabin.cedric@gmail.com</a>> wrote:<br>
<br>
</div><div class="im">> Hello geany-guys :)<br>
><br>
> I come back to you with my (very) small plugin. It allows you to<br>
> (very) quickly format an XML. The following :<br>
><br>
> <?xml version="1.0" encoding="utf-8"?><root id="543"><!-- This is a<br>
> simple XML sample --><geany user="aname"><var<br>
> id="name">Cedric</var><var<br>
> id="country">Switzerland</var></geany><comments><![CDATA[Our cows are<br>
> very funny => Drink our milk :-)]]></comments></root><br>
><br>
> becomes in one click something like that :<br>
><br>
> <?xml version="1.0" encoding="utf-8"?><br>
> <root id="543"><br>
>   <!-- This is a simple XML sample --><br>
>   <geany user="aname"><br>
>     <var id="name">Cedric</var><br>
>     <var id="country">Switzerland</var><br>
>   </geany><br>
>   <comments><![CDATA[Our cows are very funny => Drink our milk<br>
> :-)]]></comments><br>
> </root><br>
<br>
</div>Cool.<br>
<div class="im"><br>
> Be sure I'll release the source code on my blog as soon as I'm finish<br>
> with it :) For now I got some questions for you guys :<br>
> - How can I set the document type ? Ideally, you copy-paste your XML<br>
> into geany, click on th eplugin-button, it parses the file and set<br>
> the document type to XML... I'm just lost into the doc...<br>
<br>
</div>I guess you are looking for document_set_filetype() described here:<br>
<a href="http://www.geany.org/manual/reference/document_8h.html#7a2f2bfa1c9fe7d9472466e895c251f6" target="_blank">http://www.geany.org/manual/reference/document_8h.html#7a2f2bfa1c9fe7d9472466e895c251f6</a><br>
<div class="im"><br>
> - I compile and run my plugin with Geany 0.16 on Gentoo with libxml2.<br>
> I sent my .so file to a friend who is on Ubuntu and he tells me that<br>
> it doesn't appear in the Plugin Manager :( I just joined the .so file<br>
> in this mail, so if someon can tell me a bit more about that...<br>
<br>
</div>Its most likely that the so file will be not binary compatible with<br>
Geany from Ubuntu due different build of Geany. Recompiling should<br>
work. Maybe you should also send the .c file to the devel list as most<br>
of ppl around will have the same issues.<br>
<div class="im"><br>
> And a last information : if someone read french, I just wrote a<br>
> little blog post<br>
</div>> <<a href="http://www.astorm.ch/blog/index.php?post/2009/06/23/Pugin-Geany" target="_blank">http://www.astorm.ch/blog/index.php?post/2009/06/23/Pugin-Geany</a>> on<br>
<div class="im">> how to simply do a plugin on Geany. Hope it helps !<br>
<br>
</div>Unfortunately I can't understand any French beside Tarte Flambé ;)<br>
<br>
Cheers,<br>
<div><div></div><div class="h5">Frank<br>
--<br>
<a href="http://frank.uvena.de/en/" target="_blank">http://frank.uvena.de/en/</a><br>
</div></div><br>_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
<br></blockquote></div><br>