Forum > General

Exclude Jedi Code Formatter on code section

(1/1)

rpetges:
Hi,

I use the built-in Code Formatter to beautify my source code and would like to exclude a part of my source code from formatting.

Is there any directive I can use in source code to instruct Jedi Code Formatter to not process a part of the source code ?

Like $formatcode=off at the beginning of the block and $formatcode=on at the end of the section ?

I searched in the forums but did not find anything.

Romain

Thaddy:
AFAIK: NO it's all or nothing. In my case nothing since it makes too many mistakes on new syntax. Unless it gets maintained it becomes less and less useful with every new release of FPC.

rpetges:
Thanks for the confirmation ... I think, I will switch to a 'manual' code formatting  :D

BrunoK:
@Romain

What I do when I want to clarify procedure structures is :

1 Create a new unit. (File->New->Unit)
2 Select/copy syntactically coherent full procedure/function block(s) from the source you are working on and you want to JEDI CF (From procedure SomeProc(etc... to the matching end;)
3 Paste selection it in the unit (1) at the correct position, that is in implementation for complete procedure/function(s).
4 Ctrl-D (JCF) on the unit (1).
5 If worked, paste back reformatted code to the working unit.
6 Close and discard unit created in (1)

Navigation

[0] Message Index

Go to full version