CodeColorizer + Search NotImplemented Exception

Oct 29, 2008 at 1:17 AM
I am new to MWPSK and the architecture.  I started experimenting with the DropZone functionality and notice that the CodeColorizer is throwing a System.NotImplementedException when I try to do a search.

Advice how to handle this (or implement the search method in the CodeColorizer file) would be appreciated.
Oct 29, 2008 at 6:30 AM
Edited Oct 29, 2008 at 6:50 AM
The codecolorizer is a part of cms with DropZone. The search is not implemented, but you can add it by simply this search.
Overwrite the Search in CodeColorizer.cs 
using System.Web

  public override List<SearchResult> Search(string searchString, WebPage page)
           List<SearchResult> foundResults = new List<SearchResult>();
            string CodeText = HttpUtility.HtmlDecode(SearchResult.RemoveHtml(Html));
            if (CodeText.IndexOf(searchString, StringComparison.CurrentCultureIgnoreCase) > -1)
                foundResults.Add(new SearchResult(
                    string.Format("~/Default.aspx?pg={0}#{1}", page.PageId, SectionId),
                    SearchResult.CreateExcerpt(CodeText, searchString)
            return foundResults;