ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Color Highlight

by Kronuz ALL Top 100

🎨 Lightweight Color Highlight colorizer for Sublime Text

Details

Installs

  • Total 310K
  • Win 229K
  • Mac 44K
  • Linux 37K
Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7
Windows 24 21 21 30 24 14 15 22 31 29 40 15 25 18 23 23 16 14 29 20 18 23 23 30 24 31 14 13 14 28 18 31 35 18 8 18 20 21 31 31 21 24 12 24 26 27
Mac 9 5 13 8 5 3 1 4 8 4 4 8 0 4 9 16 9 6 6 3 5 7 4 4 10 7 7 7 8 2 6 2 4 3 7 12 6 11 5 5 2 0 3 6 12 5
Linux 7 5 8 9 9 4 9 11 8 8 8 11 4 5 10 7 8 5 6 8 6 3 3 8 6 7 10 3 4 1 6 5 7 4 10 5 2 9 2 6 10 6 6 5 6 7

Readme

Source
raw.​githubusercontent.​com

🎨 Color Highlight

Donate Package Control

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.

Description

Installation

  • Recommended - Using Sublime Package Control
    • Ctrl+Shift+P then select Package Control: Install Package
    • install Color Highlight
  • 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 or 0xRRGGBBAA

  • RBG or RGBA value in the form of rgb(red, green, blue) or rgba(red, green, blue, alpha) with decimal channel values

  • HSL or HSLA value in the form of hsl(hue, sat%, lum%) or hsla(hue, sat%, lum%, alpha)

  • HSV or HSVA value in the form of hsv(hue, sat%, val%) or hsva(hue, sat%, val%, alpha)

  • HWB value in the form of hwb(hue, white%, black%) or hwb(hue, white%, black%, alpha)

  • CIELAB (Lab) value in the form of lab(lum, a, b) or lab(lum, a, b, alpha)

  • Cylindrical CIELAB (LCH) in the form of lch(hue, chroma, lum) or lch(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"
  }

Gutter Icon

  • 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