All tags/Diff
Line by line
A shopping list in one column - the old and the new line number, a sign, the line.
<?php
$v1 = "Milk\nEggs\nBread\nButter\nCoffee\nApples";
$v2 = "Milk\nEggs\nSourdough bread\nCoffee\nApples\nPears\nCheese";
?>
{diff $v1, $v2, lines, from='Monday', to='Friday'}
| 1 | 1 | Milk | |
| 2 | 2 | Eggs | |
| 3 | - |
|
|
| 3 | + | Sourdough bread | |
| 4 | - |
|
|
| 5 | 4 | Coffee | |
| 6 | 5 | Apples | |
| 6 | + | Pears | |
| 7 | + | Cheese |