#!/bin/sh
#
# hex-color-html - highlights hexadecimal color sequences found in given files
# (or STDIN) using inline CSS and prints result as preformatted HTML to STDOUT
#
# usage: hex-color-html [FILE]...
#        cat FILE | hex-color-html

exec sed '1s/^/<pre>/; $s!$!</pre>!; s!#[[:xdigit:]]\{3,6\}\>!<b style="background:&">&</b>!g;' "$@"
