Ubuntu – How to change the gedit “Highlight current line”color

gedit

I'm using Ubuntu 14.10-gnome3.14. Here is the question. when I check the "highlight current line" check-box on the gedit, it highlight the current line, but the color is pure white I can barely see the code. So, how can I change this.

I don't mean to change the syntax highlight style, just change the "highlight current line" color.

Best Answer

I have 14.04, but gedit over there has an option to change color scheme --- the preferences menu is quite hidden (at least in gnome-shell), you have to go on the panel menu to find it:

finding the preference menu entry

(will be different in Unity), and then:

change color scheme in gedit

and all your color scheme will change. In the shot above, I choose "kate".

If you want to change just the color of the highlight line (for example), you should edit the style; in principle that should be easily done by changing the file

/usr/share/gtksourceview-3.0/styles/kate.xml 

(reference here) and change the line

<style name="current-line"                background="#EEF6FF"/>

to your liking. Unfortunately, it doesn't work --- if anyone know why please chime in.