Copy/paste & Gmail (chrome)
Gozer-404 last edited by
Notepad++ opened with a source file (thus colourization).
Select some lines
Plugins->NppExport->Copy HTML to Clipboard
In Chrome/Gmail New message window:
Some text is systematically added when pasting: “Exported from Notepad++” in the case of “HTML to Clipboard” + some strange effects with new lines and section formatting:
Is it a notepad++ issue or a chrome issue ?
(seems to be chrome because a copy from the same lines opened in vi in mintty gives also some shit):
PeterJones last edited by
A normal copy will not have that extra line. However, using NppExport to Copy HTML to Clipboard will.
That’s because when the NppExport plugin generates the HTML and puts it in the clipboard, it includes a
<title>Exported from Notepad++</title>as part of the HTML it exports. (This is because Notepad++ is generating standards-compliant HTML, and a full HTML document requires a TITLE.)
There are no configuration settings for that simplistic plugin, so you cannot change the behavior. Sorry.
It’s simple enough to delete that line after you paste the results into gmail (or other HTML-accepting app).