emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/web-mode 4f728fe7b7 1/2: add css colors' keywords


From: ELPA Syncer
Subject: [nongnu] elpa/web-mode 4f728fe7b7 1/2: add css colors' keywords
Date: Wed, 25 May 2022 03:59:04 -0400 (EDT)

branch: elpa/web-mode
commit 4f728fe7b7b71fc83c165c8808de69d7b3648556
Author: JJ <jjnilton@users.noreply.github.com>
Commit: JJ <jjnilton@users.noreply.github.com>

    add css colors' keywords
---
 issues/1238.html | 148 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 web-mode.el      | 147 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 293 insertions(+), 2 deletions(-)

diff --git a/issues/1238.html b/issues/1238.html
index 8602f38fba..9215e619d1 100644
--- a/issues/1238.html
+++ b/issues/1238.html
@@ -1,3 +1,149 @@
 <style>
- div { color: palegoldenrod; }
+    .black { color: #000000 }
+    .silver { color: #c0c0c0 }
+    .gray { color: #808080 }
+    .white { color: #ffffff }
+    .maroon { color: #800000 }
+    .red { color: #ff0000 }
+    .purple { color: #800080 }
+    .fuchsia { color: #ff00ff }
+    .green { color: #008000 }
+    .lime { color: #00ff00 }
+    .olive { color: #808000 }
+    .yellow { color: #ffff00 }
+    .navy { color: #000080 }
+    .blue { color: #0000ff }
+    .teal { color: #008080 }
+    .aqua { color: #00ffff }
+    .orange { color: #ffa500 }
+    .aliceblue { color: #f0f8ff }
+    .antiquewhite { color: #faebd7 }
+    .aquamarine { color: #7fffd4 }
+    .azure { color: #f0ffff }
+    .beige { color: #f5f5dc }
+    .bisque { color: #ffe4c4 }
+    .blanchedalmond { color: #ffebcd }
+    .blueviolet { color: #8a2be2 }
+    .brown { color: #a52a2a }
+    .burlywood { color: #deb887 }
+    .cadetblue { color: #5f9ea0 }
+    .chartreuse { color: #7fff00 }
+    .chocolate { color: #d2691e }
+    .coral { color: #ff7f50 }
+    .cornflowerblue { color: #6495ed }
+    .cornsilk { color: #fff8dc }
+    .crimson { color: #dc143c }
+    .cyan { color: #00ffff }
+    .darkblue { color: #00008b }
+    .darkcyan { color: #008b8b }
+    .darkgoldenrod { color: #b8860b }
+    .darkgray { color: #a9a9a9 }
+    .darkgreen { color: #006400 }
+    .darkgrey { color: #a9a9a9 }
+    .darkkhaki { color: #bdb76b }
+    .darkmagenta { color: #8b008b }
+    .darkolivegreen { color: #556b2f }
+    .darkorange { color: #ff8c00 }
+    .darkorchid { color: #9932cc }
+    .darkred { color: #8b0000 }
+    .darksalmon { color: #e9967a }
+    .darkseagreen { color: #8fbc8f }
+    .darkslateblue { color: #483d8b }
+    .darkslategray { color: #2f4f4f }
+    .darkslategrey { color: #2f4f4f }
+    .darkturquoise { color: #00ced1 }
+    .darkviolet { color: #9400d3 }
+    .deeppink { color: #ff1493 }
+    .deepskyblue { color: #00bfff }
+    .dimgray { color: #696969 }
+    .dimgrey { color: #696969 }
+    .dodgerblue { color: #1e90ff }
+    .firebrick { color: #b22222 }
+    .floralwhite { color: #fffaf0 }
+    .forestgreen { color: #228b22 }
+    .gainsboro { color: #dcdcdc }
+    .ghostwhite { color: #f8f8ff }
+    .gold { color: #ffd700 }
+    .goldenrod { color: #daa520 }
+    .greenyellow { color: #adff2f }
+    .grey { color: #808080 }
+    .honeydew { color: #f0fff0 }
+    .hotpink { color: #ff69b4 }
+    .indianred { color: #cd5c5c }
+    .indigo { color: #4b0082 }
+    .ivory { color: #fffff0 }
+    .khaki { color: #f0e68c }
+    .lavender { color: #e6e6fa }
+    .lavenderblush { color: #fff0f5 }
+    .lawngreen { color: #7cfc00 }
+    .lemonchiffon { color: #fffacd }
+    .lightblue { color: #add8e6 }
+    .lightcoral { color: #f08080 }
+    .lightcyan { color: #e0ffff }
+    .lightgoldenrodyellow { color: #fafad2 }
+    .lightgray { color: #d3d3d3 }
+    .lightgreen { color: #90ee90 }
+    .lightgrey { color: #d3d3d3 }
+    .lightpink { color: #ffb6c1 }
+    .lightsalmon { color: #ffa07a }
+    .lightseagreen { color: #20b2aa }
+    .lightskyblue { color: #87cefa }
+    .lightslategray { color: #778899 }
+    .lightslategrey { color: #778899 }
+    .lightsteelblue { color: #b0c4de }
+    .lightyellow { color: #ffffe0 }
+    .limegreen { color: #32cd32 }
+    .linen { color: #faf0e6 }
+    .magenta { color: #ff00ff }
+    .mediumaquamarine { color: #66cdaa }
+    .mediumblue { color: #0000cd }
+    .mediumorchid { color: #ba55d3 }
+    .mediumpurple { color: #9370db }
+    .mediumseagreen { color: #3cb371 }
+    .mediumslateblue { color: #7b68ee }
+    .mediumspringgreen { color: #00fa9a }
+    .mediumturquoise { color: #48d1cc }
+    .mediumvioletred { color: #c71585 }
+    .midnightblue { color: #191970 }
+    .mintcream { color: #f5fffa }
+    .mistyrose { color: #ffe4e1 }
+    .moccasin { color: #ffe4b5 }
+    .navajowhite { color: #ffdead }
+    .oldlace { color: #fdf5e6 }
+    .olivedrab { color: #6b8e23 }
+    .orangered { color: #ff4500 }
+    .orchid { color: #da70d6 }
+    .palegoldenrod { color: #eee8aa }
+    .palegreen { color: #98fb98 }
+    .paleturquoise { color: #afeeee }
+    .palevioletred { color: #db7093 }
+    .papayawhip { color: #ffefd5 }
+    .peachpuff { color: #ffdab9 }
+    .peru { color: #cd853f }
+    .pink { color: #ffc0cb }
+    .plum { color: #dda0dd }
+    .powderblue { color: #b0e0e6 }
+    .rosybrown { color: #bc8f8f }
+    .royalblue { color: #4169e1 }
+    .saddlebrown { color: #8b4513 }
+    .salmon { color: #fa8072 }
+    .sandybrown { color: #f4a460 }
+    .seagreen { color: #2e8b57 }
+    .seashell { color: #fff5ee }
+    .sienna { color: #a0522d }
+    .skyblue { color: #87ceeb }
+    .slateblue { color: #6a5acd }
+    .slategray { color: #708090 }
+    .slategrey { color: #708090 }
+    .snow { color: #fffafa }
+    .springgreen { color: #00ff7f }
+    .steelblue { color: #4682b4 }
+    .tan { color: #d2b48c }
+    .thistle { color: #d8bfd8 }
+    .tomato { color: #ff6347 }
+    .turquoise { color: #40e0d0 }
+    .violet { color: #ee82ee }
+    .wheat { color: #f5deb3 }
+    .whitesmoke { color: #f5f5f5 }
+    .yellowgreen { color: #9acd32 }
 </style>
diff --git a/web-mode.el b/web-mode.el
index 2c220a0d9f..fcce734973 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -6983,7 +6983,7 @@ Also return non-nil if it is the command 
`self-insert-command' is remapped to."
     (when (and dec-beg dec-end)
       (goto-char dec-beg)
       (while (and web-mode-enable-css-colorization
-                  (re-search-forward 
"palegoldenrod\\|palegreen\\|#[0-9a-fA-F]\\{6\\}\\|#[0-9a-fA-F]\\{3\\}\\|rgba?([
 ]*\\([[:digit:]]\\{1,3\\}\\)[ ]*,[ ]*\\([[:digit:]]\\{1,3\\}\\)[ ]*,[ 
]*\\([[:digit:]]\\{1,3\\}\\)\\(.*?\\))" dec-end t)
+                  (re-search-forward 
"black\\|silver\\|gray\\|white\\|maroon\\|red\\|purple\\|fuchsia\\|green\\|lime\\|olive\\|yellow\\|navy\\|blue\\|teal\\|aqua\\|orange\\|aliceblue\\|antiquewhite\\|aquamarine\\|azure\\|beige\\|bisque\\|blanchedalmond\\|blueviolet\\|brown\\|burlywood\\|cadetblue\\|chartreuse\\|chocolate\\|coral\\|cornflowerblue\\|cornsilk\\|crimson\\|cyan\\|darkblue\\|darkcyan\\|darkgoldenrod\\|darkgray\\|darkgreen\\|darkgrey\\|darkkhaki\\|darkmagenta\\|darkolivegreen\\
 [...]
                   ;;(progn (message "%S %S" end (point)) t)
                   (<= (point) dec-end))
         (web-mode-colorize (match-beginning 0) (match-end 0))
@@ -7015,8 +7015,153 @@ Also return non-nil if it is the command 
`self-insert-command' is remapped to."
                         (string-to-number (match-string-no-properties 3))))
       (setq plist (list :background str
                         :foreground (web-mode-colorize-foreground str))))
+     ((string= str "black") (setq plist (list :background "#000000" 
:foreground (web-mode-colorize-foreground "#000000"))))
+     ((string= str "silver") (setq plist (list :background "#c0c0c0" 
:foreground (web-mode-colorize-foreground "#c0c0c0"))))
+     ((string= str "gray") (setq plist (list :background "#808080" :foreground 
(web-mode-colorize-foreground "#808080"))))
+     ((string= str "white") (setq plist (list :background "#ffffff" 
:foreground (web-mode-colorize-foreground "#ffffff"))))
+     ((string= str "maroon") (setq plist (list :background "#800000" 
:foreground (web-mode-colorize-foreground "#800000"))))
+     ((string= str "red") (setq plist (list :background "#ff0000" :foreground 
(web-mode-colorize-foreground "#ff0000"))))
+     ((string= str "purple") (setq plist (list :background "#800080" 
:foreground (web-mode-colorize-foreground "#800080"))))
+     ((string= str "fuchsia") (setq plist (list :background "#ff00ff" 
:foreground (web-mode-colorize-foreground "#ff00ff"))))
+     ((string= str "green") (setq plist (list :background "#008000" 
:foreground (web-mode-colorize-foreground "#008000"))))
+     ((string= str "lime") (setq plist (list :background "#00ff00" :foreground 
(web-mode-colorize-foreground "#00ff00"))))
+     ((string= str "olive") (setq plist (list :background "#808000" 
:foreground (web-mode-colorize-foreground "#808000"))))
+     ((string= str "yellow") (setq plist (list :background "#ffff00" 
:foreground (web-mode-colorize-foreground "#ffff00"))))
+     ((string= str "navy") (setq plist (list :background "#000080" :foreground 
(web-mode-colorize-foreground "#000080"))))
+     ((string= str "blue") (setq plist (list :background "#0000ff" :foreground 
(web-mode-colorize-foreground "#0000ff"))))
+     ((string= str "teal") (setq plist (list :background "#008080" :foreground 
(web-mode-colorize-foreground "#008080"))))
+     ((string= str "aqua") (setq plist (list :background "#00ffff" :foreground 
(web-mode-colorize-foreground "#00ffff"))))
+     ((string= str "orange") (setq plist (list :background "#ffa500" 
:foreground (web-mode-colorize-foreground "#ffa500"))))
+     ((string= str "aliceblue") (setq plist (list :background "#f0f8ff" 
:foreground (web-mode-colorize-foreground "#f0f8ff"))))
+     ((string= str "antiquewhite") (setq plist (list :background "#faebd7" 
:foreground (web-mode-colorize-foreground "#faebd7"))))
+     ((string= str "aquamarine") (setq plist (list :background "#7fffd4" 
:foreground (web-mode-colorize-foreground "#7fffd4"))))
+     ((string= str "azure") (setq plist (list :background "#f0ffff" 
:foreground (web-mode-colorize-foreground "#f0ffff"))))
+     ((string= str "beige") (setq plist (list :background "#f5f5dc" 
:foreground (web-mode-colorize-foreground "#f5f5dc"))))
+     ((string= str "bisque") (setq plist (list :background "#ffe4c4" 
:foreground (web-mode-colorize-foreground "#ffe4c4"))))
+     ((string= str "blanchedalmond") (setq plist (list :background "#ffebcd" 
:foreground (web-mode-colorize-foreground "#ffebcd"))))
+     ((string= str "blueviolet") (setq plist (list :background "#8a2be2" 
:foreground (web-mode-colorize-foreground "#8a2be2"))))
+     ((string= str "brown") (setq plist (list :background "#a52a2a" 
:foreground (web-mode-colorize-foreground "#a52a2a"))))
+     ((string= str "burlywood") (setq plist (list :background "#deb887" 
:foreground (web-mode-colorize-foreground "#deb887"))))
+     ((string= str "cadetblue") (setq plist (list :background "#5f9ea0" 
:foreground (web-mode-colorize-foreground "#5f9ea0"))))
+     ((string= str "chartreuse") (setq plist (list :background "#7fff00" 
:foreground (web-mode-colorize-foreground "#7fff00"))))
+     ((string= str "chocolate") (setq plist (list :background "#d2691e" 
:foreground (web-mode-colorize-foreground "#d2691e"))))
+     ((string= str "coral") (setq plist (list :background "#ff7f50" 
:foreground (web-mode-colorize-foreground "#ff7f50"))))
+     ((string= str "cornflowerblue") (setq plist (list :background "#6495ed" 
:foreground (web-mode-colorize-foreground "#6495ed"))))
+     ((string= str "cornsilk") (setq plist (list :background "#fff8dc" 
:foreground (web-mode-colorize-foreground "#fff8dc"))))
+     ((string= str "crimson") (setq plist (list :background "#dc143c" 
:foreground (web-mode-colorize-foreground "#dc143c"))))
+     ((string= str "cyan") (setq plist (list :background "#00ffff" :foreground 
(web-mode-colorize-foreground "#00ffff"))))
+     ((string= str "darkblue") (setq plist (list :background "#00008b" 
:foreground (web-mode-colorize-foreground "#00008b"))))
+     ((string= str "darkcyan") (setq plist (list :background "#008b8b" 
:foreground (web-mode-colorize-foreground "#008b8b"))))
+     ((string= str "darkgoldenrod") (setq plist (list :background "#b8860b" 
:foreground (web-mode-colorize-foreground "#b8860b"))))
+     ((string= str "darkgray") (setq plist (list :background "#a9a9a9" 
:foreground (web-mode-colorize-foreground "#a9a9a9"))))
+     ((string= str "darkgreen") (setq plist (list :background "#006400" 
:foreground (web-mode-colorize-foreground "#006400"))))
+     ((string= str "darkgrey") (setq plist (list :background "#a9a9a9" 
:foreground (web-mode-colorize-foreground "#a9a9a9"))))
+     ((string= str "darkkhaki") (setq plist (list :background "#bdb76b" 
:foreground (web-mode-colorize-foreground "#bdb76b"))))
+     ((string= str "darkmagenta") (setq plist (list :background "#8b008b" 
:foreground (web-mode-colorize-foreground "#8b008b"))))
+     ((string= str "darkolivegreen") (setq plist (list :background "#556b2f" 
:foreground (web-mode-colorize-foreground "#556b2f"))))
+     ((string= str "darkorange") (setq plist (list :background "#ff8c00" 
:foreground (web-mode-colorize-foreground "#ff8c00"))))
+     ((string= str "darkorchid") (setq plist (list :background "#9932cc" 
:foreground (web-mode-colorize-foreground "#9932cc"))))
+     ((string= str "darkred") (setq plist (list :background "#8b0000" 
:foreground (web-mode-colorize-foreground "#8b0000"))))
+     ((string= str "darksalmon") (setq plist (list :background "#e9967a" 
:foreground (web-mode-colorize-foreground "#e9967a"))))
+     ((string= str "darkseagreen") (setq plist (list :background "#8fbc8f" 
:foreground (web-mode-colorize-foreground "#8fbc8f"))))
+     ((string= str "darkslateblue") (setq plist (list :background "#483d8b" 
:foreground (web-mode-colorize-foreground "#483d8b"))))
+     ((string= str "darkslategray") (setq plist (list :background "#2f4f4f" 
:foreground (web-mode-colorize-foreground "#2f4f4f"))))
+     ((string= str "darkslategrey") (setq plist (list :background "#2f4f4f" 
:foreground (web-mode-colorize-foreground "#2f4f4f"))))
+     ((string= str "darkturquoise") (setq plist (list :background "#00ced1" 
:foreground (web-mode-colorize-foreground "#00ced1"))))
+     ((string= str "darkviolet") (setq plist (list :background "#9400d3" 
:foreground (web-mode-colorize-foreground "#9400d3"))))
+     ((string= str "deeppink") (setq plist (list :background "#ff1493" 
:foreground (web-mode-colorize-foreground "#ff1493"))))
+     ((string= str "deepskyblue") (setq plist (list :background "#00bfff" 
:foreground (web-mode-colorize-foreground "#00bfff"))))
+     ((string= str "dimgray") (setq plist (list :background "#696969" 
:foreground (web-mode-colorize-foreground "#696969"))))
+     ((string= str "dimgrey") (setq plist (list :background "#696969" 
:foreground (web-mode-colorize-foreground "#696969"))))
+     ((string= str "dodgerblue") (setq plist (list :background "#1e90ff" 
:foreground (web-mode-colorize-foreground "#1e90ff"))))
+     ((string= str "firebrick") (setq plist (list :background "#b22222" 
:foreground (web-mode-colorize-foreground "#b22222"))))
+     ((string= str "floralwhite") (setq plist (list :background "#fffaf0" 
:foreground (web-mode-colorize-foreground "#fffaf0"))))
+     ((string= str "forestgreen") (setq plist (list :background "#228b22" 
:foreground (web-mode-colorize-foreground "#228b22"))))
+     ((string= str "gainsboro") (setq plist (list :background "#dcdcdc" 
:foreground (web-mode-colorize-foreground "#dcdcdc"))))
+     ((string= str "ghostwhite") (setq plist (list :background "#f8f8ff" 
:foreground (web-mode-colorize-foreground "#f8f8ff"))))
+     ((string= str "gold") (setq plist (list :background "#ffd700" :foreground 
(web-mode-colorize-foreground "#ffd700"))))
+     ((string= str "goldenrod") (setq plist (list :background "#daa520" 
:foreground (web-mode-colorize-foreground "#daa520"))))
+     ((string= str "greenyellow") (setq plist (list :background "#adff2f" 
:foreground (web-mode-colorize-foreground "#adff2f"))))
+     ((string= str "grey") (setq plist (list :background "#808080" :foreground 
(web-mode-colorize-foreground "#808080"))))
+     ((string= str "honeydew") (setq plist (list :background "#f0fff0" 
:foreground (web-mode-colorize-foreground "#f0fff0"))))
+     ((string= str "hotpink") (setq plist (list :background "#ff69b4" 
:foreground (web-mode-colorize-foreground "#ff69b4"))))
+     ((string= str "indianred") (setq plist (list :background "#cd5c5c" 
:foreground (web-mode-colorize-foreground "#cd5c5c"))))
+     ((string= str "indigo") (setq plist (list :background "#4b0082" 
:foreground (web-mode-colorize-foreground "#4b0082"))))
+     ((string= str "ivory") (setq plist (list :background "#fffff0" 
:foreground (web-mode-colorize-foreground "#fffff0"))))
+     ((string= str "khaki") (setq plist (list :background "#f0e68c" 
:foreground (web-mode-colorize-foreground "#f0e68c"))))
+     ((string= str "lavender") (setq plist (list :background "#e6e6fa" 
:foreground (web-mode-colorize-foreground "#e6e6fa"))))
+     ((string= str "lavenderblush") (setq plist (list :background "#fff0f5" 
:foreground (web-mode-colorize-foreground "#fff0f5"))))
+     ((string= str "lawngreen") (setq plist (list :background "#7cfc00" 
:foreground (web-mode-colorize-foreground "#7cfc00"))))
+     ((string= str "lemonchiffon") (setq plist (list :background "#fffacd" 
:foreground (web-mode-colorize-foreground "#fffacd"))))
+     ((string= str "lightblue") (setq plist (list :background "#add8e6" 
:foreground (web-mode-colorize-foreground "#add8e6"))))
+     ((string= str "lightcoral") (setq plist (list :background "#f08080" 
:foreground (web-mode-colorize-foreground "#f08080"))))
+     ((string= str "lightcyan") (setq plist (list :background "#e0ffff" 
:foreground (web-mode-colorize-foreground "#e0ffff"))))
+     ((string= str "lightgoldenrodyellow") (setq plist (list :background 
"#fafad2" :foreground (web-mode-colorize-foreground "#fafad2"))))
+     ((string= str "lightgray") (setq plist (list :background "#d3d3d3" 
:foreground (web-mode-colorize-foreground "#d3d3d3"))))
+     ((string= str "lightgreen") (setq plist (list :background "#90ee90" 
:foreground (web-mode-colorize-foreground "#90ee90"))))
+     ((string= str "lightgrey") (setq plist (list :background "#d3d3d3" 
:foreground (web-mode-colorize-foreground "#d3d3d3"))))
+     ((string= str "lightpink") (setq plist (list :background "#ffb6c1" 
:foreground (web-mode-colorize-foreground "#ffb6c1"))))
+     ((string= str "lightsalmon") (setq plist (list :background "#ffa07a" 
:foreground (web-mode-colorize-foreground "#ffa07a"))))
+     ((string= str "lightseagreen") (setq plist (list :background "#20b2aa" 
:foreground (web-mode-colorize-foreground "#20b2aa"))))
+     ((string= str "lightskyblue") (setq plist (list :background "#87cefa" 
:foreground (web-mode-colorize-foreground "#87cefa"))))
+     ((string= str "lightslategray") (setq plist (list :background "#778899" 
:foreground (web-mode-colorize-foreground "#778899"))))
+     ((string= str "lightslategrey") (setq plist (list :background "#778899" 
:foreground (web-mode-colorize-foreground "#778899"))))
+     ((string= str "lightsteelblue") (setq plist (list :background "#b0c4de" 
:foreground (web-mode-colorize-foreground "#b0c4de"))))
+     ((string= str "lightyellow") (setq plist (list :background "#ffffe0" 
:foreground (web-mode-colorize-foreground "#ffffe0"))))
+     ((string= str "limegreen") (setq plist (list :background "#32cd32" 
:foreground (web-mode-colorize-foreground "#32cd32"))))
+     ((string= str "linen") (setq plist (list :background "#faf0e6" 
:foreground (web-mode-colorize-foreground "#faf0e6"))))
+     ((string= str "magenta") (setq plist (list :background "#ff00ff" 
:foreground (web-mode-colorize-foreground "#ff00ff"))))
+     ((string= str "mediumaquamarine") (setq plist (list :background "#66cdaa" 
:foreground (web-mode-colorize-foreground "#66cdaa"))))
+     ((string= str "mediumblue") (setq plist (list :background "#0000cd" 
:foreground (web-mode-colorize-foreground "#0000cd"))))
+     ((string= str "mediumorchid") (setq plist (list :background "#ba55d3" 
:foreground (web-mode-colorize-foreground "#ba55d3"))))
+     ((string= str "mediumpurple") (setq plist (list :background "#9370db" 
:foreground (web-mode-colorize-foreground "#9370db"))))
+     ((string= str "mediumseagreen") (setq plist (list :background "#3cb371" 
:foreground (web-mode-colorize-foreground "#3cb371"))))
+     ((string= str "mediumslateblue") (setq plist (list :background "#7b68ee" 
:foreground (web-mode-colorize-foreground "#7b68ee"))))
+     ((string= str "mediumspringgreen") (setq plist (list :background 
"#00fa9a" :foreground (web-mode-colorize-foreground "#00fa9a"))))
+     ((string= str "mediumturquoise") (setq plist (list :background "#48d1cc" 
:foreground (web-mode-colorize-foreground "#48d1cc"))))
+     ((string= str "mediumvioletred") (setq plist (list :background "#c71585" 
:foreground (web-mode-colorize-foreground "#c71585"))))
+     ((string= str "midnightblue") (setq plist (list :background "#191970" 
:foreground (web-mode-colorize-foreground "#191970"))))
+     ((string= str "mintcream") (setq plist (list :background "#f5fffa" 
:foreground (web-mode-colorize-foreground "#f5fffa"))))
+     ((string= str "mistyrose") (setq plist (list :background "#ffe4e1" 
:foreground (web-mode-colorize-foreground "#ffe4e1"))))
+     ((string= str "moccasin") (setq plist (list :background "#ffe4b5" 
:foreground (web-mode-colorize-foreground "#ffe4b5"))))
+     ((string= str "navajowhite") (setq plist (list :background "#ffdead" 
:foreground (web-mode-colorize-foreground "#ffdead"))))
+     ((string= str "oldlace") (setq plist (list :background "#fdf5e6" 
:foreground (web-mode-colorize-foreground "#fdf5e6"))))
+     ((string= str "olivedrab") (setq plist (list :background "#6b8e23" 
:foreground (web-mode-colorize-foreground "#6b8e23"))))
+     ((string= str "orangered") (setq plist (list :background "#ff4500" 
:foreground (web-mode-colorize-foreground "#ff4500"))))
+     ((string= str "orchid") (setq plist (list :background "#da70d6" 
:foreground (web-mode-colorize-foreground "#da70d6"))))
      ((string= str "palegoldenrod") (setq plist (list :background "#eee8aa" 
:foreground (web-mode-colorize-foreground "#eee8aa"))))
      ((string= str "palegreen") (setq plist (list :background "#98fb98" 
:foreground (web-mode-colorize-foreground "#98fb98"))))
+     ((string= str "paleturquoise") (setq plist (list :background "#afeeee" 
:foreground (web-mode-colorize-foreground "#afeeee"))))
+     ((string= str "palevioletred") (setq plist (list :background "#db7093" 
:foreground (web-mode-colorize-foreground "#db7093"))))
+     ((string= str "papayawhip") (setq plist (list :background "#ffefd5" 
:foreground (web-mode-colorize-foreground "#ffefd5"))))
+     ((string= str "peachpuff") (setq plist (list :background "#ffdab9" 
:foreground (web-mode-colorize-foreground "#ffdab9"))))
+     ((string= str "peru") (setq plist (list :background "#cd853f" :foreground 
(web-mode-colorize-foreground "#cd853f"))))
+     ((string= str "pink") (setq plist (list :background "#ffc0cb" :foreground 
(web-mode-colorize-foreground "#ffc0cb"))))
+     ((string= str "plum") (setq plist (list :background "#dda0dd" :foreground 
(web-mode-colorize-foreground "#dda0dd"))))
+     ((string= str "powderblue") (setq plist (list :background "#b0e0e6" 
:foreground (web-mode-colorize-foreground "#b0e0e6"))))
+     ((string= str "rosybrown") (setq plist (list :background "#bc8f8f" 
:foreground (web-mode-colorize-foreground "#bc8f8f"))))
+     ((string= str "royalblue") (setq plist (list :background "#4169e1" 
:foreground (web-mode-colorize-foreground "#4169e1"))))
+     ((string= str "saddlebrown") (setq plist (list :background "#8b4513" 
:foreground (web-mode-colorize-foreground "#8b4513"))))
+     ((string= str "salmon") (setq plist (list :background "#fa8072" 
:foreground (web-mode-colorize-foreground "#fa8072"))))
+     ((string= str "sandybrown") (setq plist (list :background "#f4a460" 
:foreground (web-mode-colorize-foreground "#f4a460"))))
+     ((string= str "seagreen") (setq plist (list :background "#2e8b57" 
:foreground (web-mode-colorize-foreground "#2e8b57"))))
+     ((string= str "seashell") (setq plist (list :background "#fff5ee" 
:foreground (web-mode-colorize-foreground "#fff5ee"))))
+     ((string= str "sienna") (setq plist (list :background "#a0522d" 
:foreground (web-mode-colorize-foreground "#a0522d"))))
+     ((string= str "skyblue") (setq plist (list :background "#87ceeb" 
:foreground (web-mode-colorize-foreground "#87ceeb"))))
+     ((string= str "slateblue") (setq plist (list :background "#6a5acd" 
:foreground (web-mode-colorize-foreground "#6a5acd"))))
+     ((string= str "slategray") (setq plist (list :background "#708090" 
:foreground (web-mode-colorize-foreground "#708090"))))
+     ((string= str "slategrey") (setq plist (list :background "#708090" 
:foreground (web-mode-colorize-foreground "#708090"))))
+     ((string= str "snow") (setq plist (list :background "#fffafa" :foreground 
(web-mode-colorize-foreground "#fffafa"))))
+     ((string= str "springgreen") (setq plist (list :background "#00ff7f" 
:foreground (web-mode-colorize-foreground "#00ff7f"))))
+     ((string= str "steelblue") (setq plist (list :background "#4682b4" 
:foreground (web-mode-colorize-foreground "#4682b4"))))
+     ((string= str "tan") (setq plist (list :background "#d2b48c" :foreground 
(web-mode-colorize-foreground "#d2b48c"))))
+     ((string= str "thistle") (setq plist (list :background "#d8bfd8" 
:foreground (web-mode-colorize-foreground "#d8bfd8"))))
+     ((string= str "tomato") (setq plist (list :background "#ff6347" 
:foreground (web-mode-colorize-foreground "#ff6347"))))
+     ((string= str "turquoise") (setq plist (list :background "#40e0d0" 
:foreground (web-mode-colorize-foreground "#40e0d0"))))
+     ((string= str "violet") (setq plist (list :background "#ee82ee" 
:foreground (web-mode-colorize-foreground "#ee82ee"))))
+     ((string= str "wheat") (setq plist (list :background "#f5deb3" 
:foreground (web-mode-colorize-foreground "#f5deb3"))))
+     ((string= str "whitesmoke") (setq plist (list :background "#f5f5f5" 
:foreground (web-mode-colorize-foreground "#f5f5f5"))))
+     ((string= str "yellowgreen") (setq plist (list :background "#9acd32" 
:foreground (web-mode-colorize-foreground "#9acd32"))))
      ) ;cond
     (put-text-property beg end 'face plist)
     ))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]