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!

  • 3
    Please note int = 1 is not valid C/C++ and I don't think it is even valid java. – Steve Barnes Jun 27 '15 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 Jun 28 '15 at 23:49
  • If possible both of them – What'sUP Jun 29 '15 at 5:15
  • Do you just want to compare text files while ignoring whitespace differences? – RockPaperLizard Sep 27 '15 at 9:14
  • both of them would be great – What'sUP Sep 27 '15 at 12:50
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, privacy policy and cookie policy

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