pages/syntax_wrapper.sh
2025-06-21 10:15:17 -04:00

7 lines
No EOL
187 B
Bash
Executable file

#! /usr/bin/env sh
if [ $# -lt 1 ] || ! pygmentize -L lexers | grep -qw "$1"; then
recode utf8..html
else
pygmentize -l $1 -f html | head -c -13 | awk -F '<pre>' '{print $NF}'
fi