Next: Extracting source code, Previous: Editing source code, Up: Working With Source Code
It is possible to export the code of code blocks, the results
of code block evaluation, both the code and the results of code block
evaluation, or none. For most languages, the default exports code.
However, for some languages (e.g., ditaa) the default exports the
results of code block evaluation. For information on exporting code block
bodies, see Literal examples.
The :exports header argument can be used to specify export
behavior:
:exports code:exports results:exports both:exports noneIt is possible to inhibit the evaluation of code blocks during export.
Setting the org-export-babel-evaluate variable to nil will
ensure that no code blocks are evaluated as part of the export process. This
can be useful in situations where potentially untrusted Org mode files are
exported in an automated fashion, for example when Org mode is used as the
markup language for a wiki.