79727953

Date: 2025-08-06 23:53:14
Score: 1
Natty:
Report link

None of the current answers seem to talk about how to change the colour used in highlighting.

In my config, I have tabs and trailing whitespace highlighted using whitespace-mode:

(require 'whitespace)
(whitespace-mode 1)  ;; or (global-whitespace-mode 1)
(setq whitespace-style '(face tabs trailing))
(modify-face whitespace-tab nil "#ff0000")
(modify-face whitespace-trailing nil "#ff0000")

Code for highlighting tabs obtained from a comment under this StackOverflow answer.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jake Ireland