SergioBenitez / rktpb

A pastebin that does just enough to be really useful.

Home Page:https://paste.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

drjaska opened this issue · comments

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 "$@"

This now renders nicely:

Screenshot 2024-04-17 at 3 42 55 PM