#!/bin/sh

vim +"run! syntax/2html.vim" +"wq" +"q" $1

# Term colours hack.
# See bugs/colour_stderr/termcolours for combinations
# Essentially if you want yellow for e.g. then that
# must be bold also. gnome-terminal has a facility to
# disable bold text (but it retains the lighter colour),
# but that is not applicable for the html, so just remove
# the bold attributes and be happy with the darker colour
# (which I think is selected to be half way between light
#  and dark actually).
sed 's/<b>//g ; s/<\/b>//g' > $$.html < $1.html #I've bold disabled in term
rm $1.html
mv $$.html $1.html
