Unfortuneatly, a standard HTML textarea doesn't render HTML codes, so you really can't highlite words - the textarea would show the <b> or style or font tags, etc..
You'll need to use an HTML editor object - I use SoEditor Lite (http://www.siteobjects.com/pages/order.cfm). It's free and very straightforward to use. You'll need to capture the output from SoEditor and run the contents against your list of bad words, doing a replace on #word# with <b>#word#</b>, then load the modified text back into the form. If the results can't have HTML, you'll need to strip out any HTML before adding to the DB. -----Original Message----- From: Rafael Alan Bleiweiss [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 12:52 PM To: CF-Talk Subject: CF tag for highlighting text in a textfield? Anyone ever do this or know of a custom tag? I've got a form that needs to be checked against a list of bad words, and the refresh of the page needs to have the text in the textarea with the matched bad words highlighted in bold or red font... What's it take to do this? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

