forked from mirrors/org-mode
Working on syntax section
This commit is contained in:
parent
ba5e0f06a1
commit
52fd87ad3c
|
@ -36,27 +36,32 @@ Using code blocks in table formulas
|
||||||
The basic syntax of source code blocks in Org-babel is as follows:
|
The basic syntax of source code blocks in Org-babel is as follows:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
#+begin_src language header-arguments
|
#+begin_src language header-arguments switches
|
||||||
body
|
body
|
||||||
#+end_src
|
#+end_src
|
||||||
@end example
|
@end example
|
||||||
- language :: The language of the code in the source code block. Valid
|
@table
|
||||||
values must be members of =org-babel-interpreters=.
|
@item language
|
||||||
- header-arguments :: Header arguments control many facets of the
|
The language of the code in the source code block. Valid values must
|
||||||
evaluation and output of source code blocks. See the [[header-arguments][Header
|
be members of =org-babel-interpreters=.
|
||||||
Arguments]] section for a complete review of available header
|
@item header-arguments
|
||||||
arguments.
|
Header arguments control many facets of the evaluation and output of
|
||||||
- body :: The source code to be evaluated. An important key-binding
|
source code blocks. See the [[header-arguments][Header Arguments]]
|
||||||
is C-c '. This calls =org-edit-src-code=, a function that brings
|
section for a complete review of available header arguments.
|
||||||
up an edit buffer containing the code using the Emacs major mode
|
@item switches
|
||||||
appropriate to the language. You can edit your source code block
|
FIXME link/relocate switches discussion in ``Literal examples'' section
|
||||||
as you regularly would in Emacs.
|
@item body
|
||||||
|
The source code to be evaluated. An important key-binding is C-c '.
|
||||||
|
This calls =org-edit-src-code=, a function that brings up an edit
|
||||||
|
buffer containing the code using the Emacs major mode appropriate to
|
||||||
|
the language. You can edit your source code block as you regularly
|
||||||
|
would in Emacs.
|
||||||
|
@end table
|
||||||
This syntax can be expanded by naming the source code block.
|
This syntax can be expanded by naming the source code block.
|
||||||
|
|
||||||
@example
|
@example
|
||||||
#+sourcename
|
#+sourcename
|
||||||
#+begin_src language header-arguments
|
#+begin_src language header-arguments switches
|
||||||
body
|
body
|
||||||
#+end_src
|
#+end_src
|
||||||
@end example
|
@end example
|
||||||
|
|
Loading…
Reference in a new issue