How to print the UR code?

I need to read the code on paper to debug. The UR touch screen is killing me.
How can I print out the code?

You can export it as a .txt file

Hate to revive such an old thread, but how to do this? simply exporting the file as .TXT gives unreadable nonsense

When you save a program it automatically saves the .urp (program file) .script file (actual robot execution code) and the .txt file (text version of the urp file). So you just open the .txt version. If you’re trying to open the .urp file, you actually have to unzip it. It’s an archived file. But this will show the the raw xml of the program, including all the underlying datamodel manipulation, which you may or may not care about.