summaryrefslogtreecommitdiffhomepage
path: root/include/fmt-code
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-05 23:30:58 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-05 23:30:58 +0200
commitcfa35dcb2d332977e80a5811b6d42e9949bd4814 (patch)
tree370274078ded58e2a3bded288feaccfa01b2c1a6 /include/fmt-code
parent87dc34ab660fe91d3e77bde7548a9c6d05d28f03 (diff)
Use a macro to wrap code in <code> tags
Diffstat (limited to 'include/fmt-code')
-rwxr-xr-xinclude/fmt-code3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fmt-code b/include/fmt-code
new file mode 100755
index 0000000..9da3828
--- /dev/null
+++ b/include/fmt-code
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sed 's|.*|<code>&</code>|' "${2%/*}/$1"