My goal is to extend the HTML auto-completion and also use an annotator for HTML editing. I know that in Demetra i can use the brand new Language.injectAnnotator API but for now i can only count with what the 5.1 API gives me.
So, to add an annotator i have to create a FileType of my own that is exactly like the HtmlFileType except for the getAnnotator() method that returns an instance of my annotator, unregister the default HtmlFileType and register my implementation. This gets the annotator working:
String extensions = FileTypeManager.getInstance().getAssociatedExtensions(StdFileTypes.HTML);
To register the auto-completion i then use:
This works just fine except for the annoying fact that the auto-completion feature for the "src" of the "img" tag(or any other tag that has the "src" attribute) is lost. The completion of the other tags seems to be working ok.
Does anyone please have any clues to what happened ?