format code samples