Next: , Previous: , Up: Working With Source Code   [Contents][Index]

14.7 Languages

Code blocks in the following languages are supported.

LanguageIdentifierLanguageIdentifier
AsymptoteasymptoteAwkawk
Emacs CalccalcCC
C++C++Clojureclojure
CSScssditaaditaa
GraphvizdotEmacs Lispemacs-lisp
gnuplotgnuplotHaskellhaskell
Javajava
JavascriptjsLaTeXlatex
LedgerledgerLisplisp
LilypondlilypondMATLABmatlab
MscgenmscgenObjective Camlocaml
OctaveoctaveOrg modeorg
OzozPerlperl
PlantumlplantumlPythonpython
RRRubyruby
SasssassSchemescheme
GNU Screenscreenshellsh
SQLsqlSQLitesqlite

Language-specific documentation is available for some languages. If available, it can be found at http://orgmode.org/worg/org-contrib/babel/languages.html.

The option org-babel-load-languages controls which languages are enabled for evaluation (by default only emacs-lisp is enabled). This variable can be set using the customization interface or by adding code like the following to your emacs configuration.

The following disables emacs-lisp evaluation and enables evaluation of R code blocks.

(org-babel-do-load-languages
 'org-babel-load-languages
 '((emacs-lisp . nil)
   (R . t)))

It is also possible to enable support for a language by loading the related elisp file with require.

The following adds support for evaluating clojure code blocks.

(require 'ob-clojure)