fix colorcodestohtml to pass the entire color

to createspan