GNU bug report logs - #25525
25.1.90; add color highlighting to css mode

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Wed, 25 Jan 2017 08:08:01 UTC

Severity: wishlist

Tags: patch

Found in version 25.1.90

Done: Tom Tromey <tom <at> tromey.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Simen Heggestøyl <simenheg <at> gmail.com>
To: Tom Tromey <tom <at> tromey.com>
Cc: 25525 <at> debbugs.gnu.org
Subject: bug#25525: 25.1.90; add color highlighting to css mode
Date: Wed, 25 Jan 2017 21:23:53 +0100
Thanks Tom, this looks to be a very nice addition to CSS mode!

Some comments:

- It should be possible to disable it. I'm not sure whether it should
 be turned on by default or not, though I'd think that most CSS
 developers will find it useful.

- Selectors that happen to contain the name of a color are
 highlighted. The 'red' part of '.centered-button' is highlighted in
 red, for instance.

- The same goes for variable names in both CSS and SCSS.

- Property names are also highlighted, for instance in the case of the
 'white-space' property.

- There's a stray call to 'message' in the beginning of
 'css--fontify-colors'.

- The error message in 'css--compute-color' should be capitalized.

- I think it deserves a NEWS entry.

-- Simen





This bug report was last modified 8 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.