Giter Club home page Giter Club logo

rainbowth's Introduction

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.

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.

rainbowth's People

Contributors

whitequark avatar andkerosine avatar xurxodiz avatar fedragon avatar lemuelcushing avatar joncom avatar jackenmen avatar ankushdharkar avatar chuanyiz avatar starlitghost avatar kernelp4nic avatar

Watchers

James Cloos avatar  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.