Hello,

I was thinking along similar lines as Alex:

> 
> Basically what you are doing is
>    a set of "replace"s to hide html tags
>    the real replace
>    a set of "replace"s to restore the html tags.
> 

My procedure would be:

put numToChar(3) into sep
replace ">" with "<" & sep in tText
set the itemDelimiter to "<"
repeat for each item theItem in tText
  if char 1 of theItem is sep then
  -- do the actual replacement 
    replace pFind with "<font color=" & \
    quote & the uPatternColor of this stack & quote & \
    ">" & pFind & "</font>" in tText
  end if
end repeat
replace "<" & sep with ">" in tText
set the itemDelimiter to comma

I didn't test for speed though.

All the best
Thomas

--
Thomas Fischer
Salzburg 

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to