Re: [Geany-devel] Code formatter

2012-07-31 Thread Colomban Wendling
Le 19/07/2012 01:50, Jacob Strohm a écrit :
> Le 18/07/2012 05:53, Matthew Brush a écrit :
>
>> I'd personally be very interested in using a plugin that can format
>> the code precisely automatically. IIRC VisualStudio does this very
>> well but is not flexible as to code style (or I didn't find the
>> preferences). I suspect it would be quite difficult to write a good
>> one that is at the same time accurate, flexible and supports
>> multiple non-similar languages (C-style vs Python, for example).
> 
> 
> Way to put the pressure on  :).  I haven't used Visual Studio's, but I
> will check it out, along with Eclipse's version.  Also, since I only
> really have experience with C-style languages, it will (initally at
> least) be focused on that.  Suggestions are always welcome.

I'm a bit late, but I just finally managed to commit my one-year-old
attempt at writing such a plugin, so I link it here if you're
interested: https://github.com/b4n/grind

I plan to finish it one day or the other, but it's not really a
high-priority thing for me (one can tell since I didn't event committed
much of it for months) because I don't have much need (or even use case)
for such a plugin.  I actually started it to answer somebody else's
wish, and I found interesting and funny to try doing it, but it was
quite big and requires time... argh, time.

Anyway, if you want to improve it, send me patch (I would review them)
or take something from it (it's under GPLv2), feel free.

Hope it helps.

Regards,
Colomban
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Code formatter

2012-07-18 Thread Jacob Strohm
On Tue, Jul 17, 2012 at 11:02 PM, Hong Xu  wrote:

>
>
> On Jul 18, 2012, at 10:32, Jacob Strohm  wrote:
>
> > Hello all,
> >
> > Does Geany have any kind of automatic code formatter, either in the
> core or as a plugin?  Looking through the plugins project/website, I didn't
> see anything like it, and if not I think I'd enjoy working on it in my free
> time, I just wanted to double check before investing a bunch of time.
> >
>
> This may solve your issue partially:
>
> http://editorconfig.org
>
> Currently you can only deal with indentation using it.
>
>
>
I've been unable to get Geany to recognize your plugin using a geany
version pulled from git a couple days ago (probably some silly mistake I'm
making), but regardless I was thinking of something more fully featured
(and not needing to install a separate library is preferable in my eyes). I
may add an option to import/export the file format though.



> Hi,
>
> I'd personally be very interested in using a plugin that can format the
> code precisely automatically. IIRC VisualStudio does this very well but is
> not flexible as to code style (or I didn't find the preferences). I suspect
> it would be quite difficult to write a good one that is at the same time
> accurate, flexible and supports multiple non-similar languages (C-style vs
> Python, for example).
>
>
Way to put the pressure on  :).  I haven't used Visual Studio's, but I will
check it out, along with Eclipse's version.  Also, since I only really have
experience with C-style languages, it will (initally at least) be focused
on that.  Suggestions are always welcome.

Thanks,
Jacob Strohm
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Code formatter

2012-07-17 Thread Matthew Brush

On 12-07-17 07:32 PM, Jacob Strohm wrote:

Hello all,

 Does Geany have any kind of automatic code formatter, either in the
core or as a plugin?  Looking through the plugins project/website, I
didn't see anything like it, and if not I think I'd enjoy working on it
in my free time, I just wanted to double check before investing a bunch
of time.



Hi,

I'd personally be very interested in using a plugin that can format the 
code precisely automatically. IIRC VisualStudio does this very well but 
is not flexible as to code style (or I didn't find the preferences). I 
suspect it would be quite difficult to write a good one that is at the 
same time accurate, flexible and supports multiple non-similar languages 
(C-style vs Python, for example).


Best of luck,
Matthew Brush
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Code formatter

2012-07-17 Thread Hong Xu


On Jul 18, 2012, at 10:32, Jacob Strohm  wrote:

> Hello all,
> 
> Does Geany have any kind of automatic code formatter, either in the core 
> or as a plugin?  Looking through the plugins project/website, I didn't see 
> anything like it, and if not I think I'd enjoy working on it in my free time, 
> I just wanted to double check before investing a bunch of time.
> 

This may solve your issue partially:

http://editorconfig.org

Currently you can only deal with indentation using it.

Hong
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


Re: [Geany-devel] Code formatter

2012-07-17 Thread Lex Trotman
On 18 July 2012 12:32, Jacob Strohm  wrote:
> Hello all,
>
> Does Geany have any kind of automatic code formatter, either in the core
> or as a plugin?  Looking through the plugins project/website, I didn't see
> anything like it, and if not I think I'd enjoy working on it in my free
> time, I just wanted to double check before investing a bunch of time.

No there is no such built-in although many people use custom command
to do that 
http://www.geany.org/manual/current/index.html#sending-text-through-custom-commands.

Cheers
Lex

>
> Thanks,
> Jacob Strohm
> ___
> Geany-devel mailing list
> Geany-devel@uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


[Geany-devel] Code formatter

2012-07-17 Thread Jacob Strohm
Hello all,

Does Geany have any kind of automatic code formatter, either in the
core or as a plugin?  Looking through the plugins project/website, I didn't
see anything like it, and if not I think I'd enjoy working on it in my free
time, I just wanted to double check before investing a bunch of time.

Thanks,
Jacob Strohm
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel