Hey, I could use some input on which version looks best!
I am trying to improve the readability of multi-line changes and have to consider. Here are the three candidates I am taking into consideration right now - both on a bright and dark terminal scheme.
- A - only bold
- B - black on light colored background
- C - bold on dark colored background
I put my thoughts below each pair of screenshots. You are welcome to add your remarks in a comment.
A - only bold
- puts focus on visible characters
- whitespace characters are not highlighted
B - black on light colored background
- I feel there is a stronger focus on whitespace characters than on visible characters
C - bold on dark colored background
- I feel there is a balanced focus on both whitespace and visible characters
Want to try it in your terminal?
Here is the bash code to reproduce all three variants at once in your shell:
echo -e "\n\e[1m# A - only bold\e[0m\n\n## removed ##\n 0,\n 0,\n 128,\n## added ##\n 84,\n 248,\n## diff ##\n\e[31m<\e[0m\e[31m \e[0m\e[1;31m0\e[0m\e[31m,\e[0m\n\e[31m<\e[0m\e[31m \e[0m\e[1;31m0,\e[0m\n\e[1;31m<\e[0m\e[1;31m 1\e[0m\e[31m2\e[0m\e[31m8,\e[0m\n\e[32m>\e[0m\e[32m \e[0m\e[1;32m84\e[0m\e[32m,\e[0m\n\e[32m>\e[0m\e[32m \e[0m\e[32m2\e[0m\e[1;32m4\e[0m\e[32m8,\e[0m\n\n\e[1m# B - black on light colored background\e[0m\n\n## removed ##\n 0,\n 0,\n 128,\n## added ##\n 84,\n 248,\n## diff ##\n\e[31m<\e[0m\e[31m \e[0m\e[41;30m0\e[0m\e[31m,\e[0m\n\e[31m<\e[0m\e[31m \e[0m\e[41;30m0,\e[0m\n\e[1;31m<\e[0m\e[41;30m 1\e[0m\e[31m2\e[0m\e[31m8,\e[0m\n\e[32m>\e[0m\e[32m \e[0m\e[42;30m84\e[0m\e[32m,\e[0m\n\e[32m>\e[0m\e[32m \e[0m\e[32m2\e[0m\e[42;30m4\e[0m\e[32m8,\e[0m\n\n\e[1m# C - bold on dark colored background\e[0m\n\n## removed ##\n 0,\n 0,\n 128,\n## added ##\n 84,\n 248,\n## diff ##\n\e[31m<\e[0m\e[31m \e[0m\e[1;48;5;52;31m0\e[0m\e[31m,\e[0m\n\e[31m<\e[0m\e[31m \e[0m\e[1;48;5;52;31m0,\e[0m\n\e[1;31m<\e[0m\e[1;48;5;52;31m 1\e[0m\e[31m2\e[0m\e[31m8,\e[0m\n\e[32m>\e[0m\e[32m \e[0m\e[1;48;5;22;32m84\e[0m\e[32m,\e[0m\n\e[32m>\e[0m\e[32m \e[0m\e[32m2\e[0m\e[1;48;5;22;32m4\e[0m\e[32m8,\e[0m\n"