2015-10-19 176 views
2

我想要一些崇高的文字主题的高亮颜色更加激烈。崇高的文字/ textmate配色方案 - 改变高亮颜色

1)当我选择一个单词时,崇高文本标记文件中该单词的所有实例。它在这个词的周围用非常明亮的方块标记它。我想知道如何改变颜色,使其更加激烈,如果我可以在广场的内部着色。

2)当文本符号位于括号/括号的一侧时,它会用非常轻的下划线标记两侧。同样的事情 - 我想知道是否以及如何控制下划线的颜色和强度,以及如果我还可以在下划线(整个角色背景)之上着色。

我加2张图片的正是我的意思,当我使用了 “霓虹灯” 颜色方案: https://github.com/MattDMo/Neon-color-scheme

instances brackets

我应该改变哪些领域? 找不出我自己。

谢谢。

+0

尝试使用[scopehunter软件包](https://packagecontrol.io/packages/ScopeHunter)。它会告诉你什么是选择的定义。 –

回答

1

我是霓虹灯主题的作者 - 感谢您使用它!不幸的是,你展示的两个例子,匹配选择和括号匹配的自动突出显示,似乎没有单独的主题。如果您看看Neon.tmTheme第20-47行的来源,您会看到为设置各种颜色的键,但的语法突出显示 - 选择颜色和轮廓,插入符号的颜色,缩进指南等。已经收集了所有这些值在几年的时间里看着很多不同的配色方案和大量的谷歌搜索,但我还没有找到任何专门针对你所问的设置。相反,它们看起来是用caret颜色或更可能是​​颜色(它们在Neon中都是相同的)着色。

因此,虽然第一个问题没有太多可以做,但支持匹配的解决方案 - BracketHighlighter插件。

Neon with BracketHighlighter

霓虹灯包括settings为BracketHighlighter,因此,所有你需要做的就是本身配置插件来使用它们。这里是我使用的"bracket_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": "underline" 
    }, 

    // This particular style is used to highlight 
    // unmatched bracekt pairs. It is a special 
    // style. 
    "unmatched": { 
     "icon": "question", 
     "color": "brackethighlighter.unmatched", 
     "style": "outline" 
    }, 
    // 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": "outline" 
    }, 
    "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": "underline" 
    } 
}, 

希望这可以帮助你。如果您有任何其他问题,疑虑或有关霓虹灯的一般反馈,请随时致电open an issue,我会看看我能做些什么。

+0

你好。非常感谢你。无法想象我会收到这样一个充分和详细的答案:)。并感谢您撰写主题。 – user1952686

+0

@ user1952686没问题,很乐意帮忙。如果这个答案[解决你的问题],请考虑[接受](http://meta.stackexchange.com/questions/5234/how-does-accepting通过点击答案左边的复选标记/勾号,将其变为绿色。这标志着您的问题已经解决,您的满意,并为您和回答者授予[声誉](http://stackoverflow.com/help/whats-reputation)。 – MattDMo