sublime更改BracketHighlighter插件的样式

阅读更多

BracketHighlighter安装 省略····

只记录一下BracketHighlighter配置,配置效果如下图所示,一种是下划线色彩

一种是竖起来的胖光标彩色
sublime更改BracketHighlighter插件的样式_第1张图片
 

第二种色彩


sublime更改BracketHighlighter插件的样式_第2张图片
 

 

 

首选选择

Pregerence > Package Settings > BracketHighlighter > Bracket Settings - User

查看user的配置。配置是依JSON的形式存在的,在看配置之前,要先了解几个基本下标概念

 

对应的关系:
{} - curly
() - round
[] - square
<> - angle
“” ‘’ - quote

 

 

style: solid、underline、outline、highlight

 

 在用户下面输入下面的配置

写道
{
// Define region highlight styles
"bracket_styles": {
// "default" and "unmatched" styles are special
// styles. If they are not defined here,
// they will be generated internally with
// internal defaults.

// "default" style defines attributes that
// will be used for any style that does not
// explicitly define that attribute. So if
// a style does not define a color, it will
// use the color from the "default" style.
"default": {
"icon": "dot",
// BH1's original default color for reference
"color": "entity.name.class",
"color": "brackethighlighter.default",
"style": "highlight"
},

// This particular style is used to highlight
// unmatched bracekt pairs. It is a special
// style.
"unmatched": {
"icon": "question",
"color": "brackethighlighter.unmatched",
"style": "highlight"
},
// User defined region styles
"curly": {
"icon": "curly_bracket",
"color": "brackethighlighter.curly",
"style": "underline"
},
"round": {
"icon": "round_bracket",
"color": "brackethighlighter.round",
"style": "underline"
},
"square": {
"icon": "square_bracket",
"color": "brackethighlighter.square",
"style": "underline"
},
"angle": {
"icon": "angle_bracket",
"color": "brackethighlighter.angle",
"style": "underline"
},
"tag": {
"icon": "tag",
"color": "brackethighlighter.tag",
"style": "highlight"
},
"single_quote": {
"icon": "single_quote",
"color": "brackethighlighter.quote",
"style": "underline"
},
"double_quote": {
"icon": "double_quote",
"color": "brackethighlighter.quote",
"style": "underline"
},
"regex": {
"icon": "regex",
"color": "brackethighlighter.quote",
"style": "outline"
}
},

}

 

找到Sublime text3安装目录下的Packages中的Color Scheme - Default.sublime-package 类试C:\Program Files\Sublime Text 3\Packages\Color Scheme - Default.sublime-package

添加后缀名Color Scheme - Default.sublime-package.zip,解压找到Monokai.tmTheme,拉出来修改。


sublime更改BracketHighlighter插件的样式_第3张图片
 

 

将下面代码和上面的文件中的合并 并列即可,如果操作不成,可以下载下面的文件进行覆盖

写道

name
Bracket Default
scope
brackethighlighter.default
settings

foreground
#FFFFFF
background
#A6E22E




name
Bracket Unmatched
scope
brackethighlighter.unmatched
settings

foreground
#FFFFFF
background
#FF0000




name
Bracket Curly
scope
brackethighlighter.curly
settings

foreground
#FF00FF




name
Bracket Round
scope
brackethighlighter.round
settings

foreground
#E7FF04




name
Bracket Square
scope
brackethighlighter.square
settings

foreground
#FE4800




name
Bracket Angle
scope
brackethighlighter.angle
settings

foreground
#02F78E




name
Bracket Tag
scope
brackethighlighter.tag
settings

foreground
#FFFFFF
background
#0080FF




name
Bracket Quote
scope
brackethighlighter.quote
settings

foreground
#56FF00

 

 

如果想要更改样式的,只需要更改配置Bracket Settings - User文件中的style样式既可以,不在演示

 

 

 

 

 

此为Color Scheme - Default.sublime-package 更改好的文件直接粘贴使用即可。已经成功的可以忽略

链接:http://pan.baidu.com/s/1gf0pZZd 密码:72j5

  • sublime更改BracketHighlighter插件的样式_第4张图片
  • 大小: 75 KB
  • sublime更改BracketHighlighter插件的样式_第5张图片
  • 大小: 17.2 KB
  • sublime更改BracketHighlighter插件的样式_第6张图片
  • 大小: 15.9 KB
  • 查看图片附件

你可能感兴趣的:(sublime更改BracketHighlighter插件的样式)