Formatting generated code