[Lazarus] Code auto-formatting

2012-11-21 Thread Krzysztof
Hi, Can't find this option in Source menu. Is exists any package which format code in editor? I just updated CodeTyphon from 2.90 to 3.00. In my old project I see that code formatting is wrong in random lines (too much or too less tabs / spaces) Regards. -- ___

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread Reinier Olislagers
On 21-11-2012 13:14, Krzysztof wrote: > Hi, > > Can't find this option in Source menu. Is exists any package which > format code in editor? I just updated CodeTyphon from 2.90 to 3.00. In > my old project I see that code formatting is wrong in random lines (too > much or too less tabs / spaces) So

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread Krzysztof
It has (but I had this package disabled). Thank you very much! BTW: 1. Can I somehow format only selected code? JCF made changes in whole editor. 2. JCF has problem if strings have special characters (for example polish "ę"). It throw strange exceptions. But this issue is easy to solve 2012/11/21

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread leledumbo
free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Code-auto-formatting-tp4027720p4027731.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.fr

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread Krzysztof
> No AFAIK, it can't use partial parsing to format the code since it may lose scope information thus can cause wrong formatting. Right, but it is possible, for example Eclipse or Netbeans has also "Fix indent" for correcting "tab" only for selected lines. Seems that it is looking for first parent