Export your font-locked (colored) emacs buffer to html:
http://www.emacswiki.org/emacs/Htmlize
or
http://www.emacswiki.org/emacs/Htmlize
or
With the #+BEGIN_SRC tag you can automatically get an export of code set by the emacs-mode for that language, in addition to markup for other text.