CuteEditor在很多网站上都有介绍了,是一款超级Cool的web在线编辑器,下载地址用google找一下就能找到,就不提供了,但是安装方法还是要说一下,因本次是使用vs2005。

      我们在vs2005里面新建个web site吧,把CuteEditor.dll(主控件)、CuteEditor.lic(许可证)、CuteEditor.ImageEditor.dll(因为5.0增加了个EditorImage的功能)、NetSpell.SpellChecker.dll(拷这个的原因是默认打开拼写检查)这几个文件拷贝到web site的bin目录下,刷新bin目录(不像vs2003需要引用dll),同时我们也要把解压缩后的CuteSoft_Client目录全部拷贝到应用程序的根目录下。然后把CuteEditor添加到工具面板.我们在工具面板里面右键选择"选择项",在出来的对话框里面选择"游览",找到CuteEditor.dll,一路确定就可以了。

      我们再添加个CuteEditor.aspx,把工具面板里面的Editor拖到页面上来,这时你就可以运行你的程序使用CuteEditor了,运行如下图:
给CuteEditor5增加了高亮代码显示功能(C#版)

      上面的只是个最简单的安装,还有比如控制CueEditor的显示,已经安全性和那个什么上传的啊,还有控制用户上传的目录啊,或者给每个用户建个他们自己的图片目录啊,还必须要另外设置,这些暂时先略过吧,您可以自己看一下说明进行设置,这里不多说了。我们现在要开始要给CuteEditor增加高亮代码显示功能,俺这里使用的是CodeHighlighter控件,您可以到http://www.codehighlighter.com/下载最新版,最新版同时支持.net1和.net2,因为使用的是vs2005,俺就使用了最新版,现在我们先来给CuteEditor增加一个按钮和打开插入高亮代码的页面代码。

CuteEditor.aspx代码

给CuteEditor5增加了高亮代码显示功能(C#版)<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="testCuteeditor._Default" %>
给CuteEditor5增加了高亮代码显示功能(C#版)
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
给CuteEditor5增加了高亮代码显示功能(C#版)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
给CuteEditor5增加了高亮代码显示功能(C#版)
给CuteEditor5增加了高亮代码显示功能(C#版)
<html xmlns="http://www.w3.org/1999/xhtml" >
给CuteEditor5增加了高亮代码显示功能(C#版)
<head runat="server">
给CuteEditor5增加了高亮代码显示功能(C#版)    
<title>无标题页</title>
给CuteEditor5增加了高亮代码显示功能(C#版)
</head>
给CuteEditor5增加了高亮代码显示功能(C#版)
<body>
给CuteEditor5增加了高亮代码显示功能(C#版)    
<form id="form1" runat="server">
给CuteEditor5增加了高亮代码显示功能(C#版)    
<script language="JavaScript" type="text/javascript" >
给CuteEditor5增加了高亮代码显示功能(C#版) function ShowMyDialog(button)
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版) 
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版) 
//use CuteEditor_GetEditor(elementinsidetheEditor) to get the cute editor instance
给CuteEditor5增加了高亮代码显示功能(C#版)
 var editor=CuteEditor_GetEditor(button);
给CuteEditor5增加了高亮代码显示功能(C#版) 
//show the dialog page , and pass the editor as newwin.dialogArguments
给CuteEditor5增加了高亮代码显示功能(C#版)
var newwin=showModelessDialog("insertcode.aspx?_rand="+new Date().getTime()
给CuteEditor5增加了高亮代码显示功能(C#版) ,editor,
"dialogWidth:600px;dialogHeight:430px");
给CuteEditor5增加了高亮代码显示功能(C#版) }

给CuteEditor5增加了高亮代码显示功能(C#版)
</script>
给CuteEditor5增加了高亮代码显示功能(C#版)    
<div>
给CuteEditor5增加了高亮代码显示功能(C#版)    
<CE:Editor ID="cuteedit" runat="server" AutoConfigure="Simple">
给CuteEditor5增加了高亮代码显示功能(C#版)        
<FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"
给CuteEditor5增加了高亮代码显示功能(C#版)            CssClass
="CuteEditorFrame" Height="100%" Width="100%" />
给CuteEditor5增加了高亮代码显示功能(C#版)    
</CE:Editor>
给CuteEditor5增加了高亮代码显示功能(C#版)    
</div>
给CuteEditor5增加了高亮代码显示功能(C#版)    
</form>
给CuteEditor5增加了高亮代码显示功能(C#版)
</body>
给CuteEditor5增加了高亮代码显示功能(C#版)
</html>
给CuteEditor5增加了高亮代码显示功能(C#版)
CuteEditor.aspx.cs代码
给CuteEditor5增加了高亮代码显示功能(C#版)using System;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Data;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Configuration;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Collections;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.Security;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.UI;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.UI.WebControls;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.UI.WebControls.WebParts;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.UI.HtmlControls;
给CuteEditor5增加了高亮代码显示功能(C#版)
给CuteEditor5增加了高亮代码显示功能(C#版)
namespace testCuteeditor
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)    
public partial class _Default : System.Web.UI.Page
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)    
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)        
protected void Page_Load(object sender, EventArgs e)
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)        
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)            
int pos = cuteedit.ToolControls.IndexOf("Italic"+ 20;
给CuteEditor5增加了高亮代码显示功能(C#版)            System.Web.UI.WebControls.WebControl ctrl 
= cuteedit.CreateCommandButton("myinsertbutton""csharp.gif""插入代码");
给CuteEditor5增加了高亮代码显示功能(C#版)            ctrl.Attributes.Add(
"onclick""ShowMyDialog(this)");
给CuteEditor5增加了高亮代码显示功能(C#版)            cuteedit.InsertToolControl(pos, 
"myinsertbutton", ctrl);
给CuteEditor5增加了高亮代码显示功能(C#版)        }

给CuteEditor5增加了高亮代码显示功能(C#版)    }

给CuteEditor5增加了高亮代码显示功能(C#版)}

运行如下图:

给CuteEditor5增加了高亮代码显示功能(C#版)

工具栏中多了一个按钮,接下来把codehighlighter的dll控件也按刚才的方法copy到bin目录下,再把Languages目录拷贝到应用程序根目录下,这里还要对web.config进行配置一下,在<configuration>的<configSections>下增加一句:
给CuteEditor5增加了高亮代码显示功能(C#版)<section name="codeHighlighter" type="ActiproSoftware.CodeHighlighter.CodeHighlighterConfigurationSectionHandler, ActiproSoftware.CodeHighlighter.Net20" />

在<configuration>和</configuration>间加
给CuteEditor5增加了高亮代码显示功能(C#版) <codeHighlighter>
给CuteEditor5增加了高亮代码显示功能(C#版)
<cache languageTimeout="3" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<keywordLinking enabled="true" target="_blank" defaultKeywordCollectionKey="ActiproKeywords">
给CuteEditor5增加了高亮代码显示功能(C#版)
<keywordCollection key="ActiproKeywords">
给CuteEditor5增加了高亮代码显示功能(C#版)
<explicitKeyword tokenKey="IdentifierToken" patternValue="Actipro" url="http://www.actiprosoftware.com" caseSensitive="false" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<explicitKeyword tokenKey="IdentifierToken" patternValue="CodeHighlighter" url="http://www.codehighlighter.com" caseSensitive="false" />
给CuteEditor5增加了高亮代码显示功能(C#版)
</keywordCollection>
给CuteEditor5增加了高亮代码显示功能(C#版)
</keywordLinking>
给CuteEditor5增加了高亮代码显示功能(C#版)
<languages>
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="BatchFile" definitionPath="~/Languages/ActiproSoftware.BatchFile.xml" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="C#" definitionPath="~/Languages/ActiproSoftware.CSharp.xml" semanticParserType="CodeHighlighterTest.SemanticCSharpParser, CodeHighlighterTest" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="CSS" definitionPath="~/Languages/ActiproSoftware.CSS.xml" semanticParserType="CodeHighlighterTest.SemanticCssParser, CodeHighlighterTest" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="HTML" definitionPath="~/Languages/ActiproSoftware.HTML.xml" semanticParserType="CodeHighlighterTest.SemanticHtmlParser, CodeHighlighterTest" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="INIFile" definitionPath="~/Languages/ActiproSoftware.INIFile.xml" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="Java" definitionPath="~/Languages/ActiproSoftware.Java.xml" semanticParserType="CodeHighlighterTest.SemanticJavaParser, CodeHighlighterTest" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="JScript" definitionPath="~/Languages/ActiproSoftware.JScript.xml" semanticParserType="CodeHighlighterTest.SemanticJScriptParser, CodeHighlighterTest" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="Perl" definitionPath="~/Languages/ActiproSoftware.Perl.xml" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="PHP" definitionPath="~/Languages/ActiproSoftware.PHP.xml" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="Python" definitionPath="~/Languages/ActiproSoftware.Python.xml" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="SQL" definitionPath="~/Languages/ActiproSoftware.SQL.xml" semanticParserType="CodeHighlighterTest.SemanticSqlParser, CodeHighlighterTest" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="VB.NET" definitionPath="~/Languages/ActiproSoftware.VBDotNet.xml" semanticParserType="CodeHighlighterTest.SemanticVBDotNetParser, CodeHighlighterTest" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="VBScript" definitionPath="~/Languages/ActiproSoftware.VBScript.xml" semanticParserType="CodeHighlighterTest.SemanticVBDotNetParser, CodeHighlighterTest" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<language key="XML" definitionPath="~/Languages/ActiproSoftware.XML.xml" />
给CuteEditor5增加了高亮代码显示功能(C#版)
</languages>
给CuteEditor5增加了高亮代码显示功能(C#版)
<lineNumberMargin foreColor="Teal" paddingCharacter=" " visible="true" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<outlining enabled="true" imagesPath="~/Images/OutliningIndicators/" />
给CuteEditor5增加了高亮代码显示功能(C#版)
<spacesInTabs count="4" />
给CuteEditor5增加了高亮代码显示功能(C#版)
</codeHighlighter>

建立InsertCode.aspx文件(代码高亮处理)代码如下:
 
给CuteEditor5增加了高亮代码显示功能(C#版)<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InsertCode.aspx.cs" ValidateRequest="false" Inherits="testCuteeditor.InsertCode" %>
给CuteEditor5增加了高亮代码显示功能(C#版)
给CuteEditor5增加了高亮代码显示功能(C#版)
<%@ Register TagPrefix="CH" Namespace="ActiproSoftware.CodeHighlighter" Assembly="ActiproSoftware.CodeHighlighter.Net20" %>
给CuteEditor5增加了高亮代码显示功能(C#版)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
给CuteEditor5增加了高亮代码显示功能(C#版)
<html xmlns="http://www.w3.org/1999/xhtml" >
给CuteEditor5增加了高亮代码显示功能(C#版)
<head id="Head1" runat="server">
给CuteEditor5增加了高亮代码显示功能(C#版) 
<title>插入代码</title>
给CuteEditor5增加了高亮代码显示功能(C#版)  
<style type="text/css">
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版) body 
给CuteEditor5增加了高亮代码显示功能(C#版){ BACKGROUND-COLOR: #e5e5e5 }
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版) .tb
给CuteEditor5增加了高亮代码显示功能(C#版){ FONT-SIZE: 13px }
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版) .code
给CuteEditor5增加了高亮代码显示功能(C#版){ width:400px;height:255px; }
给CuteEditor5增加了高亮代码显示功能(C#版) 
</style>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<base target="_self" />
给CuteEditor5增加了高亮代码显示功能(C#版)
</head>
给CuteEditor5增加了高亮代码显示功能(C#版)
<body>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<form id="form1" runat="server">
给CuteEditor5增加了高亮代码显示功能(C#版)
<table class="tb" cellspacing="0" cellpadding="3" border="0">
给CuteEditor5增加了高亮代码显示功能(C#版) 
<tr>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<th align="right" style="WIDTH:80px">编程语言:</th>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<td><asp:DropDownList Runat="server" ID="LanguageDropDownList"/></td>
给CuteEditor5增加了高亮代码显示功能(C#版) 
</tr>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<tr>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<th align="right">选项:</th>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<td><asp:CheckBox Runat="server" ID="OutliningEnabledCheckBox" Checked="True" Text="允许代码折叠" />&nbsp;<asp:CheckBox Runat="server" ID="LineNumberMarginVisibleCheckBox" Checked="True" Text="显示行号" /></td>
给CuteEditor5增加了高亮代码显示功能(C#版) 
</tr>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<tr>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<th valign="top" align="right">代码:</th>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<td><asp:TextBox Runat="server" ID="CodeTextBox" TextMode="MultiLine" Rows="10" Columns="80" CssClass="code" /></td>
给CuteEditor5增加了高亮代码显示功能(C#版) 
</tr>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<tr>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<td>&nbsp;</td>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<td><asp:Button Runat="server" ID="HighlightButton" Text="确 定" OnClick="HighlightButton_Click"/>&nbsp;&nbsp;&nbsp;&nbsp;<input onclick="return window.close()" type="button" value="关 闭" id="Button1" /></td>
给CuteEditor5增加了高亮代码显示功能(C#版) 
</tr>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<tr>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<td></td>
给CuteEditor5增加了高亮代码显示功能(C#版) 
<td><pre>
给CuteEditor5增加了高亮代码显示功能(C#版)
<CH:CodeHighlighter ID="CodeHighlighter1" runat="server" OnPostRender="CodeHighlighter1_PostRender"></CH:CodeHighlighter></pre></td>
给CuteEditor5增加了高亮代码显示功能(C#版) 
</tr>
给CuteEditor5增加了高亮代码显示功能(C#版)
</table>
给CuteEditor5增加了高亮代码显示功能(C#版)
<div id="ScriptOutPut" runat="server"></div>
给CuteEditor5增加了高亮代码显示功能(C#版) 
</form>
给CuteEditor5增加了高亮代码显示功能(C#版)
</body>
给CuteEditor5增加了高亮代码显示功能(C#版)
</html>
InsertCode.aspx.cs代码:
给CuteEditor5增加了高亮代码显示功能(C#版)using System;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Data;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Configuration;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Collections;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.Security;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.UI;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.UI.WebControls;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.UI.WebControls.WebParts;
给CuteEditor5增加了高亮代码显示功能(C#版)
using System.Web.UI.HtmlControls;
给CuteEditor5增加了高亮代码显示功能(C#版)
给CuteEditor5增加了高亮代码显示功能(C#版)
namespace testCuteeditor
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)    
public partial class InsertCode : System.Web.UI.Page
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)    
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)        
protected void Page_Load(object sender, EventArgs e)
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)        
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)            
if (!IsPostBack)
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)            
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)                ActiproSoftware.CodeHighlighter.CodeHighlighterConfiguration config 
= (ActiproSoftware.CodeHighlighter.CodeHighlighterConfiguration)System.Configuration.ConfigurationManager.GetSection("codeHighlighter");
给CuteEditor5增加了高亮代码显示功能(C#版)                
foreach (string key in config.LanguageConfigs.Keys)
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)                
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)                    LanguageDropDownList.Items.Add(key);
给CuteEditor5增加了高亮代码显示功能(C#版)                }

给CuteEditor5增加了高亮代码显示功能(C#版)            }

给CuteEditor5增加了高亮代码显示功能(C#版)        }

给CuteEditor5增加了高亮代码显示功能(C#版)
给CuteEditor5增加了高亮代码显示功能(C#版)        
protected void HighlightButton_Click(object sender, EventArgs e)
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)        
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)            CodeHighlighter1.Text 
= CodeTextBox.Text;
给CuteEditor5增加了高亮代码显示功能(C#版)            CodeHighlighter1.OutliningEnabled 
= true;
给CuteEditor5增加了高亮代码显示功能(C#版)            CodeHighlighter1.LanguageKey 
= LanguageDropDownList.SelectedValue;
给CuteEditor5增加了高亮代码显示功能(C#版)            CodeHighlighter1.OutliningEnabled 
= OutliningEnabledCheckBox.Checked;
给CuteEditor5增加了高亮代码显示功能(C#版)            CodeHighlighter1.LineNumberMarginVisible 
= LineNumberMarginVisibleCheckBox.Checked;
给CuteEditor5增加了高亮代码显示功能(C#版)        }

给CuteEditor5增加了高亮代码显示功能(C#版)
给CuteEditor5增加了高亮代码显示功能(C#版)        
protected void CodeHighlighter1_PostRender(object sender, EventArgs e)
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)        
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)            
if (IsPostBack)
给CuteEditor5增加了高亮代码显示功能(C#版)给CuteEditor5增加了高亮代码显示功能(C#版)            
给CuteEditor5增加了高亮代码显示功能(C#版){
给CuteEditor5增加了高亮代码显示功能(C#版)                
string html = CodeHighlighter1.Output;
给CuteEditor5增加了高亮代码显示功能(C#版)                html 
= html.Replace("\r\n""<br />");
给CuteEditor5增加了高亮代码显示功能(C#版)                System.Text.StringBuilder htmlsb 
= new System.Text.StringBuilder(html);
给CuteEditor5增加了高亮代码显示功能(C#版)                htmlsb.Replace(
"\\""\\\\");
给CuteEditor5增加了高亮代码显示功能(C#版)                htmlsb.Replace(
"'""\\\'");
给CuteEditor5增加了高亮代码显示功能(C#版)                html 
= htmlsb.ToString();
给CuteEditor5增加了高亮代码显示功能(C#版)                
string divstr= "<div style=\\'BORDER-RIGHT: windowtext 0.5pt solid;PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px;PADDING-TOP: 4px;BORDER-LEFT: windowtext 0.5pt solid;WIDTH: 98%; BORDER-BOTTOM: windowtext 0.5pt solid;word-break:break-all\\'>";
给CuteEditor5增加了高亮代码显示功能(C#版)                html 
= divstr + html + "</div>";
给CuteEditor5增加了高亮代码显示功能(C#版)                System.Text.StringBuilder sb 
= new System.Text.StringBuilder();
给CuteEditor5增加了高亮代码显示功能(C#版)                sb.Append(
"<");
给CuteEditor5增加了高亮代码显示功能(C#版)                sb.Append(
"script");
给CuteEditor5增加了高亮代码显示功能(C#版)                sb.Append(
">");
给CuteEditor5增加了高亮代码显示功能(C#版)                sb.Append(
"var editor=window.dialogArguments;editor.ExecCommand('PasteHTML',false,'" + html + "');window.close();");
给CuteEditor5增加了高亮代码显示功能(C#版)                sb.Append(
"<");
给CuteEditor5增加了高亮代码显示功能(C#版)                sb.Append(
"/");
给CuteEditor5增加了高亮代码显示功能(C#版)                sb.Append(
"script");
给CuteEditor5增加了高亮代码显示功能(C#版)                sb.Append(
">");
给CuteEditor5增加了高亮代码显示功能(C#版)                ScriptOutPut.InnerHtml 
= sb.ToString();
给CuteEditor5增加了高亮代码显示功能(C#版)
给CuteEditor5增加了高亮代码显示功能(C#版)            }

给CuteEditor5增加了高亮代码显示功能(C#版)        }

给CuteEditor5增加了高亮代码显示功能(C#版)    }

给CuteEditor5增加了高亮代码显示功能(C#版)}

给CuteEditor5增加了高亮代码显示功能(C#版)

本文参考网上的几篇关于CuteEditor的文章,修正了其文章改成C#后出现的单引号问题

转载于:https://www.cnblogs.com/goody9807/archive/2008/05/14/1196800.html

相关文章:

  • 2021-08-07
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-06
  • 2021-06-18
  • 2022-12-23
相关资源
相似解决方案