mallowigi / color-highlighter

JetBrains plugin to preview colors directly from within the code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color Highlighter


logo

Preview your colors inline!

Features

  • Colorize different color formats directly in the code

    • HEX with or without hash (#) with alpha support
    • rgb(), argb() and rgba()
    • hsl() and hsla()
    • Color Tuples ((r, g, b[, a]))
    • Java/Kotlin/Scala -> ColorUiResource
    • Java/Kotlin: [new ]Color(r, g, b[, a])
    • Objective-C: [NSColor colorWith...]
    • ASCII Colors and Web Colors (https://en.wikipedia.org/wiki/Web_colors)
    • FlatUI Colors (https://flatuicolors.com/)
    • Custom Colors (NEW!)
  • Supports most languages (more to come)

    • HTML
    • XML
    • YAML
    • Properties
    • JSON
    • JavaScript
    • TypeScript
    • Scala
    • Java
    • Kotlin
    • Ruby
    • Python
    • PHP
    • Go
    • ObjectiveC
    • Swift
    • C
    • C++
    • C#
    • Markdown
    • Dart
    • SQL
    • R
    • Rust (NEW)
    • Lua (NEW)
    • Toml (NEW)
    • Vue (NEW)
    • Svelte (NEW)
    • CSS Languages (SCSS, Less, Stylus, PostCSS)
    • Markup languages (HTML, XML, SVG, JSX, TSX, etc)
    • Text (Experimental)
  • Different styles:

    • Background
    • Foreground
    • Border
    • Underline
    • Inline (small colored icon near the color)
  • Ability to preview color in the gutter

  • Options to copy gutter color in different formats (rgb, hsl, etc)

  • Specify between rgba and argb detection in hex colors

  • Fine-toggling:

    • Hexadecimal detection (ff0000, ff0000ff, f0f)
    • Color Tuples ((r, g, b[, a]))
    • Color names
    • Java Color Constructor (new Color(r, g, b[, a]))
    • Java Color methods (Color.BLACK, Color.RED)
    • Kotlin Color Constructor (Color(r, g, b[, a]))
    • Kotlin Color methods (Color.BLACK, Color.RED)
    • Scala Color Constructor (new Color(r, g, b[, a]))
    • Scala Color methods (Color.BLACK, Color.RED)
    • C# Color Constructor (Color.FromArgb(r, g, b[, a]))
    • Markdown Parsing
    • Text Parsing

Screenshots

PHP

PHP

Python

Python

Ruby

Ruby

Go

Go

Objective C

ObjectiveC

Swift

Swift

JavaScript

JavaScript

Kotlin

Kotlin

Java

Java

JSON

JSON

Properties

Properties

Acknowledgements

Plugin Icon made by Vectors Market from Flaticon, licensed by Creative Commons BY 3.0

Authors:

Contributors:

About

JetBrains plugin to preview colors directly from within the code.

License:MIT License


Languages

Language:Kotlin 55.1%Language:Java 11.8%Language:JavaScript 4.4%Language:TypeScript 4.2%Language:Dart 4.2%Language:Ruby 3.5%Language:Scala 3.2%Language:HTML 3.2%Language:Python 2.0%Language:Go 2.0%Language:Rust 1.8%Language:Swift 1.7%Language:PHP 1.6%Language:Lua 1.3%Language:Svelte 0.1%Language:Vue 0.0%Language:CSS 0.0%Language:R 0.0%Language:Less 0.0%Language:SCSS 0.0%Language:Stylus 0.0%