Spyder: Option to invert highlight current cell

Created on 20 Jul 2017  路  15Comments  路  Source: spyder-ide/spyder

I kind of find it distracting to work on a code that is highlighted. So I usually keep the "Highlight current cell" option turned off.

I think it would it be interesting to have an option in the editor preferences to invert the highlighting of the current cell. Here is how this could look like:

invert_cell_highlight

It is almost possible to do the same thing in Syntax coloring by inverting current cell highlight and background color, but it doesn't look as good.

Editor Enhancement

Most helpful comment

I'm +1 on this.

All 15 comments

@goanpeca, @rlaverde, what do you guys think?

I don't think I completely understand :-p

@jnsebgosselin want cells to not be highlighted. Instead, the text around them would be "highlighted".

Hmmm interesting, I think it makes sense, or at least is more readable? the idea o the cell being to ficus on that text?

@ccordoba12 yes the idea is to make the current cell not highlighted, while making the rest of the text highlighted. And yes @goanpeca, the goal is to make the code in the current cell more readable, while still providing a visual distinction between the current cell and the surrounding text.

I've made a side by side comparison in the figure below. Personally, I find it easier on the eye and less distracting to work in the editor on right with "inverted highlighting" on.

inver_highlight_side_comparison

I agree with this change, It'll be an option? or the default behavior?

Ok, I'm -1 on it, but the majority wins!

It'll be a new option because the current behavior is the same as Matlab's one, and we want to be as close to Matlab as possible,

Just wondering if this is something you still find interesting to work on @jnsebgosselin

Also, you seem to prefer the light theme over the dark theme I believe?

@jnsebgosselin has this been implemented? If so where can I find the option?

@goanpeca If you still think this is a good idea, I can work on this. Should not be that hard to do... I hope :P

@levibaguley no it is not implemented yet, sorry.

I am +1 on this. But I would like to hear what other @spyder-ide/core-developers have in mind :-)

I don't understand the picture. To me, the picture on the right looks like the current behaviour, but this is supposed to be the new behaviour? :confused:

I don't understand the picture. To me, the picture on the right looks like the current behaviour, but this is supposed to be the new behaviour? 馃槙

No, current behaviour is the picture on the left.

cells_highlight

I'm +1 on this.

No, current behaviour is the picture on the left.

Ah, something (probably me) changed the colours in my preferences. Got it now. It seems a good idea, so go ahead.

Was this page helpful?
0 / 5 - 0 ratings