implement wishes in issue #357 and others: how html is styled is now configurable, and line numbers are not dependent on the current view setting. Also added is a way to copy HTML as plain text to the clipboard, so that it can be pasted in plaintext-only environments.