Heiko Rupp offers an alternative to using a Wysiwig editor to create an eBook, using the markup language AsciiDoc. For manuals and guides, Wikis are an excellent way of organizing content. Yet, they often don't work as well for larger articles or books because individual content is spread across many pages and the reader has to click around. AsciiDoc is a text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, man pages and blogs. AsciiDoc files can be translated via the Asciidoctor toolchain to many formats including HTML, PDF, EPUB, DocBook and man page.
Code Filter. AsciiDoc comes with a simple minded code-filter for highlighting source code keywords and comments. You'll find this example in the AsciiDoc distribution ./filters subdirectory (read the ./filters/code-filter-readme.txt file for instructions). Markdown has some critical mass, and the grammar is smaller than that of Asciidoc. Markdown does have the drawback that if you want something more complicated you're out of luck, or into implementation-specific syntax that may not fit well whereas Asciidoc can scale up. There is a g+ post by Dan Allen comparing them and prefering Asciidoc.