zoukankan      html  css  js  c++  java
  • 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
     
     
  • 相关阅读:
    hdu 1455 N个短木棒 拼成长度相等的几根长木棒 (DFS)
    hdu 1181 以b开头m结尾的咒语 (DFS)
    hdu 1258 从n个数中找和为t的组合 (DFS)
    hdu 4707 仓鼠 记录深度 (BFS)
    LightOJ 1140 How Many Zeroes? (数位DP)
    HDU 3709 Balanced Number (数位DP)
    HDU 3652 B-number (数位DP)
    HDU 5900 QSC and Master (区间DP)
    HDU 5901 Count primes (模板题)
    CodeForces 712C Memory and De-Evolution (贪心+暴力)
  • 原文地址:https://www.cnblogs.com/taofh/p/1712522.html
Copyright © 2011-2022 走看看