Format code in example