Formats the code