用法:
第一步:引用DLL
      Codefan.Controls.dll
      ActiproSoftware.CodeHighlighter.Net20.dll
      ActiproSoftware.Shared.Net20.dll
      CodeHighlighterTest.dll
第二步:webconfig中configuration节点下进行配置
< configSections >
    
< section name = " codeHighlighter "  type = " ActiproSoftware.CodeHighlighter.CodeHighlighterConfigurationSectionHandler, ActiproSoftware.CodeHighlighter.Net20 " />
  
</ configSections >
  
<!-- 高亮代码配置 -->
  
< codeHighlighter >
    
< cache languageTimeout = " 3 " />
    
< keywordLinking enabled = " true "  target = " _blank "  defaultKeywordCollectionKey = " ActiproKeywords " >
      
< keywordCollection key = " ActiproKeywords " >
        
< explicitKeyword tokenKey = " IdentifierToken "  patternValue = " Actipro "  url = " http://www.actiprosoftware.com "  caseSensitive = " false " />
        
< explicitKeyword tokenKey = " IdentifierToken "  patternValue = " CodeHighlighter "  url = " http://www.codehighlighter.com "  caseSensitive = " false " />
      
</ keywordCollection >
    
</ keywordLinking >
    
< languages >
      
< language key = " Assembly "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.Assembly.xml " />
      
< language key = " BatchFile "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.BatchFile.xml " />
      
< language key = " C# "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.CSharp.xml " />
      
< language key = " CSS "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.CSS.xml " />
      
< language key = " HTML "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.HTML.xml " />
      
< language key = " INIFile "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.INIFile.xml " />
      
< language key = " Java "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.Java.xml " />
      
< language key = " JScript "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.JScript.xml " />
      
< language key = " Lua "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.Lua.xml " />
      
< language key = " MSIL "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.MSIL.xml " />
      
< language key = " Pascal "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.Pascal.xml " />
      
< language key = " Perl "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.Perl.xml " />
      
< language key = " PHP "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.PHP.xml " />
      
< language key = " PowerShell "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.PowerShell.xml " />
      
< language key = " Python "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.Python.xml " />
      
< language key = " SQL "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.SQL.xml " />
      
< language key = " VB.NET "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.VBDotNet.xml " />
      
< language key = " VBScript "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.VBScript.xml " />
      
< language key = " XAML "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.XAML.xml " />
      
< language key = " XML "  definitionPath = " ~/Codefan-Controls/Languages/Lexers/ActiproSoftware.XML.xml " />
    
</ languages >
    
< lineNumberMargin foreColor = " Teal "  paddingCharacter = "   "  visible = " true " />
    
< outlining enabled = " true "  p_w_picpathsPath = " ~/Codefan-Controls/OutliningIndicators/ " />
    
< spacesInTabs count = " 4 " />
  
</ codeHighlighter >
第三步:将Codefan-Controls文件夹copy至网站根目录
第四步:页面调用
 
<% @ Page Language = " C# "  AutoEventWireup = " true "  CodeFile = " Default.aspx.cs "  Inherits = " _Default "  ValidateRequest = " false "   %>

<% @ Register Assembly = " Codefan.Controls "  Namespace = " Codefan.Controls "  TagPrefix = " Codefan "   %>

<! DOCTYPE html PUBLIC  " -//W3C//DTD XHTML 1.0 Transitional//EN "   " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >

< html xmlns = " http://www.w3.org/1999/xhtml "   >
< head runat = " server " >
    
< title > 无标题页 </ title >
</ head >
< body >
    
< form id = " form1 "  runat = " server " >
    
< div >
        
< Codefan:CodefanEditor ID = " CodefanEditor1 "  runat = " server "  Height = " 332px "  Width = " 700px " >
        
</ Codefan:CodefanEditor >
    
</ div >
    
</ form >
</ body >
</ html >
 
第五步:取编辑框值-->CodefanEditor1.Text