Formats code