Prints code to text file(prepare for printing). Remove unnecessary indent and spaces.