PDA

View Full Version : Text files with moved ranges


15-Jul-2006, 03:46 AM
Hi.
I often have the situation that I must compare text files where just several ranges of subsequent lines are moved to another position in the same file. Is there a possibility to let BC recognize that it's the same text (only at another line) ?
Thanks.

Chris
17-Jul-2006, 03:09 PM
BC's comparison algorithm compares lines of text in order, so if the text is moved within the main portion of text, it might not handle the change. If text is just inserted to move it further down in the file, it might handle the difference.

If text isn't aligned the way you want, there are a few options to handle this.

If the text is out of order, you can sort text on a line by line basis using the Sort rule from: http://www.scootersoftware.com/download.php?c=kb_morerules

If the text is in order, but misaligned, you can force alignment by right clicking on a line and selecting "Align Manually". Right click on the corresponding line on the other side and select "Align Manually" to force the alignment.

You can also adjust alignment options in the Alignment tab of Tools|Edit Current Rules. For full details on the options in that tab, click Help in the Alignment tab.