用于Django模板语法的Sublime Text 2 BracketHighlighter

时间:2015-03-18 00:39:47

标签: django sublimetext2 syntax-highlighting

我希望BracketHighlighter突出显示我的django模板括号{%}和{{}}。

我对User / bh_core.sublime-settings进行了以下编辑:

"user_brackets": [
    {
        "name": "django",
        "open": "(\\{\\%)",
        "close": "(\\%\\})",
        "style": "django",
        "scope_exclude": ["string", "comment"],
        "scope_exclude_exceptions": ["text.tex string.other.math"],
        "language_filter": "blacklist",
        "language_list": ["Plain text", "Hex"],
        "find_in_sub_search": "true",
        "ignore_string_escape": true,
        "enabled": true
    }

但它似乎不起作用(即使重新启动ST2后)。我也试过使用“user_scope_brackets”,没有运气。有人知道解决方案吗?

1 个答案:

答案 0 :(得分:-1)

通过包管理器安装支持Django模板编辑的包。

请查看以下链接,了解如何安装和继续使用包管理器

https://packagecontrol.io/