Announcement

Collapse
No announcement yet.

Force lines to align by line number

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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).

  • #2
    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

    Comment


    • #3
      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.

      Comment


      • #4
        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

        Comment

        Working...
        X