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

Rainbow​Brackets

by absop ST3

A rainbow brackets plugin for SublimeText3.

Details

Installs

  • Total 3K
  • Win 2K
  • OS X 1K
  • Linux 698
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 5 13 15 5 11 7 11 8 7 14 13 8 1 8 12 12 20 4 12 3 2 14 19 10 12 12 4 7 7 10 7 15 4 5 5 12 11 8 14 12 2 8 21 18 10 9
OS X 3 7 5 5 5 4 2 6 10 12 7 4 3 4 9 8 7 9 7 4 0 4 9 8 8 6 2 4 7 4 8 8 5 6 5 8 6 6 8 1 1 4 6 3 12 10
Linux 4 2 4 2 4 4 2 4 4 3 6 6 5 3 5 7 4 4 10 1 3 9 6 4 3 4 2 4 2 3 4 5 1 3 4 7 7 4 1 1 2 3 3 7 5 4

Readme

Source
raw.​githubusercontent.​com

RainbowBrackets

License Downloads

Introduction

Hi, welcome to use my plugins!

This plugin I wrote for SublimeText is to highlight brackets. It matches brackets you have added for the file type, then gives brackets at different levels different colors, in the cycle of the number of colors. colors are gave in the settings file, by default, there are 7 type of colors.

parentheses, braces, brackets are treated as brackets. brackets are configured in setting file, it means you can use R as a opening bracket and L as a close bracket. But, not all strings can be used as brackets, it depends on the token rules which sublime_text has used in the file. The main reason for this is to ignore comments and strings.

Some plugins such as Color Highlighter only works in .tmTheme formated color scheme, but you needn't worry about that when using this plugin, this plugin works well both in .sublime-color-scheme and tmTheme formated color scheme. Not only that,whenever you change you color scheme setting, it will readapt the new color scheme's background, without restarting sublime_text.

Please don't mind my poor English. I'm trying to learn it.:-)

Installation

Clone or download this repository to your SublimeText's Packages directory. Note that the directory name should be the name of this repository. Also, if you have installed Package Control, just use it, they have accepted my plugin.

Usage

The mode "part" will only highlight brackets around the cursor, with a threshold for the number of characters to be searched. For the reason of speed, you can use this mode, but I do not recommend it, you will know.

Settings are easy to understand, if you have patience, try to change them and notice changes of views.

Add your language

Adding setting

"json": {}

to "languages" will make JSON file be supported. If you care about more, the following settings means, at a JSON file, “(” and “)” will be remove from global "brackets" setting, so it will get a better speed and sometimes is more advisable. files with extensions listed in "extensions" will be treated as JSON files.

mode "all" indicated that when you open files treated as JSON files, the plugin will search full text to highlight brackets added in global "brackets" setting, except bracket-pairs whose left-part are listed in "!brackets".

"json": {
    "extensions": [
        "json",
        "sublime-settings",
        "sublime-menu",
        "sublime-build",
        "sublime-keymap",
        "sublime-color-scheme"
    ],
    "mode": "all",
    "!brackets": ["("],
}

Screenshots

  • Material color scheme, JSON file.
  • Material color scheme, Scheme language
  • Material lighter color scheme, Scheme language