rainbow-mode
rainbow-mode is a minor mode for Emacs. It displays strings representing colors with the color they represent as background.
Download
It is available from:
- git://git.naquadah.org/rainbow.git (gitweb)
There's no tagged release for now.
Manual
Load the file, and type M-x rainbow-mode. Rbow should be added to the mode-line, indicating that Rainbow mode is in effect. You can deactivate it with the same command.
When activated, all strings representing colors will be highlighted with the color they represent.
Some colors, like HTML colors name (yellow, red, …) and rgb() ones are automatically activated in some mode like html-mode or css-mode. On the other hand, the X colors are activated only in some mode like emacs-lisp-mode or c-mode. The hexadecimal ones (#aabbcc) are always activated.
All this can be configured via M-x customize-group rainbow.




