• Stars
    star
    109
  • Rank 319,077 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🎨 Lightweight Color Highlight colorizer for Sublime Text

🎨 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: 3/4 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 (C) 2018 German Mendez Bravo (Kronuz). All rights reserved.

MIT license

This plugin was initially a fork of https://github.com/Monnoroch/ColorHighlighter

More Repositories

1

pyScss

pyScss, a Scss compiler for Python
CSS
582
star
2

Xapiand

Xapiand: A RESTful Search Engine
C++
363
star
3

esprima-python

ECMAScript parsing infrastructure for multipurpose analysis
Python
206
star
4

cpp-btree

Modern C++ B-tree containers
C++
178
star
5

KomodoEdit-SublimeCodeIntel

Python
119
star
6

SublimeLinter

40
star
7

constexpr-phf

Computes a constexpr (minimal) perfect hash function
C++
32
star
8

TextMarker

πŸ– Text Marker (Highlighter) highlights words in Sublime Text
Python
20
star
9

Kronuz-Theme

Kronuz Theme for Sublime Text 3
16
star
10

SublimeCodeIntel

πŸ’‘ SublimeCodeIntel LSP
Python
14
star
11

ansi2html

Simple Python tool to convert ANSI color characters to HTML with colored style.
Python
14
star
12

base-x

BaseX encoder / decoder for C++
C++
12
star
13

IndentSize

Sublime Text 3 plugin for adding indent_size setting
Python
8
star
14

pyXapiand

Xapian indexing and querying server implemented in Python
Python
5
star
15

iscroll-overflow

Similar to iScroll4 (lite), using native overflow
JavaScript
3
star
16

django-gitlist

Django GitList
JavaScript
2
star
17

logkext

logKext is a freeware open-source keylogger for OS X that hooks into the kernel to bypass userspace security measures.
C++
2
star
18

react-gestalt-masonry

Masonry ported to TypeScript from pinterest/gestalt
TypeScript
1
star
19

leetcode

C++
1
star
20

OpenLegends

C++
1
star
21

console-colorizer

Adds colored console logging (for node and browser)
TypeScript
1
star
22

HTML-CodeIntel

HTML Plugin for SublimeCodeIntel LSP
JavaScript
1
star
23

KomodoEdit-CodeIntel

C
1
star
24

fsc

FreeBSD Services Control Utilities
C
1
star
25

docker-nginx

Alpine Docker image with Nginx 1.14.0 + LUA + Push Stream +H264 streaming + Headers More
Dockerfile
1
star
26

SublimeStackTracer

What are my Sublime Text plugins doing?
Python
1
star
27

react-gestalt-collage

Collage ported to TypeScript from pinterest/gestalt
TypeScript
1
star