fixed syntax highlighting, finally, I hope

This commit is contained in:
Alexander 2025-06-16 22:00:54 -04:00
parent 808ebfdfa2
commit d568f6138a
3 changed files with 3 additions and 5 deletions

View file

@ -1,9 +1,7 @@
#! /usr/bin/env bash
if [[ $# -lt 1 ]] || ! pygmentize -L lexers | grep -qw "$1"; then
printf "<code>"
cat
printf "</code>"
recode ascii..html
else
pygmentize -l $1 -f html | head -c -13 | awk -F '<pre>' '{print $NF}'
fi