Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Copy/paste & Gmail (chrome)

    General Discussion
    2
    2
    100
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gozer-404
      Gozer-404 last edited by

      Notepad++ opened with a source file (thus colourization).

      In Notepad++:

      • Select some lines
        one.png

      • Copy
        or
        Plugins->NppExport->Copy HTML to Clipboard

      In Chrome/Gmail New message window:

      • Paste

      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:
      two.png

      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):
      three.png

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones @Gozer-404 last edited by

        @Gozer-404 ,

        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).

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors