Function: htmlize-css-text-markup
htmlize-css-text-markup is a byte-compiled function defined in
htmlize.el.
Signature
(htmlize-css-text-markup FSTRUCT-LIST BUFFER)
Source Code
;; Defined in ~/.emacs.d/elpa/htmlize-20250724.1703/htmlize.el
(defun htmlize-css-text-markup (fstruct-list buffer)
;; Open the markup needed to insert text colored with FACES into
;; BUFFER. Return the function that closes the markup.
;; In CSS mode, this is easy: just nest the text in one <span
;; class=...> tag for each face in FSTRUCT-LIST.
(dolist (fstruct fstruct-list)
(princ "<span class=\"" buffer)
(princ (htmlize-fstruct-css-name fstruct) buffer)
(princ "\">" buffer))
(lambda ()
(dolist (_fstruct fstruct-list)
(princ "</span>" buffer))))