This is a little plugin to copy text from the editor with all (well, almost all) formatting included as HTML.
It copies the current editor selection (or the complete buffer if no selection).
My primary intention was to quickly copy snippets of code to larger documents.
Differences to Idea's built-in HTML export:
Result does not include <html> and <body> text, so it's ready to be inserted into another HTML document.
Preserves much more formatting, e.g. highlights for member variables, method declarations, etc.
('Underwaved' effect is converted to plain underline.)
(Which may or may not be a good thing. Works fine on Firefox and IE 6. Java's HTML renderer produces garbage, though.)
Options to include the editor's warning/error highlighting and a thin border (see IDE Settings -> Copy as HTML).
Line numbers are included iff they are currently shown in the editor (see Idea's View menu).
Source code will be available soon.
Future plans: Configurable formatting (e.g. to post in blogs or forums that need special tags).
Credits and many thanks to Maxim Shafirov for patiently answering so many questions in a row and to Bas Leijdekkers
and Maxim Mossienko for helping out with action registration.
Oh yeah: If anybody has a nice icon suitable for "Copy as HTML" semantics, I would be very grateful.