Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

Feature Request with code tools

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reenen Laurie

Hi everyone,

I now spent a lot of time customizing my "spaces" after and before (on Environment - > Code Tools Options -> Spaces), just the way I like it.

Now I want a feature to "Select" a piece of code, and then "Apply" the current *code tool options *on the selected code. Because all my old code doesn't look as neat.

Obviously if you are working on SVN, and your options differ from other developers, you shouldn't be applying it to all the code...

Does this sound like a not so hard to implement feature request? I am guessing that the code used to alter the "example" source code in the options form should be able to be applied on the "selected" code in the implementation of the feature. But I have recently tried to dig around in the source editor, and the implementation is quite above my programming skills.

Regards,
-Reenen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080829/3a74f06d/attachment.html

Reply by email

Graeme Geldenhuys
to Reenen Laurie

2008/8/29 Reenen Laurie :

Hi everyone, I now spent a lot of time customizing my "spaces" after and before (on Environment - > Code Tools Options -> Spaces), just the way I like it.

I've done the same, but found a easier solution in the end....

Now I want a feature to "Select" a piece of code, and then "Apply" the current code tool options on the selected code. Because all my old code doesn't look as neat.

I've asked for this as well, but I think something like this will only appear once the Jedi Code Formatter is integrated into the IDE.

BTW:
That is my 'easier' solution. I setup the IDE to format the code as close as possible to what I like - it doesn't have to be perfect. I then routinely run Jedi Code Formatter (JCF) over my units to fix up any formatting. So time back, I went step-by-step through all the JCF options (there are plenty) to create a perfect profile for my code. JCF is pretty awesome, and works perfectly under Linux with WINE, even though it's a Windows application. JCF is available on SourceForge.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Reenen Laurie
to Graeme Geldenhuys

Thanks, that sounds like a great solution!

Regards,
-Reenen

On Fri, Aug 29, 2008 at 10:05 AM, Graeme Geldenhuys <

Show quoted text 40 lines
wrote: 2008/8/29 Reenen Laurie : > Hi everyone, > > I now spent a lot of time customizing my "spaces" after and before (on > Environment - > Code Tools Options -> Spaces), just the way I like it. I've done the same, but found a easier solution in the end.... > Now I want a feature to "Select" a piece of code, and then "Apply" the > current code tool options on the selected code. Because all my old code > doesn't look as neat. I've asked for this as well, but I think something like this will only appear once the Jedi Code Formatter is integrated into the IDE. BTW: That is my 'easier' solution. I setup the IDE to format the code as close as possible to what I like - it doesn't have to be perfect. I then routinely run Jedi Code Formatter (JCF) over my units to fix up any formatting. So time back, I went step-by-step through all the JCF options (there are plenty) to create a perfect profile for my code. JCF is pretty awesome, and works perfectly under Linux with WINE, even though it's a Windows application. JCF is available on SourceForge. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080829/01bd038b/attachment.html

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys: 2008/8/29 Reenen Laurie : I've done the same, but found a easier solution in the end....…
Graeme Geldenhuys wrote 24 lines
2008/8/29 Reenen Laurie : > Hi everyone, > > I now spent a lot of time customizing my "spaces" after and before (on > Environment - > Code Tools Options -> Spaces), just the way I like it. I've done the same, but found a easier solution in the end.... > Now I want a feature to "Select" a piece of code, and then "Apply" the > current code tool options on the selected code. Because all my old code > doesn't look as neat. I've asked for this as well, but I think something like this will only appear once the Jedi Code Formatter is integrated into the IDE. BTW: That is my 'easier' solution. I setup the IDE to format the code as close as possible to what I like - it doesn't have to be perfect. I then routinely run Jedi Code Formatter (JCF) over my units to fix up any formatting. So time back, I went step-by-step through all the JCF options (there are plenty) to create a perfect profile for my code. JCF is pretty awesome, and works perfectly under Linux with WINE, even though it's a Windows application. JCF is available on SourceForge.

If the source is available, why don't you recompile it for Linux ?

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
If the source is available, why don't you recompile it for Linux ?

please read the comments in the feature request.
http://bugs.freepascal.org/view.php?id=11933

JCF relies on many Jedi Code Library (JCL) features and functions. Jedi Code Formatter now has the correct license to integrate with Lazarus, but JCL doesn't. Plus, I have no idea how compilable Jedi Code Library is with FPC.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Marco van de Voort
to Graeme Geldenhuys
Graeme Geldenhuys wrote 11 lines
On Fri, Aug 29, 2008 at 10:30 AM, Michael Van Canneyt > If the source is available, why don't you recompile it for Linux ? > please read the comments in the feature request. http://bugs.freepascal.org/view.php?id=11933 JCF relies on many Jedi Code Library (JCL) features and functions. Jedi Code Formatter now has the correct license to integrate with Lazarus, but JCL doesn't. Plus, I have no idea how compilable Jedi Code Library is with FPC.

The general case:

- Quite FPC compatible, except for some interface problems in jclscheduler and the fact that jclpeimage combines all kinds of compiler specific parts (like poking in debug info)
- ... but mostly win32/x86 only. Parts _maybe_ win64.

That library uses every dirty trick in the book.

Start identifying what JCF uses exactly from it, and try to substitute (or wrap) parts of it.

Reply by email