Attached patch... 1) Made against latest Scintilla code from Mercurial 2) Follows tabs not spaces (I guess Geany spacified their whole codebase including Scintilla, maybe not the best idea!) 3) Changed gdk_atom_intern TRUE parameter to FALSE. I hadn't given it enough thought. My logic was that if GTK didn't know about this atom already we shouldn't need it, but in such a case I would have had to follow through checking for the none value. I'm not a developer of anything using the library. I tested...
Also I think Wayland is using "text/plain;chaset=utf-8", so this patch may make things play nicer with other applications under Wayland.
No support for mime-based utf-8 targets
PHP syntax highlighting: Apostophes within comments after literal token