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 285K
  • Win 212K
  • Mac 40K
  • Linux 33K
May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16
Windows 13 65 52 38 49 52 67 55 65 55 76 82 73 56 64 68 54 67 39 52 75 62 62 60 33 54 46 68 61 55 49 40 38 61 59 64 74 79 40 41 53 58 66 107 95 33
Mac 1 9 9 8 7 10 6 11 8 12 5 5 8 15 15 11 15 4 6 5 8 13 16 10 2 6 16 10 11 12 8 7 12 14 11 9 16 16 7 8 12 10 11 14 6 11
Linux 1 10 9 7 2 5 8 7 12 8 11 5 11 9 8 14 12 8 11 10 16 10 12 14 10 6 6 13 3 11 11 9 13 12 9 13 10 15 10 15 11 13 11 19 9 6

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