This is the official manual for the latest Org-mode release.

Table of Contents

Next: , Previous: Library of Babel, Up: Working with source code

14.7 Languages

Org supports the following languages for the code blocks:

Language Identifier Language Identifier
Asymptote asymptote Awk awk
C C C++ C++
Clojure clojure CSS css
D d ditaa ditaa
Graphviz dot Emacs Calc calc
Emacs Lisp emacs-lisp Fortran fortran
gnuplot gnuplot Haskell haskell
Java java Javascript js
LaTeX latex Ledger ledger
Lisp lisp Lilypond lilypond
Lua lua MATLAB matlab
Mscgen mscgen Objective Caml ocaml
Octave octave Org mode org
Oz oz Perl perl
Plantuml plantuml Processing.js processing
Python python R R
Ruby ruby Sass sass
Scheme scheme GNU Screen screen
Sed sed shell sh
SQL sql SQLite sqlite

Additional documentation for some languages are at

By default, emacs-lisp is enabled for evaluation. To enable or disable other languages, customize the org-babel-load-languages variable. Use the Emacs customization interface, or add code to the init file as shown next:

In this example, evaluation is disabled for emacs-lisp, and enabled for R.

      '((emacs-lisp . nil)
        (R . t)))

A language may also be enabled when loading with require. This example below enables execution of clojure code blocks:

     (require 'ob-clojure)