add an icon at the right top corner of any code, (iex, elixir), (and maybe bash) that copies the real code, removing outputs, and prompts, so it can be pasted directly into the shell.
some examples of how frustrating this is:
http://elixir-lang.org/getting-started/mix-otp/genevent.html