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
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=fore:#808080
# Comment
style.julia.1=fore:#007F00,$(font.comment)
# Number
style.julia.2=fore:#007F7F
# String
style.julia.3=fore:#7F007F,$(font.monospace)
# Single quoted string
style.julia.4=fore:#7F007F,$(font.monospace)
As Python also does:
# Python styles
# White space
style.python.0=fore:#808080
# Comment
style.python.1=fore:#00AF00,$(font.comment)
# Number
style.python.2=fore:#dfdf00
# String
style.python.3=fore:#dfdf00$(font.monospace)
# Single quoted string
style.python.4=fore:#dfdf00,$(font.monospace)
# Keyword
style.python.5=fore:#00cdcd,bold
# Triple quotes
style.python.6=fore:#dfdf00
# Triple double quotes
style.python.7=fore:#dfdf00
# Class name definition
style.python.8=fore:#007F7F,bold
# Function or method name definition
style.python.9=fore:#007F7F,bold
# Operators
style.python.10=bold
But it seems that HTML has their own:
# Text
style.hypertext.0=fore:#ffffff,$(font.text)
# Tags
style.hypertext.1=fore:#00ffff
# Unknown Tags
style.hypertext.2=fore:#FF0000
# Attributes
style.hypertext.3=fore:#00cdcd
# Unknown Attributes
style.hypertext.4=fore:#FF0000
# Numbers
style.hypertext.5=$(colour.number)
# Double quoted strings
style.hypertext.6=$(colour.string)
# Single quoted strings
style.hypertext.7=$(colour.string)
# Other inside tag, including space and '='
style.hypertext.8=fore:#cd00cd
There should be a way to define a set of limited styles, that all the
others could refer to. For instance, it seems that styles 1, 2, 3, 4...
are more or less standard for all languages, I wonder if you could do
something like:
# Julia styles
# White space
style.*.0=fore:#808080
# Comment
style.*.1=fore:#007F00,$(font.comment)
# Number
style.*.2=fore:#007F7F
# String
style.*.3=fore:#7F007F,$(font.monospace)
# Single quoted string
style.*.4=fore:#7F007F,$(font.monospace)
I.e., refer to all these styles like style.*.n, being n the number of
the style, and then remove all the references to these styles in the
other syntax files. Maybe, there could be also the possibility to adapt
the remaining styles (above 31?) to these basic ones:
style.*.100 = ${style.*.1)
Or something like that. Finally, the basic styles could be defined in a
separate file called theme.properties or something like that, and it
would be trivial to change theme for SCiTE.
I don't know whether all of this is really possible or not.
-- Baltasar