Next: Evaluating code blocks, Previous: Exporting code blocks, Up: Working With Source Code
Creating pure source code files by extracting code from source blocks is
referred to as “tangling”—a term adopted from the literate programming
community. During “tangling” of code blocks their bodies are expanded
using org-babel-expand-src-block which can expand both variable and
“noweb” style references (see Noweb reference syntax).
:tangle no:tangle yes:tangle filenameorg-babel-tangleorg-babel-tangle-fileorg-babel-post-tangle-hookorg-babel-tangle.
Example applications could include post-processing, compilation or evaluation
of tangled code files.