format paginate as inline code