What i want to do is simply create an Annotator for the HtmlLanguage.
I can see that the HTMLLanguage class returns no annotator. The problem is that i don't see any set method for the annotator so what i had to do was implement my own version of the HTMLFileType and HTMLLanguage that is exactly the same as the one provided by IntelliJ but the getAnnotator() method returns my annotator.
The ugliest part is still to come, for my file type to be used instead of the default one i have to do the following:
String extensions = FileTypeManager.getInstance().getAssociatedExtensions(StdFileTypes.HTML);
As you all might agree, this is not very pretty. So my question is, is there any other way of doing ? If not i will create an issue for this to be possible.