format style for codes