convert ansi colour sequences to coloured span tags