Geany version: 1.36 Gtk version 2.24.32 Glib version 2.60.6 Platform: Windows 10 Geany installed into: c:/Program Files (x86)/Geany/data Interface language: Geman
What I did to set the cursor colour:
Using the Geany menu Werkzeuge/Konfigurationsdateien, I selected filetypes.common.
I located all lines starting with
`caret=`
I changed the first one to
`caret=0x3C3505;;true`
and I commented out the second one using a `#`, to make sure that these settings don't interfere.
`#caret=0x000000;0x000000;false;`
Using the menu Datei/Eigenschaften, I verified that the modifed filetypes.common refers to
`C:\Users\fisrona\AppData\Roaming\geany\filedefs\filetypes.common`
I terminated Geany and verified, that this file indeed contains my modifications.
I started Geany again, but the cursor colour is still black.
Of course there is still the original definition file in the installation directory,
`C:\Program Files (x86)\Geany\data\filedefs\filetypes.common`.
My guess is that Geany, erroneously, does not pick up the settings from my custom filetypes.common, but always the defaults from its installation directory. I don't want to edit the settings in `C:\Program Files (x86)\Geany`, because they would be overwritten everytime I update Geany to a new version.
WFM
I only uncommented the `[named_styles]` heading and `caret=0x00ff00;0x000000;true;` in the named styles section in filetypes.common and saved and hey presto, a flashing red(ish) cursor.
Did you remember to uncomment the section heading?
I don't quite understand, but to make it clear:
I did not uncomment any section heading. There is a section called `[styling]`, which contains the caret-setting where I **changed** the colour in the caret definition, and further down another section called `[named_styles]`, in which I only **commented out** the caret-line. I did not modify any of the section headings. Why is a setting in two different sections, and which is the section heading which is supposed to stay untouched?
I don't remember when it was changed, possibly after 1.36, but current Geany creates a new `filetypes.common` with all the contents commented out so users only need to uncomment the parts they want to change, not override everything in the system `filetypes.common` by default. But its common to forget to uncomment the headings, and then it doesn't work.
Anyway as I said it works with current Geany.
Why is a setting in two different sections, and which is the section heading which is supposed to stay untouched?
Sorry missed this question, there are two sections because one `[styling]` maps the entity being styled with a named style, and thats often the same name as the entity, in `filetypes.common` its common to see `caret=caret` for example. In actual filetypes files the language lexical entities are mapped to a named style as well eg in `filetypes.c` `string=string1` and `stringraw=string2`. The other section in `filetypes.common` `[named_styles]` defines the default named styles, its the `default` color scheme.
Then other color schemes just overload the named styles and all filetypes follow, otherwise the color schemes would have to do each filetype individually in some way.
So I changed it to the following:
In the `[styles]` section, I put back the old definition .
Inside of the [named_styles] section, I put
`caret=0x3C3505;0x000000;false;`
(I wonder what the second field is supposed to mean).
Then, I uncommented the `[named_styles]` line.
Still no change.
[filetypes.common.txt](https://github.com/geany/geany/files/8870199/filetypes.common.txt) I have uploaded filetypes.common for reference. I had to rename it to filetypes.common.txt, because otherwise, this site would not allow me to attach the file.
github-comments@lists.geany.org