Bracket Highlighter is a fork of pyparadigm’s SublimeBrackets and SubimeTagmatcher merged together. I never intended this fork to be anything more than me fixing a couple of things, but then it took on a life of its own.
There are a number improvements to the functionality of the originals and new features:
-
Customizable debounce and search thresholds to ensure the plugin doesn’t get bogged down in big files
-
Matches tags; brackets: (), ], <>, {}; and quotes: single and double (uses string scope)
-
Ability to blacklist or whitelist languages from matching specific brackets, tags, quotes
-
Ability to turn off matching compeletly off for any bracket, quote, or tag
-
On demand shortcut to override search threshold and search until the match is made no matter how far it must search
-
Highlight styles: colored blocks, colored outline, or colored underline
-
Highlight entire Tag or just the brackets of a tag
-
Show line count and character count between blocks when using on demand shortcut
-
Settings are tweakable in the settings file
-
Settings file and keymap files are accessible from the menu
-
Bracket plugins: (this might sound silly to have plugins inside a plugin, but it is actually useful)
Plugins:
BracketHighlighter does the work of finding matching brackets, tags, and quotes. Bracket plugins allows you to leverage this work to find the regions without having to duplicate the logic in other plugins. Plugins can be dropped into the BracketHighlighter folder, or dropped in their own plugin folder (I may separate plugins into their own repo in the future).
Current plugins:
-
Swap quote type of string
: changes from single quoted to double quoted or vice versa. Accounts for escaped quotes -
Bracket select
: Change the selection inside the bracket, tag, or quote block. Move the cursor to first bracket of match or last and focus. Select entire content between matched brackets, quotes, or tags -
Tag name select
: select the tag name of the opening and closing HTML tag to edit the names at the same time -
Tag attribute select
: cycle through selecting the attributes of an HTML tag -
Fold brackets
: Fold code by brackets -
Swap brackets
: Change current matched brackets to specified bracket type
All of these default plugins come bound to shortcuts (there are so many shortcuts in ST2 that I did the best I could, if you don’t like the shortcuts, feel free to change them and bind them to ones that make sense for you. If you don’t like some of the plugins, you can toss them and remove the shortcut.).
The repo is here: BracketHighlighter
Feel free to let me know what you think; good or bad. Make suggestions or anything else.