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 300K
  • Win 222K
  • Mac 43K
  • Linux 35K
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 29 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 Feb 13
Windows 2 40 37 33 52 30 37 67 53 40 50 40 22 28 49 41 58 39 51 31 29 65 52 58 36 78 24 35 47 43 44 41 68 17 28 34 40 42 88 83 22 31 28 55 31 28
Mac 0 5 5 6 7 5 4 5 11 22 9 7 5 3 11 12 8 9 3 8 5 7 6 10 5 5 4 4 8 2 5 10 10 5 5 14 12 15 8 12 10 5 10 9 5 4
Linux 0 4 10 8 8 6 6 8 10 10 7 3 5 6 6 12 2 12 8 5 8 11 14 10 5 7 4 11 8 12 11 9 10 4 13 9 12 10 10 9 14 9 9 8 4 8

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