From b58184c5097aa0fe450d97c262ba87a2dc500766 Mon Sep 17 00:00:00 2001 From: Tom MTT Date: Mon, 28 Nov 2022 14:30:50 +0100 Subject: [PATCH] feat(README.md): example usage with syntax highlighting --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 79e0e78..7059f2e 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,18 @@ $ curl https://bin.heimdall.pm/efgh ... ``` +If you want syntax highlighting on your pastes, you can use `bat`, a +cat clone with syntax highlighting features. Simply `curl` your paste +and pipe it to `bat` with the language used. + +```console +$ curl https://bin.heimdall.pm/efgh | bat -l c +/* + * feuille.c + * Main source file. +... +``` + Want to push the concept further? You can send encrypted files, too! You'll need `gpg` for this. `-c` means encryption using a password, `-ao tmp.pgp` means ASCII output to file `tmp.pgp`.