Re: [Geany-devel] Geany Plugin with Libxml

2009-08-12 Thread Enrico Tröger
On Wed, 12 Aug 2009 09:59:33 +0200, Frank wrote: >> Are there some (strict) limitations ? Probably I'll only commit >> files for my plugin but... > >No real restriction, but we try to only commit changes direct to >plugins we are maintaining personal. In every other case we usually >sending patch

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-12 Thread Frank Lanitz
Hi, On Wed, 12 Aug 2009 00:25:07 +0200 Cédric Tabin wrote: > It's me again :-) I just have some questions about committing on > Sourceforge. Is there any convention into messages ? No real convention. I like to add the plugin name I've done something on to my commit message whereas others don

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-11 Thread Chow Loong Jin
On Wednesday 12,August,2009 06:25 AM, Cédric Tabin wrote: > Hi there, > > It's me again :-) I just have some questions about committing on > Sourceforge. Is there any convention into messages ? May we commit as > much as we want ? Are there some (strict) limitations ? Probably I'll > only commit f

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-11 Thread Cédric Tabin
Hi there, It's me again :-) I just have some questions about committing on Sourceforge. Is there any convention into messages ? May we commit as much as we want ? Are there some (strict) limitations ? Probably I'll only commit files for my plugin but... Thanks & regards, Cedric ps. I can now com

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-10 Thread Enrico Tröger
On Tue, 11 Aug 2009 04:26:51 +0800, Chow wrote: Hey, attached is a little patch which cleans up the includes and improves ordering of the included header files. The main change is to include "geany.h" very early, this header will implicitly include most of the GLib and GTK headers you need. So,

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-10 Thread Chow Loong Jin
On Tuesday 11,August,2009 03:51 AM, Cédric Tabin wrote: > Hello Chow, > > Thanks for your feedback :-) I've fixed the issues you mentionned (I > hope) and upgraded a little bit my code. Since now I always used my > small compile script which is very simple : > > #!/bin/sh > > source="src/Plugin.

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-10 Thread Cédric Tabin
Hello Chow, Thanks for your feedback :-) I've fixed the issues you mentionned (I hope) and upgraded a little bit my code. Since now I always used my small compile script which is very simple : #!/bin/sh source="src/Plugin.c" output="XMLPrettyPrinter" gcc -std=c99 -o "$output.o" -Wall -c -fpic "

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-10 Thread Chow Loong Jin
On Monday 10,August,2009 05:56 PM, Cédric Tabin wrote: > Hi Franck, > > I put my plugin where you said already => > http://geany-plugins.svn.sourceforge.net/viewvc/geany-plugins/trunk/pretty-printer/ > I'll wait for your commit of the build system, so I can try it on my > computer :-) Hi Cédric,

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-10 Thread Frank Lanitz
On Mon, 10 Aug 2009 12:38:40 +0200 Cédric Tabin wrote: > It's all right, I did it :-) Cool. Thanks. Frank -- Frank Lanitz ___ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-10 Thread Cédric Tabin
Hello, It's all right, I did it :-) Thanks, Cedric On Mon, Aug 10, 2009 at 12:25 PM, Frank Lanitz wrote: > Hi, > > On Mon, 10 Aug 2009 11:56:57 +0200 > Cédric Tabin wrote: > > > I put my plugin where you said already => > > > http://geany-plugins.svn.sourceforge.net/viewvc/geany-plugins/trunk

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-10 Thread Frank Lanitz
Hi, On Mon, 10 Aug 2009 11:56:57 +0200 Cédric Tabin wrote: > I put my plugin where you said already => > http://geany-plugins.svn.sourceforge.net/viewvc/geany-plugins/trunk/pretty-printer/ The correct path on viewvc would be http://geany-plugins.svn.sourceforge.net/viewvc/geany-plugins/trunk/

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-10 Thread Cédric Tabin
Hi Franck, I put my plugin where you said already => http://geany-plugins.svn.sourceforge.net/viewvc/geany-plugins/trunk/pretty-printer/I'll wait for your commit of the build system, so I can try it on my computer :-) Regards, Cedric On Mon, Aug 10, 2009 at 11:53 AM, Frank Lanitz wrote: > Hi C

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-10 Thread Frank Lanitz
Hi Cédric, On Sun, 9 Aug 2009 22:46:33 +0200 Cédric Tabin wrote: > I'll commit all my sources to the svn asap :-) If you have any advices, just > tell me so I can learn ! Thanks for committing. Since a couple of weeks we got an combined plugins project inside geany-plugins svn which makes it

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-09 Thread Cédric Tabin
Hello, Yep I currently just use libxml to check if the document contains a valid XML. Then my script process the pretty-printing on a char* buffer and I do the parsing manually (but I don't need to verify XML). The idea is also to provide a simple XML PrettyPrinter script in C. So far I had never

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-09 Thread Enrico Tröger
On Sun, 9 Aug 2009 18:37:34 +0200, Cédric wrote: >Hi Enrico, > >Thanks for your advices. Since I don't develop pretty much in C, I >don't know the geany-standards very well. I'll correct that :-) For >formatting the current selection there are two technical problems I >see : >- The selected text m

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-09 Thread Philipp Gildein
Hi, Am Sonntag, den 09.08.2009, 18:37 +0200 schrieb Cédric Tabin: > Hi Enrico, > > Thanks for your advices. Since I don't develop pretty much in C, I > don't know the geany-standards very well. I'll correct that :-) For > formatting the current selection there are two technical problems I > see :

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-09 Thread Cédric Tabin
Hi Enrico, Thanks for your advices. Since I don't develop pretty much in C, I don't know the geany-standards very well. I'll correct that :-) For formatting the current selection there are two technical problems I see : - The selected text must be a valid XML (from start node to its closing tag).

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-09 Thread Enrico Tröger
On Sat, 8 Aug 2009 14:00:52 +0200, Cédric wrote: Heyho, about compiling and your friend using Ubuntu: sharing binary files (.so) between different systems and especially between different distributions usually don't work (we are not on Windows...) and it's not designed to work. Instead, compile t

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-08 Thread Frank Lanitz
On Sat, 8 Aug 2009 12:55:58 +0200 Cédric Tabin wrote: > Thanks for the information ! The code currently doesn't support the > DOCTYPE header (I'll add it asap), but should work with other XML. I this case this shouldn't shut down Geany. > Are you running on Ubuntu ? How did you install the plug

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-08 Thread Cédric Tabin
Hi Frank, Thanks for the information ! The code currently doesn't support the DOCTYPE header (I'll add it asap), but should work with other XML. Are you running on Ubuntu ? How did you install the plugin ? My friend compiles it, but even if the so was into the ~/.config/geany/plugins folder, he co

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-08 Thread Frank Lanitz
On Sat, 8 Aug 2009 00:43:04 +0200 Cédric Tabin wrote: > Hello, > > 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. It compiles here, butr not running much (see below) > Some feedback wo

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-08 Thread Frank Lanitz
Hi, On Sat, 8 Aug 2009 11:06:15 +0200 Cédric Tabin wrote: > As you can see in the PrettyPrinting.c file, there is some constants > for the pretty-printing that I want to externalize. Ideally if the > user can set his choices into the Preferences Panel, that would be > great :-) Adding this to

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-08 Thread Cédric Tabin
Hello, As you can see in the PrettyPrinting.c file, there is some constants for the pretty-printing that I want to externalize. Ideally if the user can set his choices into the Preferences Panel, that would be great :-) Regards, Cedric On Sat, Aug 8, 2009 at 1:18 AM, Frank Lanitz wrote: > On S

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-07 Thread Frank Lanitz
On Sat, 8 Aug 2009 00:43:04 +0200 Cédric Tabin wrote: > 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 ? Can you please describe a bit more detailed what you are planning to do? Thanks, Frank -- http://frank.uve

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-07 Thread Frank Lanitz
On Fri, 7 Aug 2009 18:45:56 +0200 Cédric Tabin wrote: > Hello geany-guys :) > > I come back to you with my (very) small plugin. It allows you to > (very) quickly format an XML. The following : > > id="name">Cedric id="country">Switzerland > > becomes in one click something like that : > > >

