Visibility on code changes in history view

As I evolve my website, sometimes my changes are mostly on the back end. If I make a mistake and want to revert, or if I want to recover a code snippet that I had previously deleted, the history view doesn’t help because it only shows you the snapshot of the visible front-end. I would like to see what changed in the code.