How to add an .exs script to docs?

I’m sure you have your reasons but why the hard requirement to have it as an .exs? If it’s a sample file for people to run on their local machines, what’s wrong with putting it code fences in markdown? That way you get the copy-to-clipboard button and users can just paste into their editor.