format code in term section