Independent styles

Baltasar GarcĂ­a Perez-Schofield <[email protected]> Thu, 19 Dec 2024 09:59:19 +0100
Newsgroups gmane.editors.scite.general
Message-ID <[email protected]>
Hi,

I've been trying to create a "dark mode" for SCiTE.

https://github.com/Baltasarq/My-Scite-Conf/

Unfortunately, I finally gave up. The problem is that you have to modify=20
nearly all the language configurations, including those to come.

For instance, Julia includes what appears to be a set of styles:

# Julia styles
# White space
style.julia.0=3Dfore:#808080
# Comment
style.julia.1=3Dfore:#007F00,$(font.comment)
# Number
style.julia.2=3Dfore:#007F7F
# String
style.julia.3=3Dfore:#7F007F,$(font.monospace)
# Single quoted string
style.julia.4=3Dfore:#7F007F,$(font.monospace)

As Python also does:

# Python styles
# White space
style.python.0=3Dfore:#808080
# Comment
style.python.1=3Dfore:#00AF00,$(font.comment)
# Number
style.python.2=3Dfore:#dfdf00
# String
style.python.3=3Dfore:#dfdf00$(font.monospace)
# Single quoted string
style.python.4=3Dfore:#dfdf00,$(font.monospace)
# Keyword
style.python.5=3Dfore:#00cdcd,bold
# Triple quotes
style.python.6=3Dfore:#dfdf00
# Triple double quotes
style.python.7=3Dfore:#dfdf00
# Class name definition
style.python.8=3Dfore:#007F7F,bold
# Function or method name definition
style.python.9=3Dfore:#007F7F,bold
# Operators
style.python.10=3Dbold

But it seems that HTML has their own:

# Text
style.hypertext.0=3Dfore:#ffffff,$(font.text)
# Tags
style.hypertext.1=3Dfore:#00ffff
# Unknown Tags
style.hypertext.2=3Dfore:#FF0000
# Attributes
style.hypertext.3=3Dfore:#00cdcd
# Unknown Attributes
style.hypertext.4=3Dfore:#FF0000
# Numbers
style.hypertext.5=3D$(colour.number)
# Double quoted strings
style.hypertext.6=3D$(colour.string)
# Single quoted strings
style.hypertext.7=3D$(colour.string)
# Other inside tag, including space and '=3D'
style.hypertext.8=3Dfore:#cd00cd

There should be a way to define a set of limited styles, that all the=20
others could refer to. For instance, it seems that styles=C2=A01, 2, 3, 4..=
.=20
are more or less standard for all languages, I wonder if you could do=20
something like:

# Julia styles
# White space
style.*.0=3Dfore:#808080
# Comment
style.*.1=3Dfore:#007F00,$(font.comment)
# Number
style.*.2=3Dfore:#007F7F
# String
style.*.3=3Dfore:#7F007F,$(font.monospace)
# Single quoted string
style.*.4=3Dfore:#7F007F,$(font.monospace)

I.e., refer to all these styles like style.*.n, being n the number of=20
the style, and then remove all the references to these styles in the=20
other syntax files. Maybe, there could be also the possibility to adapt=20
the remaining styles (above 31?) to these basic ones:

style.*.100 =3D ${style.*.1)

Or something like that. Finally, the basic styles could be defined in a=20
separate file called theme.properties or something like that, and it=20
would be trivial to change theme for SCiTE.

I don't know whether all of this is really possible or not.

-- Baltasar












--=20
You received this message because you are subscribed to the Google Groups "=
scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scite-inter=
est/e93ef087-9c44-4947-9b3b-69871fb5bd18%40gmail.com.