New answers tagged font-lock
1
Yes, you can. See the Elisp manual, node Search-based Fontification.
font-lock-keywords (which you set using font-lock-keywords, e.g. font-lock-add-keywords) can use a FACESPEC expression, which is evaluated to provide the face to use.
FACESPEC is an expression whose value
specifies the face to use for highlighting. In the simplest case,
FACESPEC is a Lisp ...
0
Also check the variable inhibit-modification-hooks (docs). If your case is like mine, font-lock gets stuck because an error occurs in one of the modification hook functions (... not even necessarily font-lock itself), and, as a consequence:
If an unhandled error happens in running these functions,
the variable's value remains nil. That prevents the error
...
Top 50 recent answers are included
Related Tags
font-lock × 247syntax-highlighting × 43
org-mode × 40
faces × 23
regular-expressions × 22
latex × 14
major-mode × 12
auctex × 11
text-properties × 11
highlighting × 10
fonts × 9
comment × 9
python × 8
colors × 8
c++ × 7
org-babel × 6
cc-mode × 6
debugging × 5
display × 5
c-mode × 5
elisp × 4
markdown-mode × 4
org-export × 3
spacemacs × 3
themes × 3