Next: Syntactic Font Lock, Previous: Precalculated Fontification, Up: Font Lock Mode
Font Lock mode can highlight using any face, but Emacs defines several faces specifically for Font Lock to use to highlight text. These Font Lock faces are listed below. They can also be used by major modes for syntactic highlighting outside of Font Lock mode (see Major Mode Conventions).
Each of these symbols is both a face name, and a variable whose
default value is the symbol itself. Thus, the default value of
font-lock-comment-face
is font-lock-comment-face
.
The faces are listed with descriptions of their typical usage, and in order of greater to lesser prominence. If a mode's syntactic categories do not fit well with the usage descriptions, the faces can be assigned using the ordering as a guide.
font-lock-warning-face
font-lock-function-name-face
font-lock-variable-name-face
font-lock-keyword-face
font-lock-comment-face
font-lock-comment-delimiter-face
font-lock-comment-face
.
font-lock-type-face
font-lock-constant-face
font-lock-builtin-face
font-lock-preprocessor-face
font-lock-builtin-face
.
font-lock-string-face
font-lock-doc-face
font-lock-string-face
.
font-lock-negation-char-face