Code fragment formatting