Function: org-html-htmlize-region-for-paste

org-html-htmlize-region-for-paste is a byte-compiled function defined in ox-html.el.gz.

Signature

(org-html-htmlize-region-for-paste BEG END)

Documentation

Convert the region between BEG and END to HTML, using htmlize.el.

This is much like htmlize-region-for-paste, only that it uses the settings define in the org-... variables.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-html.el.gz
;;;; Table

(defun org-html-htmlize-region-for-paste (beg end)
  "Convert the region between BEG and END to HTML, using htmlize.el.
This is much like `htmlize-region-for-paste', only that it uses
the settings define in the org-... variables."
  (let* ((htmlize-output-type org-html-htmlize-output-type)
	 (htmlize-css-name-prefix org-html-htmlize-font-prefix)
	 (htmlbuf (htmlize-region beg end)))
    (unwind-protect
	(with-current-buffer htmlbuf
	  (buffer-substring (plist-get htmlize-buffer-places 'content-start)
			    (plist-get htmlize-buffer-places 'content-end)))
      (kill-buffer htmlbuf))))