2008/3/12, Yura Siamashka yurand2@gmail.com:
You can use GeanyData::filetypes, which is an array of filetype pointers, to loop through each filetype.
Good, but how can I get it's size? I think I can't trust GEANY_MAX_FILE_TYPES since it can be different for geany and plugin.
I think I can check if filetype is GEANY_FILETYPES_ALL and assume it is last. Sorry no need to add anything to geany. ;-)
Best regards, Yura Siamashka