Is that possible use KM to insert a formatted and translated text into selected text on webpage?

It's just like what imTranslator's inline translation did. But the extension is lack of enough formatting customization.