I'm working on a simple plugin that will make JSF <remove> ... </remove> - enclosed code in a JSF xhtml file look like a comment.
I managed to cook up a working custom annotator which applies comment-style formatting to the code inside these tags - the problem is the annotator does not always trigger. When there's a syntax / missing taglib error, the 'error highlighter' takes precedence and my annotator gets skipped.
I considered using syntax highlighter (<lang.syntaxHighlighterFactory> extension point) instead of an annotator as it better suits my needs (I need no contextual information to perform code coloring - it's purely syntax-based) but since it's not really a new language plugin I'm working with I have no idea how to get round to it. For starters I have no file type to associate the syntax highlighter with and AFAIK there can be only one syntax highlighter for a single file type.
Any thoughts on how to properly implement the discribed functionality would be greatly appreciated.
TXH in advance