Color Highlight
🎨 Lightweight Color Highlight colorizer for Sublime Text
Details
Installs
- Total 306K
- Win 226K
- Mac 44K
- Linux 36K
Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 29 | 28 | 45 | 31 | 25 | 21 | 22 | 47 | 34 | 32 | 24 | 29 | 31 | 17 | 40 | 33 | 42 | 25 | 41 | 16 | 19 | 27 | 38 | 50 | 34 | 39 | 19 | 14 | 46 | 25 | 35 | 37 | 25 | 10 | 15 | 24 | 34 | 36 | 40 | 21 | 22 | 11 | 22 | 30 | 45 | 30 |
Mac | 11 | 3 | 13 | 10 | 3 | 8 | 4 | 16 | 7 | 6 | 7 | 8 | 3 | 5 | 7 | 8 | 4 | 2 | 6 | 3 | 4 | 10 | 8 | 5 | 6 | 9 | 2 | 2 | 5 | 7 | 7 | 9 | 6 | 6 | 6 | 14 | 3 | 6 | 8 | 8 | 4 | 3 | 7 | 4 | 4 | 3 |
Linux | 3 | 5 | 5 | 3 | 3 | 7 | 6 | 9 | 12 | 1 | 5 | 8 | 8 | 8 | 2 | 8 | 5 | 6 | 10 | 5 | 6 | 6 | 12 | 10 | 11 | 7 | 5 | 8 | 3 | 2 | 2 | 7 | 6 | 9 | 4 | 8 | 6 | 6 | 12 | 2 | 5 | 5 | 6 | 6 | 3 | 2 |
Readme
🎨 Color Highlight
Show color codes (like “#ffffff”, 0xffffff “rgb(255, 255, 255)”, “white”, hsl(0, 0%, 100%), etc.) with their real color as the background and/or gutter icons.
Installation
- Recommended - Using Sublime Package Control
- Ctrl+Shift+P then select
Package Control: Install Package
- install
Color Highlight
- Ctrl+Shift+P then select
- Alternatively, download the package from GitHub into your
Packages
folder and make sure to rename the directory to “Color Highlight”.
Usage
Supported color representations are:
Named colors in the form of CSS3 color names e.g.
green
,black
and many others are also supported.Hexademical in the form of
#RGB
,#RGBA
,#RRGGBB
or#RRGGBBAA
(you can use both upper and lower case letters)Hexadecimal numbers with prefix 0x in the form of
0xRRGGBB
or0xRRGGBBAA
RBG or RGBA value in the form of
rgb(red, green, blue)
orrgba(red, green, blue, alpha)
with decimal channel valuesHSL or HSLA value in the form of
hsl(hue, sat%, lum%)
orhsla(hue, sat%, lum%, alpha)
HSV or HSVA value in the form of
hsv(hue, sat%, val%)
orhsva(hue, sat%, val%, alpha)
HWB value in the form of
hwb(hue, white%, black%)
orhwb(hue, white%, black%, alpha)
CIELAB (Lab) value in the form of
lab(lum, a, b)
orlab(lum, a, b, alpha)
Cylindrical CIELAB (LCH) in the form of
lch(hue, chroma, lum)
orlch(hue, chroma, lum, alpha)
ANSI escape sequences: Âľ bit (8-color), 8-bit (256-color), 24-bit (true color) in the form of
\033[3Xm
,\033[4Xm
,\033[38;5;IIIm
or\033[38;2;RRR,GGG,BBBm
. Escape part accepting “^[
[”, “\033”, “\x1b[”, “\u001b[” and “\e[”
Those will be shown with colored background and gutter icons when they're found in your documents.
Configuration
You can disable live highlight directly from the command palette:
Color Highlight: Disable Color Highlight
Open settings using the command palette:
Preferences: Color Highlight Settings - User
Gutter icons can be switched among three flavors (or disabled) by using the
gutter_icon
setting:- “circle” - Gutter icon with the color in a circle
- “square” - Gutter icon with the color in a square
- “fill” - Fill whole gutter with color
"user": {
"gutter_icon": "fill"
}
Highlighting the value region in the color can be enabled or disabled by using the
highlight_values
setting.Enabling/disabling coloring of different types of values can be configured.
License
Copyright © 2018 German Mendez Bravo (Kronuz). All rights reserved.
MIT license
This plugin was initially a fork of https://github.com/Monnoroch/ColorHighlighter