Re: [Gambas-user] Making code pretty

2011-08-10 Thread Bruce Bruen
On 10/08/11 16:46, Fabien Bodard wrote: > 2011/8/10 Kevin Fishburne: > >> On 08/09/2011 09:42 PM, Zach Smith wrote: >> >>> 2011/8/9 Benoît Minisini: >>> Anyway, why do you need that option? Is the procedure popup button not enough? >>> I prefer using

Re: [Gambas-user] Making code pretty

2011-08-10 Thread Fabien Bodard
Le 10 août 2011 14:45, Benoît Minisini a écrit : >> >> hum so and what about having a shortcut to expand the procedure list >> and then move throuth it with the up and down key ... validate by >> enter. >> >> with that no need to sort all the file. and an option can be set to >> have the cursor po

Re: [Gambas-user] Making code pretty

2011-08-10 Thread Benoît Minisini
> > hum so and what about having a shortcut to expand the procedure list > and then move throuth it with the up and down key ... validate by > enter. > > with that no need to sort all the file. and an option can be set to > have the cursor position change when the list entry change. F6 ? -- Be

Re: [Gambas-user] Making code pretty

2011-08-10 Thread Fabien Bodard
2011/8/10 Kevin Fishburne : > On 08/09/2011 09:42 PM, Zach Smith wrote: >> 2011/8/9 Benoît Minisini: >>> Anyway, why do you need that option? Is the procedure popup button not >>> enough? >>> >> I prefer using the keyboard (CTRL+UP and CTRL+DOWN) to navigate >> procedures.  If they are sorted (whi

Re: [Gambas-user] Making code pretty

2011-08-09 Thread Kevin Fishburne
On 08/09/2011 09:42 PM, Zach Smith wrote: > 2011/8/9 Benoît Minisini: >> Anyway, why do you need that option? Is the procedure popup button not >> enough? >> > I prefer using the keyboard (CTRL+UP and CTRL+DOWN) to navigate > procedures. If they are sorted (which I now do manually), it is > somet

Re: [Gambas-user] Making code pretty

2011-08-09 Thread Zach Smith
2011/8/9 Benoît Minisini : > > Anyway, why do you need that option? Is the procedure popup button not enough? > I prefer using the keyboard (CTRL+UP and CTRL+DOWN) to navigate procedures. If they are sorted (which I now do manually), it is sometimes faster to get to the procedure I want without h

Re: [Gambas-user] Making code pretty

2011-08-09 Thread richard terry
On Wednesday 10 August 2011 04:34:37 Kevin Fishburne wrote: > On 08/09/2011 12:29 PM, Johny Provoost wrote: > > Op 09-08-11 12:48, Benoît Minisini schreef: > >>> On 8/4/2011 8:22 AM, Benoît Minisini wrote: > Hi there, > > I'd like to add some options to the "making code pretty" feat

Re: [Gambas-user] Making code pretty

2011-08-09 Thread Kevin Fishburne
On 08/09/2011 12:29 PM, Johny Provoost wrote: > > > Op 09-08-11 12:48, Benoît Minisini schreef: >>> On 8/4/2011 8:22 AM, Benoît Minisini wrote: Hi there, I'd like to add some options to the "making code pretty" feature in the IDE. >>> I think that an option to sort procedures b

Re: [Gambas-user] Making code pretty

2011-08-09 Thread Johny Provoost
Op 09-08-11 12:48, Benoît Minisini schreef: >> On 8/4/2011 8:22 AM, Benoît Minisini wrote: >>> Hi there, >>> >>> I'd like to add some options to the "making code pretty" feature in the >>> IDE. >> I think that an option to sort procedures by name would be helpful. >> > I think such an option sh

Re: [Gambas-user] Making code pretty

2011-08-09 Thread Benoît Minisini
> On 8/4/2011 8:22 AM, Benoît Minisini wrote: > > Hi there, > > > > I'd like to add some options to the "making code pretty" feature in the > > IDE. > > I think that an option to sort procedures by name would be helpful. > I think such an option should be put outside of the code format routine,

Re: [Gambas-user] Making code pretty

2011-08-07 Thread Benoît Minisini
> 2011/8/4 Benoît Minisini : > > Hi there, > > > > I'd like to add some options to the "making code pretty" feature in the > > IDE. > > > > But I have no idea what I could make optional, as I wrote the > > pretty-printer the way I wanted to see the code. > > > > So if you have some suggestion, I

Re: [Gambas-user] Making code pretty

2011-08-06 Thread Fabián Flores Vadell
2011/8/4 Benoît Minisini : > Hi there, > > I'd like to add some options to the "making code pretty" feature in the IDE. > > But I have no idea what I could make optional, as I wrote the pretty-printer > the way I wanted to see the code. > > So if you have some suggestion, I am eager. > > Benoît Mi

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Fabien Bodard
thanks Benoit, and it work for the help comment too ... cool ! :-) 2011/8/5 Stephen A. Bungay : > Have not tested this yetm sounds useful. Agree with you Kevin, empty lines > full of spaces and trailing spaces on lines are things to be removed. > > Kevin Fishburne wrote: > >>On 08/05/2011 12:5

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Stephen A. Bungay
Have not tested this yetm sounds useful. Agree with you Kevin, empty lines full of spaces and trailing spaces on lines are things to be removed. Kevin Fishburne wrote: >On 08/05/2011 12:53 PM, Benoît Minisini wrote: >> Automatic comment insertion is done in revision #3972. > >Just tested it an

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Stephen A. Bungay
I suppose, but then the removal (or addition) of white space should probably not generate a commit change as white space is not critical to GAMBAS logic. Each to their own, but the 'prettying' should be configurable. Ron wrote: >It's not only eye candy, it's also a practical thing. >If you hav

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Kevin Fishburne
On 08/05/2011 12:53 PM, Benoît Minisini wrote: > Automatic comment insertion is done in revision #3972. Just tested it and it works extremely well. Nice job! -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 ---

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Benoît Minisini
> On 08/05/2011 12:02 PM, Ron wrote: > > It's not only eye candy, it's also a practical thing. > > If you have a bigger public project under svn, you don't want that the > > removal of one isolated space character on a empty line somewhere > > generates a commit change. > > > > So I remove them a

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Kevin Fishburne
On 08/05/2011 12:02 PM, Ron wrote: > It's not only eye candy, it's also a practical thing. > If you have a bigger public project under svn, you don't want that the > removal of one isolated space character on a empty line somewhere generates > a commit change. > > So I remove them all in my projec

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Ron
It's not only eye candy, it's also a practical thing. If you have a bigger public project under svn, you don't want that the removal of one isolated space character on a empty line somewhere generates a commit change. So I remove them all in my projects while writing code. Regards, Ron_2nd. 'Pr

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Stephen A. Bungay
'Pretty' is in the eye of the beholder. I write my code so it is easy to read and easy see the structure of the code, spaces and empty lines are therefore used extensively. Since the compiled code is not affected by them what's the problem? Ron wrote: >Empty lines yes, keep them! > >But Kevin

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Johny Provoost
Op 04-08-11 17:43, zachsmith...@gmail.com schreef: > On 8/4/2011 8:22 AM, Benoît Minisini wrote: >> Hi there, >> >> I'd like to add some options to the "making code pretty" feature in the IDE. > I think that an option to sort procedures by name would be helpful. > > ---

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Benoît Minisini
> Am Donnerstag, den 04.08.2011, 15:22 +0200 schrieb Benoît Minisini: > > Hi there, > > > > I'd like to add some options to the "making code pretty" feature in the > > IDE. > > > > But I have no idea what I could make optional, as I wrote the > > pretty-printer the way I wanted to see the code. >

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Jesus
El 04/08/11 21:38, Kevin Fishburne escribió: > On 08/04/2011 03:07 PM, Ron wrote: >> Empty lines yes, keep them! >> >> But Kevin and I mean remove spaces on empty lines. >> >> Looks like this: >> >>Dim sTest as string >> ...<- remove these >>sTest = "this is a test" >> >>' here above no

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Ron
Yes the lines must stay, but not the spaces, see the dots in the attachment... Regards, Ron_2nd. 2011/8/4 Fabien Bodard : > i alway keep a blank line after var declaration > > 2011/8/4 Ron : >>> That would be awesome. Also removing spaces on otherwise empty lines and >>> removing spaces at the end

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Kevin Fishburne
On 08/04/2011 03:07 PM, Ron wrote: > Empty lines yes, keep them! > > But Kevin and I mean remove spaces on empty lines. > > Looks like this: > >Dim sTest as string > ...<- remove these >sTest = "this is a test" > >' here above normal empty line, without spaces on it. Agreed. I do use e

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Fabien Bodard
i alway keep a blank line after var declaration 2011/8/4 Ron : >> That would be awesome. Also removing spaces on otherwise empty lines and >> removing spaces at the end of lines. > > Yes a +1 from me on this one too, I hate floating spaces, and always > have the urge to remove them. > > Regards, >

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Ron
> That would be awesome. Also removing spaces on otherwise empty lines and > removing spaces at the end of lines. Yes a +1 from me on this one too, I hate floating spaces, and always have the urge to remove them. Regards, Ron_2nd. 2011/8/4 Kevin Fishburne : > On 08/04/2011 11:43 AM, zachsmith...

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Ron
Empty lines yes, keep them! But Kevin and I mean remove spaces on empty lines. Looks like this: Dim sTest as string ... <- remove these sTest = "this is a test" ' here above normal empty line, without spaces on it. Regards, Ron_2nd. 2011/8/4 Fabien Bodard : > 2011/8/4 Kevin Fishburne :

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Fabien Bodard
2011/8/4 Kevin Fishburne : > On 08/04/2011 11:43 AM, zachsmith...@gmail.com wrote: >> On 8/4/2011 8:22 AM, Benoît Minisini wrote: >>> Hi there, >>> >>> I'd like to add some options to the "making code pretty" feature in the IDE. >> I think that an option to sort procedures by name would be helpful.

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Kevin Fishburne
On 08/04/2011 11:43 AM, zachsmith...@gmail.com wrote: > On 8/4/2011 8:22 AM, Benoît Minisini wrote: >> Hi there, >> >> I'd like to add some options to the "making code pretty" feature in the IDE. > I think that an option to sort procedures by name would be helpful. That would be awesome. Also remo

Re: [Gambas-user] Making code pretty

2011-08-04 Thread zachsmith022
On 8/4/2011 8:22 AM, Benoît Minisini wrote: > Hi there, > > I'd like to add some options to the "making code pretty" feature in the IDE. I think that an option to sort procedures by name would be helpful. -- BlackBerry® D

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Fabien Bodard
hey bruce have you trying the help comments with three " ' " if you place it before a function declaration it is shown in the autocompletion help when you want to use the function for example '''This public var is for store something Public pubVar1 as string '''help for the function '''this fu

Re: [Gambas-user] Making code pretty

2011-08-04 Thread Bruce Bruen
On 04/08/11 22:52, Benoît Minisini wrote: > Hi there, > > I'd like to add some options to the "making code pretty" feature in the IDE. > > But I have no idea what I could make optional, as I wrote the pretty-printer > the way I wanted to see the code. > > So if you have some suggestion, I am eager.

[Gambas-user] Making code pretty

2011-08-04 Thread Benoît Minisini
Hi there, I'd like to add some options to the "making code pretty" feature in the IDE. But I have no idea what I could make optional, as I wrote the pretty-printer the way I wanted to see the code. So if you have some suggestion, I am eager. -- Benoît Minisini ---