Re: Highlighting words found in a keyword search

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50535
interpreted = N
texte = Here is how I did it. Not exactly the cleanest of code, but maybe you guys can better upon it.Go here: http://www.inkblotmedia.com/highlight/index.tpl Search for: Pukonen alcohol moreAll three words will highlight.this is the code for it:[math show=f]counter=0[/math] [listwords delimiters= ,.&words=[woGroup1data]] [text]word[index]=[word][/text] [math show=f]counter=[counter]+1[/math] [/listwords][founditems] [loop start=1&end=[counter]][hideif [new_desc]![raw][new_desc][/raw]] [text]new_desc=[grep search=[interpret][word[index]][/interpret]&replace=[interpret][word[index]][/interpret]][description][/grep][/te xt] [/hideif][showif [new_desc]![raw][new_desc][/raw]] [text]new_desc=[grep search=[interpret][word[index]][/interpret]&replace=[interpret][word[index]][/interpret]][new_desc][/grep][/text] [/showif][/loop][new_desc] [/founditems] ----- Original Message ----- From: Kenneth Grome To: WebDNA Talk Sent: Tuesday, May 20, 2003 11:27 PM Subject: Re: Highlighting words found in a keyword search > >Well, it's still not working 100%. The [notes] field is entered via a > >