Variable: org-src-block-faces
org-src-block-faces is a customizable variable defined in
org-src.el.gz.
Value
nil
Documentation
Alist of faces to be used for source-block.
Each element is a cell of the format
("language" FACE)
Where FACE is either a defined face or an anonymous face. Empty language string refers to source blocks without specified language.
For instance, the following would color the background of emacs-lisp source blocks and python source blocks in purple and green, respectability.
(setq org-src-block-faces
'(("emacs-lisp" (:background "#EEE2FF"))
("python" (:background "#e5ffb8"))))
This variable was added, or its default value changed, in Org version
9.0.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defcustom org-src-block-faces nil
"Alist of faces to be used for source-block.
Each element is a cell of the format
(\"language\" FACE)
Where FACE is either a defined face or an anonymous face. Empty
language string refers to source blocks without specified language.
For instance, the following would color the background of
emacs-lisp source blocks and python source blocks in purple and
green, respectability.
(setq org-src-block-faces
\\='((\"emacs-lisp\" (:background \"#EEE2FF\"))
(\"python\" (:background \"#e5ffb8\"))))"
:group 'org-edit-structure
:type '(repeat (list (string :tag "language")
(choice
(face :tag "Face")
(sexp :tag "Anonymous face"))))
:package-version '(Org . "9.0"))