Community
    • Login

    Code to Paste HTML as Plain Text

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 2 Posters 3.4k Views 2 Watching
    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 Offline
      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 Offline
        Claudia Frank @Jeronymite
        last edited by

        @Jeronymite

        here.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • JeronymiteJ Offline
          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 Offline
            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 Offline
              Jeronymite
              last edited by

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

              Cheers.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better đź’—

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors