Re: GtkSourceView, using current-line style for other elements also?

Sébastien Wilmet <[email protected]> Wed, 15 Jun 2016 15:48:32 +0200
Newsgroups gmane.comp.gnome.devtools
Message-ID <[email protected]>
Hi Stefan,

On Sun, Jun 12, 2016 at 05:11:43PM +0200, Stefan Salewski wrote:
> File classic.xml
> =

> <!-- Global Settings -->
> <style name=3D"current-line"=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0background=3D"#eeeeec"/>
> <style name=3D"current-line-number"=A0=A0=A0=A0=A0=A0=A0=A0=A0background=
=3D"#eeeeec"/>
> =

> Is my feeling correct, that these global styles can not be used for
> other syntax highlight purposes? The reason for the question is, that
> all predefined color files define mostly foreground colors with high
> contrast to background, and I would need one available predefined very
> similar to background, current-line should be ok, but using it seems
> not to work. My nim.lang is fine =A0with my own color scheme, but I
> considered making it more compatible with other existing color schemes.
> And for that I would need an existing color for the vertical bars at th
> e left in=A0http://ssalewski.de/tmp/NEd-SHD.png

Yes you can call the gtk_source_style_scheme_get_style() function.

--
S=E9bastien