Go Back   Scooter Forums > Beyond Compare 2 Discussion > Beyond Help
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 31-Jul-2012, 02:49 PM
rdoro rdoro is offline
New User
 
Join Date: Jul 2012
Posts: 2
Default Force lines to align by line number

I have two files in which I know each line in one file must match the same line in the other file (i.e. line 25 in the first file should match line 25 in the second).

I want the lines to line up by line numbers, but because of some of the differences, the lines are being misaligned (i.e. line 25 in the first file is being aligned with line 26 in the second).

Is there a way I can align all the lines by line number?
Doing it manually, line by line, is not the answer I'm looking for (these files are several hundred lines long, with several dozen misalignments).
Reply With Quote
  #2  
Old 31-Jul-2012, 04:07 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,434
Default

Hello,

Go to the Text Compare's Session menu -> Session Settings, Alignment tab. Here you can customize various alignment settings or set it to "Unaligned", which would not perform any alignment and would simply set the files side by side (aligning them by line number).

This option can apply for the current view, or you can set it as a default behavior on the Home Screen, in the Edit session defaults folder, select Text Compare, Alignment tab.
__________________
Aaron P Scooter Software
Reply With Quote
  #3  
Old 01-Aug-2012, 04:14 PM
rdoro rdoro is offline
New User
 
Join Date: Jul 2012
Posts: 2
Default

There is no Session menu when I'm comparing files. This menu only shows up when I compare folders. I believe "File Viewer" is being used when comparing files.
Reply With Quote
  #4  
Old 01-Aug-2012, 04:37 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,434
Default

Hello,

Sorry, I did not notice you had posted in the BC2 forum. For BC2, you will need to use the Tools menu -> Options, Rules, edit your current rule, and in the Alignment tab set the Skew Tolerance to "1". How does this work for you?
__________________
Aaron P Scooter Software
Reply With Quote
Reply

Tags
align, line number

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:29 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.