0

I need to store a diff of two SQL files in an org-mode note as a Literal Example. Part of that diff looks like this:

+INSERT INTO `foo` VALUES (64,99,1,4,64);

-INSERT INTO `bar` VALUES (1,1,'2022-04-26',1);
+INSERT INTO `bar` VALUES (1,1,'2022-05-22',1);

I could use begin_src diff to have the diff highlighted, easily seeing which lines have been added and removed. OR I could use begin_src sql to see the SQL highlighted, which is very useful for this particular case.

How can I configure either the note itself of org-mode to support begin_src diff sql such that I could easily seeing which lines have been added and removed, and also see the SQL highlighted?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.