马上注册,免费下载更多dz插件网资源。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
今天玩Sublime ,结果安装了BracketHighlighter插件后,没效果,郁闷,度娘后总结如下:
BracketHighlighter插件能为Sublime Text提供括号,引号这类高亮功能,但安装此插件后,默认没有高亮,只有下划线表示,不是很醒目,需要配置:
1. 在Sublime Text中用package control安装BracketHighlighter;
2. 安装完成后,打开Preferences -> package settings -> Bracket Highlighter -> Bracket Settings – User,然后添加如下代码:
- {
- "bracket_styles": {
- "default": {
- "icon": "dot",
- // "color": "entity.name.class",
- "color": "brackethighlighter.default",
- "style": "highlight" },
- "unmatched": {
- "icon": "question",
- "color": "brackethighlighter.unmatched",
- "style": "highlight" },
- "curly": {
- "icon": "curly_bracket",
- "color": "brackethighlighter.curly",
- "style": "highlight" },
- "round": {
- "icon": "round_bracket",
- "color": "brackethighlighter.round",
- "style": "highlight" },
- "square": {
- "icon": "square_bracket",
- "color": "brackethighlighter.square",
- "style": "highlight" },
- "angle": {
- "icon": "angle_bracket",
- "color": "brackethighlighter.angle",
- "style": "highlight" },
- "tag": {
- "icon": "tag",
- "color": "brackethighlighter.tag",
- "style": "highlight" },
- "single_quote": {
- "icon": "single_quote",
- "color": "brackethighlighter.quote",
- "style": "highlight" },
- "double_quote": {
- "icon": "double_quote",
- "color": "brackethighlighter.quote",
- "style": "highlight" },
- "regex": {
- "icon": "regex",
- "color": "brackethighlighter.quote",
- "style": "outline" }
- }
- }
复制代码
3. 找到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(颜色主题),拉出来修改。
4. Monokai.tmTheme中添加如下代码:,和里面的dic标签t并列排即可。
- <dict>
- <key>name</key>
- <string>Bracket Default</string>
- <key>scope</key>
- <string>brackethighlighter.default</string>
- <key>settings</key>
- <dict>
- <key>foreground</key>
- <string>#FFFFFF</string>
- <key>background</key>
- <string>#A6E22E</string>
- </dict></dict><dict>
- <key>name</key>
- <string>Bracket Unmatched</string>
- <key>scope</key>
- <string>brackethighlighter.unmatched</string>
- <key>settings</key>
- <dict>
- <key>foreground</key>
- <string>#FFFFFF</string>
- <key>background</key>
- <string>#FF0000</string>
- </dict></dict><dict>
- <key>name</key>
- <string>Bracket Curly</string>
- <key>scope</key>
- <string>brackethighlighter.curly</string>
- <key>settings</key>
- <dict>
- <key>foreground</key>
- <string>#FF00FF</string>
- </dict></dict><dict>
- <key>name</key>
- <string>Bracket Round</string>
- <key>scope</key>
- <string>brackethighlighter.round</string>
- <key>settings</key>
- <dict>
- <key>foreground</key>
- <string>#E7FF04</string>
- </dict></dict><dict>
- <key>name</key>
- <string>Bracket Square</string>
- <key>scope</key>
- <string>brackethighlighter.square</string>
- <key>settings</key>
- <dict>
- <key>foreground</key>
- <string>#FE4800</string>
- </dict></dict><dict>
- <key>name</key>
- <string>Bracket Angle</string>
- <key>scope</key>
- <string>brackethighlighter.angle</string>
- <key>settings</key>
- <dict>
- <key>foreground</key>
- <string>#02F78E</string>
- </dict></dict><dict>
- <key>name</key>
- <string>Bracket Tag</string>
- <key>scope</key>
- <string>brackethighlighter.tag</string>
- <key>settings</key>
- <dict>
- <key>foreground</key>
- <string>#FFFFFF</string>
- <key>background</key>
- <string>#0080FF</string>
- </dict></dict><dict>
- <key>name</key>
- <string>Bracket Quote</string>
- <key>scope</key>
- <string>brackethighlighter.quote</string>
- <key>settings</key>
- <dict>
- <key>foreground</key>
- <string>#56FF00</string>
- </dict></dict>
复制代码
5. 然后再降修改完成的文件放到压缩包Color Scheme – Default.sublime-package.zip里边,最后改名Color Scheme – Default.sublime-package放回C:\Program Files\Sublime Text 3\Packages中;
效果图:
Tips:千万不要将Color Scheme – Default.sublime-package.zip解压再压缩,否则sublime无法识别这个文件;
原文网址:http://www.cnblogs.com/willingtolove/p/4657320.html
©DZ插件网所发布的一切资源仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。 网站部分内容来源于网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,得到更好的正版服务。 您在本站任何的赞助购买、下载、查阅、回复等行为等均表示接受并同意签订《DZ插件网免责声明协议》。 如有侵权请邮件与我们联系处理: discuzaddons@vip.qq.com 并出示相关证明以便删除。敬请谅解!
|
|