Color Highlight
🎨 Lightweight Color Highlight colorizer for Sublime Text
Details
Installs
- Total 311K
- Win 230K
- Mac 44K
- Linux 37K
Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 9 | 14 | 18 | 23 | 20 | 25 | 21 | 33 | 20 | 27 | 20 | 25 | 32 | 25 | 21 | 15 | 14 | 17 | 27 | 29 | 53 | 74 | 20 | 20 | 16 | 22 | 26 | 29 | 28 | 15 | 15 | 18 | 43 | 48 | 47 | 62 | 20 | 14 | 27 | 21 | 21 | 30 | 24 | 14 | 15 | 22 |
Mac | 1 | 2 | 5 | 5 | 6 | 7 | 7 | 5 | 7 | 4 | 4 | 10 | 6 | 8 | 5 | 3 | 2 | 2 | 8 | 11 | 3 | 6 | 7 | 4 | 3 | 4 | 6 | 12 | 7 | 3 | 6 | 5 | 12 | 7 | 4 | 6 | 5 | 11 | 9 | 5 | 13 | 8 | 5 | 3 | 1 | 4 |
Linux | 1 | 9 | 7 | 2 | 7 | 5 | 0 | 9 | 5 | 5 | 5 | 8 | 6 | 9 | 12 | 8 | 6 | 3 | 5 | 5 | 8 | 11 | 9 | 7 | 6 | 5 | 3 | 6 | 2 | 4 | 6 | 1 | 7 | 10 | 7 | 4 | 4 | 10 | 7 | 5 | 8 | 9 | 9 | 4 | 9 | 11 |
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