Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Last active October 25, 2025 08:43
Show Gist options
  • Save jasonm23/f5167d4d6d7b8f5149da4ac2ddbaf24c to your computer and use it in GitHub Desktop.
Save jasonm23/f5167d4d6d7b8f5149da4ac2ddbaf24c to your computer and use it in GitHub Desktop.
Emacs font-lock faces list
Emacs defface htmlfontify css class
font-lock-warning-face warning
font-lock-function-name-face function-name
font-lock-function-call-face function-call
font-lock-variable-name-face variable-name
font-lock-variable-use-face variable-use
font-lock-keyword-face keyword
font-lock-comment-face comment
font-lock-comment-delimiter-face comment-delimiter
font-lock-type-face type
font-lock-constant-face constant
font-lock-builtin-face builtin
font-lock-preprocessor-face preprocessor
font-lock-string-face string
font-lock-doc-face doc
font-lock-doc-markup-face doc-markup
font-lock-negation-char-face negation-char
font-lock-escape-face escape
font-lock-number-face number
font-lock-operator-face operator
font-lock-property-name-face property-name
font-lock-property-use-face property-use
font-lock-punctuation-face punctuation
font-lock-bracket-face bracket
font-lock-delimiter-face delimiter
font-lock-misc-punctuation-face misc-punctuation
window.mapFontLockCssToEmacsFace = {
"warning":"font-lock-warning-face",
"function-name":"font-lock-function-name-face",
"function-call":"font-lock-function-call-face",
"variable-name":"font-lock-variable-name-face",
"variable-use":"font-lock-variable-use-face",
"keyword":"font-lock-keyword-face",
"comment":"font-lock-comment-face",
"comment-delimiter":"font-lock-comment-delimiter-face",
"type":"font-lock-type-face",
"constant":"font-lock-constant-face",
"builtin":"font-lock-builtin-face",
"preprocessor":"font-lock-preprocessor-face",
"string":"font-lock-string-face",
"doc":"font-lock-doc-face",
"doc-markup":"font-lock-doc-markup-face",
"negation-char":"font-lock-negation-char-face",
"escape":"font-lock-escape-face",
"number":"font-lock-number-face",
"operator":"font-lock-operator-face",
"property-name":"font-lock-property-name-face",
"property-use":"font-lock-property-use-face",
"punctuation":"font-lock-punctuation-face",
"bracket":"font-lock-bracket-face",
"delimiter":"font-lock-delimiter-face",
"misc-punctuation":"font-lock-misc-punctuation-face",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment