handles empty code color (shouldn't be allowed!)