>
> > 2. Immediately after SCI_SETTEXT when loading (or reloading) file.
>
> This may or may not be needed depending on Geany’s features. One reason for doing this is if you want to perform a global fold operation since folding depends on fold information and thus on styling.
This one is more likely useful, since lots of features need to know
the styles of things outside the visible area, for example to avoid
considering characters in comments and strings when counting braces
for scopes.Yes, this one should probably stay.
But I would delay it's call until the document is actually shown to improve Geany start time with many tabs open.