Hi elextr. So, my case I had an index.html file and "Save as" main.js. Then there was no syntax highlight, and I realized the filetype for Geany was the old one. Then I had to reopen the file (Document->Set Filetype->select type is also an option)
So it is much better if this could happen automatically, and it is probably a simple change.
Thank you.