summaryrefslogtreecommitdiff
path: root/files/filters/highlight.sh
blob: 56fc03051789c7771dc710c8248bb1ffec6181b1 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

filename="$1"
extension="${filename##*.}"

exec highlight --inline-css --force --fragment \
	--out-format=xhtml \
	--syntax="$extension"