I'm using Emacs 26.1 in the terminal (emacs -nw
).
When using css-mode
, strings representing colors seem to be automatically highlighted. I don't find this feature useful, and further, the colors chosen often make the text illegible.
Is there a way to disable this while keeping CSS syntax highlighting and formatting?
M-x font-lock-mode
to togglefont-lock
off. If you like the effect to be permanent you can add(add-hook 'css-mode-hook (lambda () (font-lock-mode -1)))
to your init file. Not yet posted as an answer since I did not test it.css-fontify-colors
inM-x customize-option css-fontify-colors
.