就像在VS.net中显示的那样子,存成html格式,保留样式
看这个网站中 http://www.cnblogs.com/mahope/archive/2006/04/14/375221.html 的代码显示方式using 语句#region using 语句
#endregion//添加的第一行
[assembly: log4net.Config.XmlConfigurator(ConfigFile="log4net.config", Watch=true)]public class Global : System.Web.HttpApplication
{
/**//// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null; public Global()
{
InitializeComponent();
}
protected void Application_Start(Object sender, EventArgs e)
{
//添加的第二行
log4net.Config.XmlConfigurator.Configure(new FileInfo("log4net.config"));
}other methods#region other methods
#endregion
}
看这个网站中 http://www.cnblogs.com/mahope/archive/2006/04/14/375221.html 的代码显示方式using 语句#region using 语句
#endregion//添加的第一行
[assembly: log4net.Config.XmlConfigurator(ConfigFile="log4net.config", Watch=true)]public class Global : System.Web.HttpApplication
{
/**//// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null; public Global()
{
InitializeComponent();
}
protected void Application_Start(Object sender, EventArgs e)
{
//添加的第二行
log4net.Config.XmlConfigurator.Configure(new FileInfo("log4net.config"));
}other methods#region other methods
#endregion
}
把要贴的代码复制,在word粘贴,将word文档编一下转存为html就行