0

I'm looking for a tool that can read and compare between two source code for instance.

private void Test()
{

int = 1;

}

is same as

private void Test()
{

    int = 1;

  }

But it is a different between

private void test()
{

int = 1;

}

and

private void Test()
{

    int = 1;

  }

Do you know a recommended software?

If possible, if would be greate to know a software in open source, freeware or commercial?

Thanks!

5
  • 3
    Please note int = 1 is not valid C/C++ and I don't think it is even valid java. Commented Jun 27, 2015 at 9:28
  • Is this supposed to be for arbitrary languages, or are you looking to support for specific languages (which might get you better answers)
    – Ira Baxter
    Commented Jun 28, 2015 at 23:49
  • If possible both of them Commented Jun 29, 2015 at 5:15
  • Do you just want to compare text files while ignoring whitespace differences? Commented Sep 27, 2015 at 9:14
  • both of them would be great Commented Sep 27, 2015 at 12:50

1 Answer 1

4

I would strongly recommend taking a look at Review Board, free and open source but with commercial support but it will not tell you that the example you give is different in the second case, your compiler and linker will however.

If, however, you are just looking to compare code files in a manner that ignores whitespace differences then many file compare utilities have an option to ignore whitespace differences.

Personally I like kdiff3 also free and open source which does have this option as well as many others but there are a lot of file compare utilities available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.