...

View Full Version : keyword highlighter



emehrkay
11-01-2006, 02:24 PM
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

ess
11-01-2006, 04:36 PM
If you want to highlight PHP keywords in a string, please check highlight_string (http://uk2.php.net/highlight-string), and if you want to highlight a whole file, than you should try highlight_file (http://uk2.php.net/manual/en/function.highlight-file.php)

I hope that helps.

All the best
:thumbsup:

bigtiger
11-01-2006, 05:03 PM
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 (http://www.phpbb.com)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum