Expand readme and add screenshot

pull/25/head
Wilfred Hughes 2021-06-22 00:30:58 +07:00
parent c4cdf4b215
commit d7396073ee
2 changed files with 11 additions and 6 deletions

@ -1,11 +1,16 @@
# Difftastic # It's Difftastic!
A language-aware word-level diff. Difftastic is an experimental structured diff tool that compares files
based on their syntax.
``` ![screenshot](img/difftastic.png)
$ cargo run before.js after.js
$ cargo run --inline before.js after.js It is very much unfinished. It works reasonably on very parenthesised
``` data (lisps, JSON), it works sometimes on other languages with
sufficient parentheses (Rust, JS), and falls back to a line-oriented
diff otherwise.
See `config/syntax.toml` to see how languages are defined.
## Other Diff Techniques ## Other Diff Techniques

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB