org-babel-tangle

org-babel-tangle is an interactive autoloaded compiled Lisp function in `ob-tangle.el'.


(org-babel-tangle &optional ARG TARGET-FILE LANG)

Write code blocks to source-specific files.
Extract the bodies of all source code blocks from the current
file into their own source-specific files.
With one universal prefix argument, only tangle the block at point.
When two universal prefix arguments, only tangle blocks for the
tangle file of the block at point.
Optional argument TARGET-FILE can be used to specify a default
export file for all source blocks. Optional argument LANG can be
used to limit the exported source code blocks by language.