|
@@ -14900,21 +14900,20 @@ By default, Org will ask before returning to an open edit buffer. Set this
|
|
|
variable to @code{nil} to switch without asking.
|
|
|
@end table
|
|
|
|
|
|
-To turn on native code fontification in the @emph{Org} buffer, configure the
|
|
|
-variable @code{org-src-fontify-natively}. You can also change the appearance
|
|
|
-of source blocks by customizing the @code{org-block} face or for specific
|
|
|
-languages, by defining @code{org-block-LANGUAGE} faces. The following
|
|
|
-example shades the background of ``ordinary'' blocks while allowing Emacs
|
|
|
-Lisp source blocks to have a special color.
|
|
|
+To turn on native code fontification in the @emph{Org} buffer, set the
|
|
|
+variable @code{org-src-fontify-natively} to non-@code{nil}. You can also
|
|
|
+change the appearance of source blocks in general by customizing the
|
|
|
+@code{org-block} face or @code{org-src-block-faces} for specific languages.
|
|
|
+The following example shades the background of ``ordinary'' blocks while
|
|
|
+allowing Emacs Lisp and Python source blocks to have a separate colors.
|
|
|
@lisp
|
|
|
(require 'color)
|
|
|
(set-face-attribute 'org-block nil :background
|
|
|
(color-darken-name
|
|
|
(face-attribute 'default :background) 3))
|
|
|
|
|
|
-(defface org-block-emacs-lisp
|
|
|
- '((t (:background "#EEE2FF")))
|
|
|
- "Face for Emacs Lisp src blocks")
|
|
|
+(setq org-src-block-faces '(("emacs-lisp" (:background "#EEE2FF"))
|
|
|
+ ("python" (:background "#E5FFB8"))))
|
|
|
@end lisp
|
|
|
|
|
|
@node Exporting code blocks
|