Quote Originally Posted by mcostalba View Post
I just need to highlight chunks of a read-only document according to a range given in line numbers.
That's a better description!
If your document is read-only (and not modified by your app) you don't need any complex syntax highlighter class. Actually if there is really no modification (apart from the loading of your document) the thing you suggested with block state is enough because the document will be fully highlighted on opening and untouched afterward...