Pretty printer for different file formats