sublime text / textmate 配色方案 - 更改突出显示颜色

sublime text / textmate color scheme - change highlight color

我希望 sublime text 主题的一些高亮颜色更强烈。

1) 当我select一个词时,sublime text会标记文件中这个词的所有实例。它在单词周围用非常浅的方块标记它。我想知道如何改变颜色,使它更强烈,如果我可以给正方形的内部着色。

2) 当文本符号在方括号/括号的一侧时,它用很浅的下划线标记两侧。同样的事情-我想知道我是否以及如何控制这条下划线的颜色和强度,以及我是否也可以在下划线上方(整个字符背景)上色。

当我使用 "Neon" 配色方案时,我添加了两张完全符合我的意思的图片: https://github.com/MattDMo/Neon-color-scheme

我应该更改哪些字段? 想不通自己。

谢谢。

我是 Neon 主题的作者 - 感谢您使用它!不幸的是,您展示的两个示例,匹配选择的自动突出显示和括号匹配,似乎不能单独设置主题。如果您查看 Neon.tmTheme 第 20-47 行的源代码,您会看到为所有内容设置各种颜色的键 除了 语法突出显示 - 选择颜色和大纲、插入符号颜色、缩进指南等。我在过去几年中收集了所有这些值,查看了许多不同的配色方案和大量谷歌搜索,但我还没有找到任何专门针对您的设置询问。相反,它们似乎是用 caret 颜色或更可能是 foreground 颜色着色(它们在 Neon 中是相同的)。

因此,不幸的是,对于第一个问题您无能为力,但有一个括号匹配的解决方案 - BracketHighlighter 插件。

Neon 包括 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"
    }
},

希望这对您有所帮助。如果您对 Neon 有任何其他问题、疑虑或一般反馈,请随时 open an issue,我会尽力而为。