7 lines
No EOL
173 B
Bash
Executable file
7 lines
No EOL
173 B
Bash
Executable file
#! /usr/bin/env sh
|
|
|
|
if [ $# -lt 1 ] || ! grep -qw "$1" lexers.out; then
|
|
recode utf8..html
|
|
else
|
|
pygmentize -l $1 -f html | awk -F '<pre>' '{print substr($NF, 14)}'
|
|
fi |