I'm feeling reasonably happy with the light and dark styles of difftastic now: there's a reasonable amount of contrast on both sides.
I'm now using ANSI bright colours for the dark theme and it works pretty well. I had to give up on cyan as it's too pale on light backgrounds.
miniblog.
Related Posts
I'm experimenting with a patch-style display format for difftastic.
What do you think? Do the colours work? What about the last example, where there's only whitespace changes and the syntactic diff has nothing to highlight?
I'm surprised that there are no ML tools for automatic log highlighting. Logs often have repetitive patterns that lend themselves to distinct colours.
Do any such tools exist?
@krinkle@mastodon.technology I don't know of anyone using difftastic by default, including me! (I use it >50% of the time though.)
I toyed with background colours but I didn't find anything that I really liked. Contrast is hard, and depends on the user's theme.
Background colours look bad with syntax highlighting (e.g. red background with blue comment text).
It also looked silly due to ignoring whitespace between symbols.
It's an interesting space and I'm still experimenting :)


