New answers tagged syntax-highlighting
1
vote
Accepted
How to set a specific background color for a certain string in text?
If you want Emacs-wide highlighting do
(setq my-hi-lock-patterns
'(("covid\\(-19\\)?" (0 'hi-pink t))
("corona" (0 'hi-yellow t))))
(add-hook 'find-file-hook
...
Top 50 recent answers are included
Related Tags
syntax-highlighting × 223font-lock × 49
org-mode × 38
highlighting × 18
python × 17
major-mode × 13
latex × 12
syntax-table × 12
comment × 10
colors × 9
c++ × 9
auctex × 8
regular-expressions × 8
org-export × 7
web-mode × 7
syntax × 7
indentation × 6
org-babel × 5
faces × 5
string × 5
c × 5
perl × 5
cc-mode × 4
spacemacs × 3
elisp × 3