Re: [Geany-devel] Geany Plugin with Libxml

2009-08-07 Thread Cédric Tabin
Hello geany-guys :) I come back to you with my (very) small plugin. It allows you to (very) quickly format an XML. The following : CedricSwitzerland becomes in one click something like that : Cedric Switzerland Be sure I'll release the source code on my blog as soon as I

Re: [Geany-devel] Geany Plugin with Libxml

2009-06-24 Thread Frank Lanitz
On Wed, 24 Jun 2009 03:16:04 +0800 Chow Loong Jin wrote: > On Wednesday 24,June,2009 03:05 AM, Cédric Tabin > wrote: > > Hello, > > > > Thanks for the advice :) I just try and it works perfectly !!! > > > Good to hear. You should consider using a build system to compile your > plugins though. A

Re: [Geany-devel] Geany Plugin with Libxml

2009-06-24 Thread Enrico Tröger
On Wed, 24 Jun 2009 03:16:04 +0800, Chow wrote: >On Wednesday 24,June,2009 03:05 AM, Cédric Tabin > wrote: >> Hello, >> >> Thanks for the advice :) I just try and it works perfectly !!! >> >> Regards >> Cedric >Good to hear. You should consider using a build system to compile your >plugins though

Re: [Geany-devel] Geany Plugin with Libxml

