Next:Editing Source Code, Previous:Extracting Source Code, Up:Working with Source Code [Contents][Index]
Code blocks in dozens of languages are supported. See Worg websiteforlanguage specific documentation.
By default, only Emacs Lisp is enabled for evaluation. To enable ordisable other languages, customize theorg-babel-load-languagesvariable either through the Emacs customization interface, or byadding code to the init file as shown next.
In this example, evaluation is disabled for Emacs Lisp, and enabledfor R.
(org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . nil) (R . t)))
Note that this is not the only way to enable a language. Org alsoenables languages when loaded withrequire statement. For example,the following enables execution of Clojure code blocks:
(require 'ob-clojure)