Windows Live Writer 代码插件

Windows Live Writer 是个挺不错的日志书写工具,但对于代码问题比较头痛,在网上搜了一些代码插件,现推荐几款比较好用的插件

1.Insert Code for Windows Live Writer

效果是这样子的:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class TestIP : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string IP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
            if (string.IsNullOrEmpty(IP))
            {
                //没有代理IP则直接取客户端IP 
                IP = Request.ServerVariables["REMOTE_ADDR"];
            } 
        }
    }
}
 

评:没有明显的边框,但看起来比较清爽。

下载地址:http://gallery.live.com/liveItemDetail.aspx?li=1f57bd9b-a692-4593-9e9e-e2962d9c0eee&bt=9&pl=8

2.Code Snippet Plugin

效果:
   1: using System;
   2: using System.Collections.Generic;
   3: using System.Linq;
   4: using System.Web;
   5: using System.Web.UI;
   6: using System.Web.UI.WebControls;
   7:  
   8: namespace WebApplication1
   9: {
  10:     public partial class TestIP : System.Web.UI.Page
  11:     {
  12:         protected void Page_Load(object sender, EventArgs e)
  13:         {
  14:             string IP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
  15:             if (string.IsNullOrEmpty(IP))
  16:             {
  17:                 //没有代理IP则直接取客户端IP 
  18:                 IP = Request.ServerVariables["REMOTE_ADDR"];
  19:             } 
  20:         }
  21:     }
  22: }

评:有明显的边框与底色,代码挺突出挺漂亮

下载地址:http://www.box.net/shared/j14u8rtm6g

 

3.CodePaste Plugin For Windows Live Writer

效果:

隐藏行号 复制代码 这是一段程序代码。
  1. using System;
    
  2. using System.Collections.Generic;
    
  3. using System.Linq;
    
  4. using System.Web;
    
  5. using System.Web.UI;
    
  6. using System.Web.UI.WebControls;
    
  7. 
    
  8. namespace WebApplication1
    
  9. {
    
  10.     public partial class TestIP : System.Web.UI.Page
    
  11.     {
    
  12.         protected void Page_Load(object sender, EventArgs e)
    
  13.         {
    
  14.             string IP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
    
  15.             if (string.IsNullOrEmpty(IP))
    
  16.             {
    
  17.                 //没有代理IP则直接取客户端IP 
    
  18.                 IP = Request.ServerVariables["REMOTE_ADDR"];
    
  19.             } 
    
  20.         }
    
  21.     }
    
  22. }
    

 

评:复制代码后,插入-》粘贴源代码  就完成了,方便,也挺美观

下载地址:http://public.blu.livefilestore.com/y1ps6diGhJIvBML_030iJ_wpGw0iitdKsIsvP5qv5U9HhAoSqH_2DqxEPkQ7NVZGDJMTuT-LhivnXd73x9MIKkw9w/CodePaste-v1.0.3345.rar?download

4.Highlight4Writer

效果:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class TestIP : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string IP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
            if (string.IsNullOrEmpty(IP))
            {
                //中文乱码了
                IP = Request.ServerVariables["REMOTE_ADDR"];
            } 
        }
    }
}
评:非常不错,不过要下中文版的,英文版的中文会出现乱码,除非你英语水平还可以的话,那也就无所谓了。
下载地址:http://www.codeplex.com/wikipage?ProjectName=Highlight4Writer
 
 
posted @ 2010-04-15 12:08  陶发辉  阅读(547)  评论(1编辑  收藏  举报
做程序员不难,难的是做有思想的程序员