Formatting all the output and error blocks