SergioBenitez / rktpb

A pastebin that does just enough to be really useful.
https://paste.rs
GNU Affero General Public License v3.0
15 stars 1 forks source link

Feature Request: -red and +green color highlighting for diff/patch pastes #1

Closed drjaska closed 6 months ago

drjaska commented 10 months ago

Examples with GitHub's text formatting:

(setup)

echo "a" > a.txt
echo "b" > b.txt
diff a.txt b.txt

diff output from diff:

1c1
< a
---
> b

git diff:

diff --git a/bin/youtube-dl b/bin/youtube-dl
index 0096a5c..83f7447 100755
--- a/bin/youtube-dl
+++ b/bin/youtube-dl
@@ -2,4 +2,4 @@

 set -eu

-yt-dlp "$@"
+yt-dlp --sponsorblock-remove default "$@"
SergioBenitez commented 6 months ago

This now renders nicely:

Screenshot 2024-04-17 at 3 42 55 PM