Rainbowth
Rainbowth is a Sublime Text 3 plugin that highlights matching parentheses in Lisp source code.
Details
Installs
- Total 12K
- Win 6K
- Mac 4K
- Linux 3K
Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 3 | 1 | 0 | 0 | 0 | 1 | 1 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Mac | 2 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Linux | 1 | 0 | 1 | 2 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 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:
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.
Setup
The color scheme must be unpacked in the user's Packages
folder and writable for Rainbowth to be able to automatically insert its palette.
The default themes can be located in the Color Scheme - Default.sublime-package
(or Color Scheme - Legacy.sublime-package
on newer Sublime Text installations) file in the Sublime Text installation folder. Use a zip archive manager to extract the .tmTheme
file corresponding to the theme you like. There is currently no support for the new .sublime-color-scheme
file format.
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"]
}
}
The languages
setting is list of languages included (or excluded if exclude_languages
setting is set to true) in highlighting.
{
"language_mode": "include",
"languages": ["lisp", "scheme", "clojure", "clojurescript", "hylang"]
}
Contributing
Comments, criticisms, and code are all eagerly welcomed.