There's a Custom Tag that I think does just that in Allaire the name is
CF_Highlight
CF_Highlight takes a list of substrings, and highlights them in a larger
text string. For example, it can be used to highlight search terms on the
results page from a search engine. It requires CF 3.01 or above
Save the following as a tag and place all of your content between the open and end
tags.
For example, if your tag was called CF_Highlight:
cfset variables.foo = This is a sales test
cf_highlight text=sales
This is a test of the sales system.
cfoutput#variables.foo#/cfoutput
Awesome :)
Thanks, Christine
Save the following as a tag and place all of your content
between the open and end tags.
For example, if your tag was called CF_Highlight:
cfset variables.foo = This is a sales test
cf_highlight text=sales
This is a test of the sales system.
3 matches
Mail list logo