Formatting to code