Git Product home page Git Product logo

wannasing / colorhighlighter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from monnoroch/colorhighlighter

0.0 2.0 0.0 34.55 MB

ColorHighlighter - is a plugin for the Sublime text 2 and 3, which underlays selected hexadecimal colorcodes (like "#FFFFFF", "rgb(255,255,255)", "white", etc.) with their real color. Also, plugin adds color picker to easily modify colors.

Home Page: https://sublime.wbond.net/packages/Color%20Highlighter

Python 93.31% Prolog 2.95% C++ 3.74%

colorhighlighter's Introduction

#ColorHighlighter

ColorHighlighter is a plugin for the Sublime Text 2 and 3, which unobtrusively previews hexadecimal color values by underlaying the selected hex codes in different styles and icons. Also, plugin adds color picker, color format converter and less/sass variables navigation to easily modify colors.

Description

Description

Description

Installation :

  • Recommended - Using Sublime Package Control
    • ctrl+shft+p then select Package Control: Install Package
    • install Color Highlighter
  • Alternatively, download the package from GitHub into your Packages folder
  • For icons install ImageMagick
  • For color picker on linux install Qt5 framework.

Usage :

Just click or move the cursor (or multiple cursors) on the color code e.g. "#FFFFFF" and it'll be highlighted with its real color. These color formats are currently supported:

  • All CSS color formats.
  • Hexademical RGBA ("#FFFFFFFF").
  • Named colors like "green", "black" and many others.
  • Less/sass/scss/stylus variables (supports importing from another files).
  • [VAL, VAL, VAL] and [VAL, VAL, VAL, VAL] when editing *.sublime-theme files. Where VAL can be the following:
    • An integer: from 0 to 255.
    • A float value from 0.0 to 1.0, you can also skip leading zero (like that: .25)
    • A percentage from 0% to 100%.

Settings :

You can choose the highliting style from:

  • "Filled", "outlined", "none" in ST2.
  • "Filled", "outlined", "none", "underlined" (solid, strippled, squiggly) in ST3.

You can also turn on highlighting all colors at once. This mode has own highlighting style, so you can highlight all colors with underline and selected colors with filled rect.

You can also enable icons, which will be shown in the gutter of a file (ST3 only).

You can always turn off default keybindings via main menu.

Color picker usage:

Just put the cursor (or multiple cursors) on the color code and select "Choose color" in context menu (or press ctrl+shift+c). Select the color in a popup color picker and all color codes under your cursors will change. The change will preserve exact code format, so if you select two codes "#FFF" and "rgb(255,255,255)" and choose color "#FF0000", in the end you get two codes like that: "#FF00FF" and "rgb(255,0,0)".

Color converter usage:

Just put the cursor (or multiple cursors) on the color code and select "Convert color" in context menu (or press ctrl+shift+a). Input a color format to use and press enter. Format can be any format supported by this plugin, for example if you convert "rgb(255,255,255)" into format "hsv(1,1%,1%)" or just "hsv", you'll get "hsv(0, 0%, 100%)". You can also use shortcuts (rgb, rgba, etc...). Works with named colors (both ways).

Also, there is a Prev/Next color commands, triggered by ctrl+shift+, and ctrl+shift+. respectively to choose previous or next color format.

Less/sass/scss/stylus variables navigation:

Just put cursor on a variable, right click on it and press "Go to variable definition" and the plugin will open it. There is also a shortcut ctrl+alt+d.

colorhighlighter's People

Contributors

monnoroch avatar duydao avatar andytruett avatar loklaan avatar andjo avatar meesterdev avatar cl1ck avatar alfredbez avatar carlrevell avatar darkkain avatar pablosoria avatar xghostkillerx avatar soulchainer avatar

Watchers

James Cloos avatar wannasing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.