Expanding on experiment #4. This adds the abilty to remove code or add code. It also highlights removals red, and additions green for a few ms before and after the change.
Here’s the code:
joshnuss/svelte-codemirror-test@2e5afba
Here’s what it looks like: