我是霓虹燈主題的作者 - 感謝您使用它!不幸的是,你展示的兩個例子,匹配選擇和括號匹配的自動突出顯示,似乎沒有單獨的主題。如果您看看Neon.tmTheme
第20-47行的來源,您會看到爲設置各種顏色的鍵,但的語法突出顯示 - 選擇顏色和輪廓,插入符號的顏色,縮進指南等。已經收集了所有這些值在幾年的時間裏看着很多不同的配色方案和大量的谷歌搜索,但我還沒有找到任何專門針對你所問的設置。相反,它們看起來是用caret
顏色或更可能是顏色(它們在Neon中都是相同的)着色。
因此,雖然第一個問題沒有太多可以做,但支持匹配的解決方案 - 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,我會看看我能做些什麼。
嘗試使用[scopehunter軟件包](https://packagecontrol.io/packages/ScopeHunter)。它會告訴你什麼是選擇的定義。 –