Copy selection as HTML

Pavel Perestoronin il y a 9 ans mis à jour par Ryan McCullough il y a 7 ans 2
An option to copy the selected text to clipboard as formatted text with syntax highlighting.
I like the idea, but I'm not totally sure how this would best be implemented: would one want the resultant HTML to use all inline styles, or to include a CSS <style> block before the HTML?

I guess the best would be to provide both options. But maybe this functionality would be better suited to be delivered as a plugin, since there may be other customizations users would want to make to the output.