Format REPL output