C# code for auto-highlighting html string Problem Statement: Given a string, and a hash table mapping words/phrases to urls, a) create highlight and/or link for each word in the string that occurs in the hash table. Pseudo Code (Brute-Force approach): word_array = [url removed, login to view](space) for each word in word_array if in-dictionary(word/phrase) word_array[current] = "["+word+"]" end if next text = [url removed, login to view](space)
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. Open to alternate solutions such as regexp or recursive parsing of string.
ASP.NET -- c# only