崇高的文本2:我如何改变行号突出显示的颜色?

时间:2022-06-18 07:34:41

As the subject says, I want to change to something other than the very light grey as shown below (line 319). I have a hard time seeing that, especially when doing a 'find in files' command.

正如题目说的,我想改变一些东西,而不是像下面所示的浅灰色(第319行)。我很难看出这一点,尤其是在执行“在文件中查找”命令时。

崇高的文本2:我如何改变行号突出显示的颜色?

6 个解决方案

#1


168  

The easy way: Pick an alternative Color Scheme:

简单的方法:选择另一种配色方案:

Preferences > Color Scheme > ...pick one

偏好>配色方案>…选择一个

The more complicated way: Edit the current color scheme file:

更复杂的方法:编辑当前的配色方案文件:

Preferences > Browse Packages > Color Scheme - Default > ... edit the Color Scheme file you are using:

浏览软件包>颜色方案-默认>…编辑您正在使用的配色方案文件:

Looking at the structure of the XML, drill down into dict > settings > settings > dict >

查看XML的结构,深入到dict >设置>设置> dict b3

Look for the key (or add it if it's missing): lineHighlight. Add a string with an #RRGGBB or #RRGGBBAA format.

查找关键字(或在缺少的情况下添加):lineHighlight。添加一个带有#RRGGBB或#RRGGBBAA格式的字符串。

#2


14  

On windows 7, find

在windows 7中,找到

C:\Users\Simion\AppData\Roaming\Sublime Text 2\Packages\Color Scheme - Default

Find your color scheme file, open it, and find lineHighlight.
Ex:

找到你的配色方案文件,打开它,并找到线高光。例:

<key>lineHighlight</key>
<string>#ccc</string>

replace #ccc with your preferred background color.

用你喜欢的背景颜色替换#ccc。

#3


13  

tmtheme-editor.herokuapp.com seems pretty nice.

tmtheme-editor.herokuapp.com看起来很不错。

On the mac, the default theme files are in ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ -\ Default

在mac上,默认的主题文件是~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ - default

On Win7, the default theme files are in %appdata%\Sublime Text 2\Packages\Color Scheme - Default

在Win7中,默认的主题文件是%appdata%\Sublime Text 2\Packages\Color Scheme - default。

#4


6  

For Sublime Text 3, all I had to do was add "highlight_line": true to my user settings file: Preferences -> Settings - User. It was only once that preference was set that all the color scheme lineHighlight settings took effect.

对于卓越的文本3,我所要做的就是添加“highlight_line”:对我的用户设置文件:首选项->设置-用户。只有在设置好偏好之后,所有的配色方案线高亮设置才会生效。

Hopefully this will save someone else some of this same flailing about.

希望这能帮别人省些钱。

#5


5  

This post is for Sublime 3.

I just installed Sublime 3, the 64 bit version, on Ubuntu 14.04. I can't tell the difference between this version and Sublime 2 as far as user interface. The reason I didn't go with Sublime 2 is that it gives an annoying "GLib critical" error messages.

我刚刚在Ubuntu 14.04上安装了崇高3,64位版本。就用户界面而言,我无法区分这个版本和Sublime 2之间的区别。我没有使用Sublime 2的原因是,它会给出令人讨厌的“GLib critical”错误消息。

Anyways - previous posts mentioned the file /sublime_text_3/Packages/Color\ Scheme\ -\ Default.sublime-package

不管怎样——之前的文章提到了文件/sublime_text_3/Packages/Color\ Scheme\ -\ - Default.sublime-package

I wanted to give two tips here with respect to this file in Sublime 3:

关于这个文件,我想给出两点建议:

  1. You can edit it with pico and use ^W to search the theme name. The first search result will bring you to an XML style entry where you can change the values. Make a copy before you experiment.
  2. 您可以编辑pico和使用^ W来搜索主题的名称。第一个搜索结果将带您到一个XML样式的条目,您可以在其中更改值。做实验前先复印一份。
  3. If you choose the theme in the sublime menu (under Preferences/Color Scheme) before you change this file, then the changes will be cached and your change will not take effect. So delete the cached version and restart sublime for the changes to take effect. The cached version is at ~/.config/sublime-text-3/Cache/Color Scheme - Default/
  4. 如果您在更改此文件之前选择了sublime菜单(在首选项/配色方案下)中的主题,那么更改将被缓存,您的更改将不会生效。因此,删除缓存的版本,重新启动sublime以使更改生效。缓存的版本是~/。配置/ sublime-text-3 /缓存/配色方案-默认的/

#6


2  

If you have SublimeLinter installed, your theme (at least it ST3) may end up in .../Packages/User/SublimeLinter/[ your-chosen-theme ]

如果你安装了SublimeLinter,你的主题(至少是ST3)可能会以……/包/ User / SublimeLinter /[your-chosen-theme]

As mentioned above - find the nested 'settings' dict and edit or add the 'lineHighlight' entry with your desired #RRGGBB or #RRGGBBAA. I like #0000AA99 when on a black(ish) background.

如上所述——找到嵌套的“设置”命令,编辑或添加“lineHighlight”条目,并添加您想要的#RRGGBB或#RRGGBBAA。我喜欢#0000AA99黑色背景。

Handy tool if you do not know your color combinations: RGBtoHEX and HEXtoRGB

如果你不知道你的颜色组合,方便工具:RGBtoHEX和HEXtoRGB

#1


168  

The easy way: Pick an alternative Color Scheme:

简单的方法:选择另一种配色方案:

Preferences > Color Scheme > ...pick one

偏好>配色方案>…选择一个

The more complicated way: Edit the current color scheme file:

更复杂的方法:编辑当前的配色方案文件:

Preferences > Browse Packages > Color Scheme - Default > ... edit the Color Scheme file you are using:

浏览软件包>颜色方案-默认>…编辑您正在使用的配色方案文件:

Looking at the structure of the XML, drill down into dict > settings > settings > dict >

查看XML的结构,深入到dict >设置>设置> dict b3

Look for the key (or add it if it's missing): lineHighlight. Add a string with an #RRGGBB or #RRGGBBAA format.

查找关键字(或在缺少的情况下添加):lineHighlight。添加一个带有#RRGGBB或#RRGGBBAA格式的字符串。

#2


14  

On windows 7, find

在windows 7中,找到

C:\Users\Simion\AppData\Roaming\Sublime Text 2\Packages\Color Scheme - Default

Find your color scheme file, open it, and find lineHighlight.
Ex:

找到你的配色方案文件,打开它,并找到线高光。例:

<key>lineHighlight</key>
<string>#ccc</string>

replace #ccc with your preferred background color.

用你喜欢的背景颜色替换#ccc。

#3


13  

tmtheme-editor.herokuapp.com seems pretty nice.

tmtheme-editor.herokuapp.com看起来很不错。

On the mac, the default theme files are in ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ -\ Default

在mac上,默认的主题文件是~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ - default

On Win7, the default theme files are in %appdata%\Sublime Text 2\Packages\Color Scheme - Default

在Win7中,默认的主题文件是%appdata%\Sublime Text 2\Packages\Color Scheme - default。

#4


6  

For Sublime Text 3, all I had to do was add "highlight_line": true to my user settings file: Preferences -> Settings - User. It was only once that preference was set that all the color scheme lineHighlight settings took effect.

对于卓越的文本3,我所要做的就是添加“highlight_line”:对我的用户设置文件:首选项->设置-用户。只有在设置好偏好之后,所有的配色方案线高亮设置才会生效。

Hopefully this will save someone else some of this same flailing about.

希望这能帮别人省些钱。

#5


5  

This post is for Sublime 3.

I just installed Sublime 3, the 64 bit version, on Ubuntu 14.04. I can't tell the difference between this version and Sublime 2 as far as user interface. The reason I didn't go with Sublime 2 is that it gives an annoying "GLib critical" error messages.

我刚刚在Ubuntu 14.04上安装了崇高3,64位版本。就用户界面而言,我无法区分这个版本和Sublime 2之间的区别。我没有使用Sublime 2的原因是,它会给出令人讨厌的“GLib critical”错误消息。

Anyways - previous posts mentioned the file /sublime_text_3/Packages/Color\ Scheme\ -\ Default.sublime-package

不管怎样——之前的文章提到了文件/sublime_text_3/Packages/Color\ Scheme\ -\ - Default.sublime-package

I wanted to give two tips here with respect to this file in Sublime 3:

关于这个文件,我想给出两点建议:

  1. You can edit it with pico and use ^W to search the theme name. The first search result will bring you to an XML style entry where you can change the values. Make a copy before you experiment.
  2. 您可以编辑pico和使用^ W来搜索主题的名称。第一个搜索结果将带您到一个XML样式的条目,您可以在其中更改值。做实验前先复印一份。
  3. If you choose the theme in the sublime menu (under Preferences/Color Scheme) before you change this file, then the changes will be cached and your change will not take effect. So delete the cached version and restart sublime for the changes to take effect. The cached version is at ~/.config/sublime-text-3/Cache/Color Scheme - Default/
  4. 如果您在更改此文件之前选择了sublime菜单(在首选项/配色方案下)中的主题,那么更改将被缓存,您的更改将不会生效。因此,删除缓存的版本,重新启动sublime以使更改生效。缓存的版本是~/。配置/ sublime-text-3 /缓存/配色方案-默认的/

#6


2  

If you have SublimeLinter installed, your theme (at least it ST3) may end up in .../Packages/User/SublimeLinter/[ your-chosen-theme ]

如果你安装了SublimeLinter,你的主题(至少是ST3)可能会以……/包/ User / SublimeLinter /[your-chosen-theme]

As mentioned above - find the nested 'settings' dict and edit or add the 'lineHighlight' entry with your desired #RRGGBB or #RRGGBBAA. I like #0000AA99 when on a black(ish) background.

如上所述——找到嵌套的“设置”命令,编辑或添加“lineHighlight”条目,并添加您想要的#RRGGBB或#RRGGBBAA。我喜欢#0000AA99黑色背景。

Handy tool if you do not know your color combinations: RGBtoHEX and HEXtoRGB

如果你不知道你的颜色组合,方便工具:RGBtoHEX和HEXtoRGB