fixed syntax highlighting, finally, I hope
This commit is contained in:
parent
808ebfdfa2
commit
d568f6138a
3 changed files with 3 additions and 5 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue