# Compare two text strings
show_diff("Hello\nWorld", "Hello\nR World")
# Compare two files
if (FALSE) {
show_diff("file1.txt", "file2.txt")
}
# Mix file and text
if (FALSE) {
show_diff("file.txt", "New content\nWith changes")
}
Run the code above in your browser using DataLab