Variable: org-babel-exp-code-template

org-babel-exp-code-template is a customizable variable defined in ob-exp.el.gz.

Value

"#+begin_src %lang%switches%flags\n%body\n#+end_src"

Documentation

Template used to export the body of code blocks.

This template may be customized to include additional information such as the code block name, or the values of particular header arguments. The template is filled out using org-fill-template, and the following %keys may be used.

 lang ------ the language of the code block
 name ------ the name of the code block
 body ------ the body of the code block
 switches -- the switches associated to the code block
 flags ----- the flags passed to the code block

In addition to the keys mentioned above, every header argument defined for the code block may be used as a key and will be replaced with its value.

This variable was added, or its default value changed, in Org version
9.6.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-exp.el.gz
(defcustom org-babel-exp-code-template
  "#+begin_src %lang%switches%flags\n%body\n#+end_src"
  "Template used to export the body of code blocks.
This template may be customized to include additional information
such as the code block name, or the values of particular header
arguments.  The template is filled out using `org-fill-template',
and the following %keys may be used.

 lang ------ the language of the code block
 name ------ the name of the code block
 body ------ the body of the code block
 switches -- the switches associated to the code block
 flags ----- the flags passed to the code block

In addition to the keys mentioned above, every header argument
defined for the code block may be used as a key and will be
replaced with its value."
  :group 'org-babel
  :type 'string
  :package-version '(Org . "9.6"))