Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Highlight text on webbrowser

Highlight text on webbrowser

Scheduled Pinned Locked Moved Windows Forms
htmlhelpquestion
4 Posts 3 Posters 9 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Sumit Rastogi SRA
    wrote on last edited by
    #1

    I have one html document . I want to highlight text in html document but which text I want to highlight that is repeated text in html document . But I want to highlight only exact text according to my requirement then how can I determine the exact text which I want to highlight . Manually, I know that this text should have to highlight but how programmatically determine exact text to highlight between duplicates. Please some one can help to me. My exact scenario is giving below- I want to explain my scenario I have some pdf and converting in epub file.After converting some text font name or font style missing then I have to compare with pdf and epub and highlight the exact text which font is missing.But because of duplicates I am not able to determine the text for highlight.

    S P 2 Replies Last reply
    0
    • S Sumit Rastogi SRA

      I have one html document . I want to highlight text in html document but which text I want to highlight that is repeated text in html document . But I want to highlight only exact text according to my requirement then how can I determine the exact text which I want to highlight . Manually, I know that this text should have to highlight but how programmatically determine exact text to highlight between duplicates. Please some one can help to me. My exact scenario is giving below- I want to explain my scenario I have some pdf and converting in epub file.After converting some text font name or font style missing then I have to compare with pdf and epub and highlight the exact text which font is missing.But because of duplicates I am not able to determine the text for highlight.

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      Your question is not very clear. I have guessed that for a html page that you are displaying in the web browser control you want to be able to highlight a word or words. If I am write I would have a look here[^] There is also a lot of example from Google: c# webbrowser highlight text[^]

      Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

      S 1 Reply Last reply
      0
      • S Sumit Rastogi SRA

        I have one html document . I want to highlight text in html document but which text I want to highlight that is repeated text in html document . But I want to highlight only exact text according to my requirement then how can I determine the exact text which I want to highlight . Manually, I know that this text should have to highlight but how programmatically determine exact text to highlight between duplicates. Please some one can help to me. My exact scenario is giving below- I want to explain my scenario I have some pdf and converting in epub file.After converting some text font name or font style missing then I have to compare with pdf and epub and highlight the exact text which font is missing.But because of duplicates I am not able to determine the text for highlight.

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        This question was already asked here[^]. Please stick with one forum only.

        1 Reply Last reply
        0
        • S Simon_Whale

          Your question is not very clear. I have guessed that for a html page that you are displaying in the web browser control you want to be able to highlight a word or words. If I am write I would have a look here[^] There is also a lot of example from Google: c# webbrowser highlight text[^]

          Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

          S Offline
          S Offline
          Sumit Rastogi SRA
          wrote on last edited by
          #4

          Hello , Thanks for your reply. Highlighting text is not a problem for me .My Problem is that while I am comparing epub to pdf , I am able to get text only not position of text. So I don't know the position of text and there is duplication of text which is making me uncomfortable to highlight text. if I know position of text or there is not a duplication of text then it is easy to highlight.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups