Until a week ago I was happily coding html.erb files in Notepad++ with syntax highlighting. Then my hard drive crashed.
I reinstalled Notepad++ on my new system but when
I had the exact same problem and none of the posted solutions worked for me so I digged deeper and found that I mistakenly assigned my user defined extensions twice under Settings → Style Configurator, for example SQL and XML.
Deleting my user defined extension from one language restored the syntax highlighting.