Can somebody tell me how to highlight common substrings between two buffers in Emacs?
I can write a script to do that but was wondering if there was a built-in macro in Emacs by which I can do this.
Thanks,
Raj
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re willing to accept the converse—seeing highlighted differences rather than similarities—then the ediff package will handle this for you. Try the function
ediff-buffers. You can run it interactively withand specify the first buffer to compare, then the second. The first one will wind up on the top and the second one on the bottom, assuming you use the default layout with the two buffers shown split vertically.