I like your idea of changing the color of the letters if they are in a different language. I might actually work on that.
An exposed API to handle UTF8 strings to get count and/or indices of flagged chars would also be useful. Perhaps it could work as an extension to ICU?
If nothing else, the "change language within a word" should use a unicode-sane definition of 'word', which ICU would give you.
Once you have the two pieces above, adding the colouring etc should be reasonably straightforward. But it'd be a shame if the two pieces above weren't factored out - since I don't think the widespread adoption would follow otherwise.