vprimachenko / Sublime-Colorcoder

Semantic highlight for Sublime Text
290 stars 25 forks source link

Colorcoded items background causing highlighting issues #32

Open Sawtaytoes opened 9 years ago

Sawtaytoes commented 9 years ago

When doing an outline on text like if I'm in a find operation, the outline does not go around the colorcoded items because they have a background color that matches the unhighlighted background color of the syntax method.

Is it possible to make it so colorcoded items don't have this background color?

vprimachenko commented 9 years ago

no. current api does not allow it or to be precise setting the background color is the only way to color only the text*. without this "hack" colorcoder would look like this:

colorcoder-no-bg

i am actually frustrated by this as well, as this limitation also interferes with current line-highlighting. i even tried to work around this issues yet the only way i could think of introduced massive lag to the editor so i never pushed it to master.

so as much as i would love to implement this now, i cant… i check the api of every release and will implement this as soon as the api allows.

im not sure if i should close this issue as an "cant-fix" or keep it open 'till the fix arrives.

* for whatever reason if an region class does not have an background setting, its foreground is used to fill the background, and the text keeps it color. interestingly enough sublime also does this if background matches the overall theme background. i am puzzled why sublime works this way.

Sawtaytoes commented 9 years ago

Darn, that's a good point. Seems like an awfully strange limitation; then again, ST3 has some other long-standing bugs at this time too :/. Sad.

Sawtaytoes commented 9 years ago

Is it possible to manually fix this in the modified (Colorcoded).tmTheme files?

vprimachenko commented 9 years ago

dont think so, i tried a lot of promising combinations of findHighlight and findHighlightForeground values yet nothing satisfactory