Colomban Wendling via Users wrote:
Hi,
Le 24/01/2026 à 19:40, H via Users a écrit :
[…]
Thank you, I tried modifying filetypes.common but was not able to
redefine just the color used for quoted text in a bash script file.
Googling a bit more, it seems filetypes.sh might be the best place
to modify this color.
I'd suggest creating a colorscheme that suits you better. Attached is a
"themified" version of the default theme for easier tweaking. But there are
additional colorshemes either in your distribution, or that you can directly download
from upstream [1] (used to be part of the geany-themes project).
But to do what you want (changing the string color in filtypes.common), there's a gotcha: you need
to update "string_1" (which is what is used by the shell filetype, but I suggest updating
string as well) under "named_style", but *also* uncomment all entries referencing it.
I'm not sure if it's a bug or not, but it seems that the values like
string_1=string are computed while reading the file itself, so it's not
inherited.
Maybe like
string=0x660080
string_1=string
#string_2=0x008000
#string_eol=0x000000;0xe0c0e0;false;false
character=string_1
#backticks=string_2
#here_doc=string_2
Still, the easier is probably create a new colorscheme based off the default
one (if you like it enough) and modify this custom theme as you see fit.
HTH,
Colomban
[1] https://github.com/geany/geany/tree/master/data/colorschemes
However, the algorithm used by geany seems pretty complex - does
anyone perhaps know exactly which variable I would need to modify?
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Thank you! I saved the file as the default Geany theme and then went ahead and
modified it per your kind instruction. Works beautifully and now I have a theme
I can tweak as needed.
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]