Format sample code in user guide.