Skip to content

BracketHighlighter settings

Randy Lai edited this page Nov 3, 2015 · 20 revisions

For those who are interested in getting BracketHighlighter to work, please put the following to bh_core.sublime-settings.

{
    "user_scope_brackets": [
    {
        "name": "latex_plus_dollar",
        "open": "((?<!\\\\)\\$)",
        "close": "((?<!\\\\)\\$)",
        "style": "default",
        "scopes": ["text.tex.latex meta.function.environment.math.latex"],
        "sub_bracket_search": "true",
        "enabled": true
    }
    ],

    "user_brackets": [
    {
        "name": "latex_plus_langle_rangle",
        "open": "(\\\\langle)",
        "close": "(\\\\rangle)",
        "style": "default",
        "language_filter": "whitelist",
        "language_list": ["LaTeX+"],
        "scope_exclude": ["comment"],
        "find_in_sub_search": "true",
        "enabled": true
    },
    {
        "name": "latex_plus_left_right",
        "open": "(\\\\left(?:[()\\[\\]|]|\\\\[{}|]|\\\\[a-zA-Z]+))",
        "close": "(\\\\right(?:[()\\[\\]|]|\\\\[{}|]|\\\\[a-zA-Z]+))",
        "style": "default",
        "language_filter": "whitelist",
        "language_list": ["LaTeX+"],
        "scope_exclude": ["comment"],
        "find_in_sub_search": "true",
        "enabled": true
    },
    {
        "name": "latex_plus_begin_end",
        "open": "(\\\\begin\\{\\s*(?:\\w*)\\*?\\s*\\})",
        "close": "(\\\\end\\{\\s*(?:\\w*)\\*?\\s*\\})",
        "style": "default",
        "language_filter": "whitelist",
        "language_list": ["LaTeX+"],
        "scope_exclude": ["comment"],
        "find_in_sub_search": "true",
        "enabled": true
    },
    {
        "name": "latex_plus_square",
        "open": "((?<!\\\\)\\\\\\[)",
        "close": "((?<!\\\\)\\\\\\])",
        "style": "square",
        "language_filter": "whitelist",
        "language_list": ["LaTeX+"],
        "scope_exclude": ["comment"],
        "find_in_sub_search": "true",
        "enabled": true
    },
    {
        "name": "latex_plus_curly",
        "open": "((?<!\\\\)\\\\\\{)",
        "close": "((?<!\\\\)\\\\\\})",
        "style": "curly",
        "language_filter": "whitelist",
        "language_list": ["LaTeX+"],
        "scope_exclude": ["comment"],
        "find_in_sub_search": "true",
        "enabled": true
    },
    {
        "name": "latex_plus_round",
        "open": "((?<!\\\\)\\\\\\()",
        "close": "((?<!\\\\)\\\\\\))",
        "style": "round",
        "language_filter": "whitelist",
        "language_list": ["LaTeX+"],
        "scope_exclude": ["comment"],
        "find_in_sub_search": "true",
        "enabled": true
    }
    ]
}
Clone this wiki locally