2009-06-23 Thread Chow Loong Jin
On Wednesday 24,June,2009 03:05 AM, Cédric Tabin wrote: > Hello, > > Thanks for the advice :) I just try and it works perfectly !!! > > Regards > Cedric Good to hear. You should consider using a build system to compile your plugins though. And perhaps release your code so that others may benefit

Re: [Geany-devel] Geany Plugin with Libxml

2009-06-23 Thread Cédric Tabin
Hello, Thanks for the advice :) I just try and it works perfectly !!! Regards Cedric On Tue, Jun 23, 2009 at 9:00 PM, Chow Loong Jin wrote: > On Wednesday 24,June,2009 01:53 AM, � wrote: > > Hello, > > > > I try to code a small plugin that uses libxml2 to parse some data. I > > searched a lot,

Re: [Geany-devel] Geany Plugin with Libxml

2009-06-23 Thread Cédric Tabin
Hi, I just want to use the functions of the libxml2 into my Geany Plugin. Until now, it compiles well, but when I put it into my .config/geany/plugins, the module fails its initialization and I can't see it into the plugin list... Regards, Cedric On Tue, Jun 23, 2009 at 8:26 PM, Frank Lanitz wr

Re: [Geany-devel] Geany Plugin with Libxml

2009-06-23 Thread Chow Loong Jin
On Wednesday 24,June,2009 01:53 AM, � wrote: > Hello, > > I try to code a small plugin that uses libxml2 to parse some data. I > searched a lot, but I don't understand how I can tell Geany that I want to > use that lib... > > To compile my file, I use the following command lines : > > compilation >

Re: [Geany-devel] Geany Plugin with Libxml

2009-06-23 Thread Frank Lanitz
On Tue, 23 Jun 2009 19:53:27 +0200 Cédric Tabin wrote: > I try to code a small plugin that uses libxml2 to parse some data. I > searched a lot, but I don't understand how I can tell Geany that I > want to use that lib... I'm not sure what you want to do here. Can you please go a bit more in det

[Geany-devel] Geany Plugin with Libxml

2009-06-23 Thread Cédric Tabin
Hello, I try to code a small plugin that uses libxml2 to parse some data. I searched a lot, but I don't understand how I can tell Geany that I want to use that lib... To compile my file, I use the following command lines : compilation gcc -o "output.o" -Wall -c -fpic "plugin.c" `pkg-config --cfl