Just a minor addition:
An option in the settings to choose between starting each HTML snippet with line no "1" or using the true editor row number. (Line numbers only appear in the HTML if currently
shown in the editor.)
Plus source code is now included - don't look too closely, though: It could use some cleaning up.
The plugin is mainly useful if you want to copy snippets of source code to blogs, articles, etc. with syntax highlighting preserved.
Differences to Idea's built-in "Export to HTML":
- CopyAsHtml uses clipboard for easy pasting in both html and text MIME type
- exports only fragments (without and ]]> tags)
- some more options (e.g. to include error highlighting), see settings on IDE settings dialog