Function: semantic--format-colorize-text

semantic--format-colorize-text is a byte-compiled function defined in format.el.gz.

Signature

(semantic--format-colorize-text TEXT FACE-CLASS)

Documentation

Apply onto TEXT a color associated with FACE-CLASS.

FACE-CLASS is a tag type found in semantic-format-face-alist. See that variable for details on adding new types.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/format.el.gz
;;; Coloring Functions
;;
(defun semantic--format-colorize-text (text face-class)
  "Apply onto TEXT a color associated with FACE-CLASS.
FACE-CLASS is a tag type found in `semantic-format-face-alist'.
See that variable for details on adding new types."
  (let ((face (cdr-safe (assoc face-class semantic-format-face-alist)))
        (newtext (concat text)))
    (put-text-property 0 (length text) 'face face newtext)
    newtext))