Community
    • Login

    Code to Paste HTML as Plain Text

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 2 Posters 2.8k Views
    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.
    • JeronymiteJ
      Jeronymite
      last edited by

      The program nicely pastes a copied HTML page as plain text, stripped back to the text-only content of the page.

      Where can I find the code that does that conversion of an HTML page to the bare plain text?

      Thanks.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Jeronymite
        last edited by

        @Jeronymite

        here.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • JeronymiteJ
          Jeronymite
          last edited by

          Thanks, Claudia.

          I should have been more precise. I have the latest source. Where in the source?

          Thanks.

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Jeronymite
            last edited by Claudia Frank

            @Jeronymite

            you are looking for a paste operation, in particular the SCI_PASTE message.
            If you search for it in SciLexer project you will find one saying something like

            case SCI_PASTE:
                Paste()
            

            and here we are, Paste (code in ScintillaWin.cxx) is the one you are interested in (well I assume you are interested in this function)

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • JeronymiteJ
              Jeronymite
              last edited by

              Many thanks, Claudia. That’s it. Very much appreciated.

              Cheers.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors