Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (14 sloc) 570 Bytes
#!/bin/sh
# Preprocess for LESS, makes it highlight syntax
# Requires Pygments
case "$1" in
# add all extensions you want to handle here
*.awk|*.groff|*.java|*.js|*.m4|*.php|*.pl|*.pm|*.pod|*.sh|\
*.ad[asb]|*.asm|*.inc|*.[ch]|*.[ch]pp|*.[ch]xx|*.cc|*.hh|\
*.lsp|*.l|*.pas|*.p|*.xml|*.xps|*.xsl|*.axp|*.ppd|*.pov|\
*.diff|*.patch|*.py|*.rb|*.sql|*.ebuild|*.eclass|*.rs|*.json|*.go|*.pp)
pygmentize "$1" ;;
*.bzl|*BUILD|*WORKSPACE) pygmentize -l python "$1";;
*.yaml) pygmentize -l yaml -fterminal16m -Ostyle=monokai "$1";;
*) exit 0;;
esac