Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    190
    Thanks
    1
    Thanked 2 Times in 2 Posts

    keyword highlighter

    i am looking for a keyword highlighter that will scan the body of an html doc and add the apporiate span tags around keywords.

    i figure this shouldnt be too difficult to build, its just that i am no good with regex.

    i've been searching and i've come up with nothing, but i dont think that i am looking for the right thing.

    any help with this would be good.

    thank you

  • #2
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    866
    Thanks
    7
    Thanked 30 Times in 29 Posts
    If you want to highlight PHP keywords in a string, please check highlight_string, and if you want to highlight a whole file, than you should try highlight_file

    I hope that helps.

    All the best

  • #3
    New Coder bigtiger's Avatar
    Join Date
    Oct 2005
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by emehrkay View Post
    i am looking for a keyword highlighter that will scan the body of an html doc and add the apporiate span tags around keywords.

    i figure this shouldnt be too difficult to build, its just that i am no good with regex.

    i've been searching and i've come up with nothing, but i dont think that i am looking for the right thing.

    any help with this would be good.

    thank you
    Hi, you can check out phpbb 3 forum that include a highlight keyword function when doing a search. I haven't found where this function is but just testing it.

    www.phpbb.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •