Recently, I read in the help text for Code Writer about the common request by users for Code Writer to support compilation and execution of code. The following is how I would approach the problem though I do not know whether or not it would work.
I think this could be done by an enhancement to Code Writer where it would execute the text populated by the user. The text would be blank for distribution of Code Writer, yet the suggested things to be placed therein would be documented within the help text. This, hopefully, would suffice for Microsoft to distribute Code Writer in the fashion they do today.