]> git.eshelyaron.com Git - emacs.git/commit
Colorize CSS property value like `css--fontify-region'
authorVincenzo Pupillo <v.pupillo@gmail.com>
Sat, 22 Jun 2024 21:11:17 +0000 (23:11 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 24 Jun 2024 07:05:19 +0000 (09:05 +0200)
commit3ea0c058f384f246ea7580083fd5350fd6947aef
tree3192110ef11f9e24d92b66bbca3112e3d3dfde5f
parent7db34689277f67cd6ade6c2ffb833f8298aefecd
Colorize CSS property value like `css--fontify-region'

If the value of a property is text representing a CSS color,
it will be fontified such that its background is the color
itself. 'php-ts-mode-css-fontify-colors' can be used to
disable this behaviour.
* lisp/progmodes/php-ts-mode.el (php-ts-mode-css-fontify-colors):
New custom var.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--colorize-css-value):
New function.
* lisp/progmodes/php-ts-mode.el (php-ts-mode): Use the new
function.  (Bug#71724)

(cherry picked from commit 2f1c882a16e5e5215da039af1b4c4a8f569db1a1)
lisp/progmodes/php-ts-mode.el