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
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.string=0x660080 string_1=string #string_2=0x008000 #string_eol=0x000000;0xe0c0e0;false;false character=string_1 #backticks=string_2 #here_doc=string_2
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?
[theme_info] name=Geany description=A copy of the default Geany theme, up for tweaking version=2020 author=The Geany team url=https://github.com/geany/geany/blob/master/data/filedefs/filetypes.common # list of each compatible Geany release version compat=2.0;2.1;2.2; [named_styles] default=0x000000;0xffffff;false;false error=0xff0000;0xBFBFBF;false;italic selection=0x000000;0xc0c0c0;false;true current_line=0x000000;0xf0f0f0;true; brace_good=0x0000ff;0xFFFFFF;true;false brace_bad=0xff0000;0xFFFFFF;true;false margin_line_number=0x000000;0xd0d0d0; margin_folding=0x000000;0xdfdfdf; fold_symbol_highlight=0xffffff indent_guide=0xc0c0c0;; caret=0x000000;0x000000;false; marker_line=0x000000;0xffff00; marker_search=0x000000;0x0000f0; marker_mark=0x000000;0xb8f4b8; call_tips=0xc0c0c0;0xffffff;false;false white_space=0xc0c0c0;0xffffff;true;false comment=0xd00000 comment_doc=0x3f5fbf comment_line=comment comment_line_doc=comment_doc comment_doc_keyword=comment_doc,bold comment_doc_keyword_error=comment_doc,italic number=0x007f00 number_1=number number_2=number_1 number_3=0x808000 type=0x0000d0;;true;false class=type function=0x000080 parameter=function annotation=0x8080ff;;true;false keyword=0x00007f;;true;false keyword_1=keyword keyword_2=0x991111;;true;false keyword_3=keyword_1 keyword_4=keyword_1 identifier=default identifier_1=identifier identifier_2=identifier_1 identifier_3=identifier_1 identifier_4=identifier_1 string=0xff8000 string_1=string string_2=0x008000 string_eol=0x000000;0xe0c0e0;false;false character=string_1 backticks=string_2 here_doc=string_2 label=default,bold preprocessor=0x007f7f regex=number_1 operator=0x301010 decorator=string_1,bold macro=preprocessor,bold other=0x404080 tag=type tag_unknown=tag,bold tag_end=tag,bold attribute=keyword_1 attribute_unknown=attribute,bold value=string_1 entity=default line_added=0x34b034;0xffffff;false;false line_removed=0xff2727;0xffffff;false;false line_changed=0x7f007f;0xffffff;false;false
_______________________________________________ Users mailing list -- [email protected] To unsubscribe send an email to [email protected]
