Sublime Text 2: how to change white space characters color?

后端 未结 4 1044
一整个雨季
一整个雨季 2021-02-20 11:59

The color seems to be linked to the foreground in themes. I assume it\'s using less alpha. Is there a way to control this?

4条回答
  •  花落未央
    2021-02-20 12:55

    There's now a Sublime plugin for this.

    1. Install the HighlightWhitespaces plugin

    2. Add the following color settings (tailored to your preference) to your color_scheme file. This file ends in .tmTheme and the path can be found by looking at the value for the key "color_scheme" in your settings file.

      
        name
        highlight.whitespace
        scope
        highlight.whitespace
        settings
        
          background
          #020202
          foreground
          #805050
        
      
      
    3. Specify that this color should be used by adding the following to the user settings of the HighlightWhitespaces plugin:

      {
          "highlight_whitespaces_space_highlight_scope_name": "highlight.whitespace",
          "highlight_whitespaces_tab_highlight_scope_name": "highlight.whitespace",
          "highlight_whitespaces_eol_highlight_scope_name": "highlight.whitespace",
          "highlight_whitespaces_mixed_highlight_scope_name": "highlight.whitespace"
      }
      
    4. Relax and enjoy :-)

提交回复
热议问题