Eric Schulte <schulte.e...@gmail.com> writes: > Oleh <ohwoeo...@gmail.com> writes: > >>> >>> Think of code blocks as macros with optional interactive expansion. If >>> you don't execute the code block you need not ever see the results, >>> however with an additional ":exports results" header argument the code >>> block will be executed and replaced with it's results on export. >>> >>> Take a look at the (info "(org) Working With Source Code") portion of >>> the Org-mode manual. >>> >> >> Thanks, I'll look there. >> Is it possible to have a code block that evals to a string wrapped in >> #+BEGIN_HTML, #+END_HTML and be treated as a HTML block on export? >> > > Yes, see (info "(org) results").
As Eric suggested, the simplest is something like ":results value html" or ":results output html". But if you need something more involved, please keep reading. I recently had to use something similar, where the result of a code block would need to be wrapped in #+begin_src / #+end_src. After much help from this list, I ended up with this solution: http://orgmode.org/worg/org-hacks.html#sec-1-10-4 You can ignore / replace the "fetchsrc" bit with the code you want to evaluate, and adapt the "wrap-coq" to your setting. Alan