Added new function to ColorCodes to apply formatting to tags