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 2K
  • Win 845
  • OS X 1K
  • Linux 538
Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 0 0 3 2 1 2 3 0 3 4 2 0 2 2 4 3 1 2 0 2 0 3 5 1 3 2 3 7 3 0 3 2 1 3 5 2 2 2 0 0 2 2 0 2 1 0
OS X 0 0 5 4 0 2 4 0 1 2 1 2 6 0 1 1 3 0 0 4 4 3 1 1 2 0 3 0 5 2 0 3 1 3 7 3 1 4 0 0 2 0 1 3 1 2
Linux 0 0 0 1 4 2 0 1 1 0 2 0 2 1 2 0 2 0 2 0 4 0 1 0 0 0 1 1 0 1 1 0 1 1 1 4 1 0 1 0 0 0 1 1 0 0

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.