I'm having problems with the way JCF is rearranging
indenting in multi-line expressions that have been
manually indented to communicate logical structure.
e.g. the transform of the manually indented expression
__argument := Copy(Argument,
__________________Pos(Argument,
______________________'My token'),
__________________Length(Argument));
to
__argument := Copy(Argument,
____Pos(Argument,
____'My token'),
____Length(Argument));
I think that JCF at least needs an option to disable the
rearrangement of multi-line expressions, and would
potentially benifit from being taught how to do this sort
of indenting automatically (although this could become
complicated)
I'd be keen to implement the disable feature immediately,
as it's absence is rendering an otherwise nice tool almost
unuseable for my purposes, and could take a look at a
smart expression indenter in the longer term to see if it's
realistic.
Cheers
Richard Lang
Logged In: YES
user_id=66544
I'm posting this here, since your email is bouncing
--
Hi Richard. You're welcome to try to implement this. The
formatting code that you would work with will probably
be in Indenter.pas, and then there would also be settings
and a UI for those settings in SetIndent.pas and
frClarifyIndent.pas.
It's best to work on the source from the zip of the latest
release, or to get CVS read access configured. That unit is
stable at present, and I can review and merge in changes
that you make.
> I'm only running Delphi 5 Pro on my home box, would this
cause problems with the JCF codebase?
>
If you can compile the correct JCL and JVCL, you should be
OK. It has been done, there is a thread on this in the
forums. The parsing and formatting engine doesn't depend on
any version-specific features, but some of the UI and file
interaction does.
Happy coding!
Regards
Anthony