Stack Overflow uses a flavor of Markdown, which while largely compatible with mainstream Markdown, can be a *little* bit different. However, if you want to get the basic text in, you are somewhat spoiled for choice when it comes to Markdown editors. I would toss a recommendation for [Simplenote](https://simplenote.com/) because it allows you to do this on any device you wish to. I could appreciate wanting a way to post directly from desktop, but that would beget some kind of desktop app for Stack Overflow, which currently doesn't exist — it's all in-browser.