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

Rainbow​Brackets

by absop ST3

A rainbow brackets plugin for SublimeText3.

Details

Installs

  • Total 2K
  • Win 1K
  • OS X 690
  • Linux 473
Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3
Windows 4 9 10 11 8 4 7 4 12 13 8 8 6 6 6 12 5 12 10 8 12 5 10 12 6 15 12 8 7 13 7 14 8 4 8 7 10 15 12 12 13 6 4 10 7 18
OS X 5 3 4 8 2 4 4 3 3 7 5 4 10 2 5 7 9 3 10 6 2 2 5 2 4 7 7 1 3 4 2 9 8 4 1 1 6 9 8 7 6 3 3 15 8 10
Linux 1 4 5 7 4 2 3 1 4 5 4 4 6 2 1 5 1 7 6 4 7 5 6 5 2 5 6 2 3 4 4 4 4 3 1 2 3 8 5 8 10 2 1 4 6 3

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