- How do I pose a Minimal Working Example?
- How do I plug code into a question?
Have a look at:
- What is a minimal working example? on minimalbeispiel.de
- How to make a “minimum example” in the TeX FAQ
- or the question on this meta site: I've just been asked to write a minimal example, what is that?
and for the second question:
right at the beginning.