ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Rainbowth

by whitequark ST3

Rainbowth is a Sublime Text 3 plugin that highlights matching parentheses in Lisp source code.

Details

Installs

  • Total 3K
  • Win 935
  • OS X 1K
  • Linux 589
Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29
Windows 1 1 1 2 1 4 2 3 0 4 4 3 10 6 7 8 0 0 0 3 3 3 0 1 0 2 1 3 0 2 1 0 2 2 4 4 0 1 1 0 1 0 0 1 1 2
OS X 2 3 1 0 0 2 0 4 3 5 3 4 5 6 4 1 6 1 1 0 0 5 3 3 0 1 0 1 2 1 0 0 1 2 3 2 2 3 2 2 2 3 0 2 10 1
Linux 0 2 2 2 0 0 0 1 2 0 1 2 3 1 1 1 1 0 2 1 3 0 0 0 2 0 0 1 0 0 2 1 1 1 0 0 0 2 1 0 1 0 1 2 0 1

Readme

Source
raw.​githubusercontent.​com

Rainbowth

What is this?

Rainbowth is a Sublime Text 3 plugin that automagically highlights matching parentheses, brackets, and curly braces in source code. While the name does imply a certain sequence of colors, the palette used to paint them is entirely configurable; nonetheless, the effect is perhaps best demonstrated when viewed with a theme like Tomorrow Night:

img

Why?

It took about three hours for Racket to grow on me. I know with a fair amount of certainty that I'd like to master it, but the structure is going to take some getting used to. This plugin attempts to overcome one of the primary barriers to entry, that of not being able to tell what's related beyond the matching of a single parenthetical pair.

Installation

Install Rainbowth via Package Control, or clone this repository directly into your Packages directory.

The color scheme must be unpacked in the user's Packages folder and writable for Rainbowth to be able to automatically insert its palette.

Configuration

Rainbowth's default configuration can be customized by creating a Rainbowth.sublime-settings file in Packages/User.

The palettes setting is a mapping of theme names to the list of colors to use for painting parentheses while using that theme, outermost first. When using a theme not specified, the default ROYGBIV sequence will be used.

{
  "palettes": {
    "default": ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]
  }
}

Highlighting for a given language can be enabled (or disabled) by updating the languages setting.

{
  "languages": ["lisp", "scheme", "clojure", "clojurescript", "hylang"]
}

Contributing

Comments, criticisms, and code are all eagerly welcomed.