>> The painting is most logical solution when writing a serious hex editor.

Is it? Don't you then lose all ability to interact with the text? Even if you don't plan to support editing, how will people copy and paste?