Sign in Join

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

Mailing lists / lazarus / 2010-05

JCLFormater

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Lee Jenkins

Anyone know how (if possible) to tell the jcl formatter to put x number of spaces or tabs between "procedure" keyword in classes and the method signature?

Like this:

TMyClass = class
public
   procedure    Method1;
   procedure    method2;
end;
            ^--^--------- 4 spaces (or 2 tabs with my setup) between

It makes the class definitions more readable and I manually put the tabs there when creating the class. But if I run jcl formatter, it changes those spaces back to 1 and make it look well, ugly.

Thanks,

Warm Regards, Lee

Reply by email

Graeme Geldenhuys
to Lee Jenkins
Lee Jenkins wrote
Anyone know how (if possible) to tell the jcl formatter to put x number of spaces or tabs between "procedure" keyword in classes and the method signature?

+1
I manually align all my methods to the Create constructor. And yes, it is MUCH easier to read a class definition like that.

I'll download the latest JCF from SourceForge tomorrow. I think my version is a year or two old, so maybe they have some new settings to allow for that. It sure would be handy to automate that.

BTW:
I think the original JCF (not sure about the one included with Lazarus) has an option of formatting only selected text. So you should be able to only select the implementation section and format that. The JCF included in Lazarus IDE is still buggy and even with the exact same settings file, the Lazarus version formats different to the original JCF apps.

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

Reply by email