So, vim users have https://github.com/kien/rainbow_parentheses.vim
Emacs users have http://www.emacswiki.org/emacs/RainbowDelimiters
Is there something similar for users of Sublime Text (2 or 3?)
I already have bracket highlighter, which lets me highlight the innermost brackets, but I edit a lot of complex SQL in sublime text 3, and sometimes lose track of my parentheses. Can you edit the configuration files for this to match the behavior of the others?
Bracketeer allows you to perform operations on brackets, but I'd like to just see them in colors.
As requested, some example sql:
Select name, sum(cost) as total_cost, count(*) as count from personnel p, order o where p.prsnl_id = o.prsnl_id and o.prsnl_id in ( Select prsnl_id from organization_personnel_relation where org_id in (Select org_id from organization_personnel_relation where prsnl_id = (Select prsnl_id from personnel where prsnl_name = 'test'))) and cost is not null group by name order by total_cost desc limit 50;
I know it's not super deep nesting, but there are cases where I do see very deep nesting of parentheses, and I still would like to learn a lisp one day.
preguntado el 09 de septiembre de 13 a las 22:09
Here is another similar package:
Este plugin [RainbowBrackets] 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.
This isn't ideal, but you can make sure you have the following settings:
"match_brackets": true, "match_brackets_angle": true, "match_brackets_braces": true, "match_brackets_content": true, "match_brackets_square": true,
And then when you are in a paren or bracket, the corresponding one will be highlighted.
This package seems like what you were looking for:
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