I am looking for something I can install on an Ubuntu server which will allow me to compare the content of PHP, Javascript, CSS, HTML and other plain text files in a more presentable and understandable way than the default diff
command.
Must have
- Side-by-side comparison of file contents indicating lines that are different from file 1 to file 2
- Run from the console (no desktop environment installed)
- Support plain text files
Would like to have
- Colours used to highlight changes
- Synchronised scrolling (lines of both files stay side-by-side and in view as you move through the comparison)
- Indication of changes within a line (eg. comparing the lines "a question" to "this is a question" would indicate/highlight that "this is" is the difference, as opposed to just indicating the whole line as having something different in it)
Optimally I would love something like WinMerge's file comparison feature:
for Ubuntu but I understand that not all features may be possible for a console-only app.