Is it possible to check whether two cells in a Mathematica notebook have exactly the same code? I'm comparing two bits of code that might be the same, but rather than eye-checking, I wonder if there is an inbuilt tool to do that (and ideally, to even highlight the differences).
The solution I found was to simply turn both cells into strings by using " " and simply testing if they're the same with ==, but I know about Cells and SelectedCells so perhaps there's a better way to do this.
Any ideas?
Edit: I've found this post in the meantime, regarding strings, but I wonder if there's a nicer way of doing it rather than resort to strings.