Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2: How do I change the color that the row number is highlighted?

Tags:

sublimetext

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.

enter image description here

like image 361
phirschybar Avatar asked Mar 21 '12 15:03

phirschybar


People also ask

How do I change the selection color in Sublime Text?

Changing the selection colour in Sublime Text 3Open the command palette with ⌘+⇧+P on mac iOS (for windows/linux Ctrl + Shif + P) and type prv to get the PackageResourceViewer options. Choose Open Resource >> Color Scheme – Default >> and choose your theme file to edit.

How do I highlight a line in Sublime Text?

In Sublime Text, you can select lines with a keystroke. Hit Cmd–L (Mac) or Ctrl–L (Windows) to select the current line.

What is pink line in Sublime Text?

The pink lines are at line breaks that don't end in quotes. You can see in the errors that this is a problem because the lines below it lose all sublime formatting. The code still compiles and the exe works.


2 Answers

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 >

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

like image 108
Jake Wilson Avatar answered Sep 18 '22 18:09

Jake Wilson


On windows 7, find

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.

like image 26
Simion Agavriloaei Avatar answered Sep 18 '22 18:09

Simion Agavriloaei