1 Reply Latest reply on Mar 30, 2011 1:59 PM by George_Johnson

    question about highlight a word?

    blind564

      i doing a script where we have that find a word when the word was found this word should be highlighted.
      i have a code but i need to know if exist a function or method que can highlight a word

       

      this my code

       

      var nWords,count=0,word;
      for(var i=0; i<this.numPages;i++)
      {
          nWords=this.getPageNumWords(i);
          for(var b=0; b<nWords; b++)
          {
                  word=this.getPageNthWord(i,b);
                  if(word=="aaaa")
                  {
                      count++;// this part i need highlight a word
                  }
          }
      }