It was rather puzzling to me why Redmine doesn't come with a Pastebin module and why there's no plugin for that.
One of the proposed "solutions" is to start a new wiki page, and put some <code> markup there. While this seems to work, it has some limitations a real pastebin component wouldn't suffer from. First thing that comes to mind is that you need a unique name to start …