问题
I want an editor just like Stack Overflow where I can write code(should look like code) as well as image and corresponding HTML should be generated.

回答1:
EnhPageDown is an Enhanced version of the Stackoverflow PageDown Editor. Also have a look at its demo
回答2:
Stackoverflow uses Markdown for text formatting. You can use an editor like this:
http://www.aloha-editor.org/
回答3:
I don't know of a offline program for this but you can certainly use an online html editor like: Online Html editor or for a more fancy, JSFiddle
回答4:
What your looking for is a what you see is what you get editor (WHSIWYG). An editor like this allows you to type in words and paste in picture, and the HTML will be generated from that.
There are a ton of these out there, a simple google search turns up hundreds. Dreamweaver is one that is pretty well known.
Be aware, these editors are great at speeding up workflow, but any developer worth their salt can hand code. It's nice to be able to take shortcuts and work faster with editors like this, but I would suggest learning actual HTML and understanding how the editor works before using one.
回答5:
I find my ans As I told I want show the code which should looks like code http://alexgorbatchev.com/SyntaxHighlighter/
best site for this
来源:https://stackoverflow.com/questions/17247970/html-editor-like-stack-overflow