首页 > micolog, 博客相关 > 适用于micolog的windows live writer语法高亮插件

适用于micolog的windows live writer语法高亮插件

2010年10月6日 发表评论 阅读评论

对于我等码农来说,在博客上贴代码是家常便饭,为了让代码更好看,代码高亮是必须的,作为离线博客最常用工具,windows live writer这方面的插件有不少,但很遗憾的是,我在网上花了九牛二虎之力,也没搜到适合我的博客平台micolog的语法高亮插件。

既然放搜狗不行,那只好自己动手,丰衣足食。于是我找了个适用于wordpress的语法高亮插件,将其更改了下,貌似原来的名字叫做HiLi,现在已经既不清了,原网址也记不清了,貌似是下网址的主人写的:

http://www.badder.cn/

我主要对代码进行了如下改动:

1. 对micolog和wordpress的高亮插件的语法进行了比较分析,从而对高亮语法的头的生成代码进行了更改,从而使值适用于micolog。

2. 对html一些特殊字符进行了自动替换,如”>”替换成”&gt”,使高亮后的代码末尾不会出现类似”<stdio.h>”的多余代码。

3. 增加了对某些行进行高亮的功能,这个功能对于比较长的代码中需要强调某行代码是很有用的。

完成后的软件界面如下:

image

下面是上面这段代码的高亮结果:

  using namespace std;

int main()
{
  cout << "test"<<endl;
}
 

下载地址:

编译好的dll:
源码:

使用方法:把dll考入windows live writer 插件目录(默认是C:\Program Files\Windows Live\Writer\Plugins)即可.

enjoy~

btw:问一个在windows live writer上发micolog日志的问题

我用wlw发日志的时候,发现其slug无效,感觉是slug没被传输,有人碰到类似问题并且找到了解决方案吗?有的话在留言里告诉我,谢谢~



本文作者: Sigma    在新浪微博关注SigmaSigmaWeibo    RSS订阅本博客
本文链接: http://www.sigma.me/2010/10/06/micolog-wlw-hilighter.html
本博客采用知识共享署名—非商业性-禁止演绎使用3.0协议进行许可,转载请保留作者和原文链接。

  1. 2011年2月13日12:54 | #1

    WLW不错的

  2. 2019年1月10日00:38 | #2

    I’m also commenting to make you understand what a helpful discovery my wife’s girl enjoyed going through your site. She figured out so many things, with the inclusion of how it is like to have a marvelous helping heart to let the others just fully understand a number of advanced subject matter. You truly did more than my expected results. Many thanks for coming up with the priceless, trustworthy, informative and in addition unique tips about the topic to Gloria.

  3. 2019年1月10日04:27 | #3

    Thank you a lot for giving everyone a very remarkable opportunity to read in detail from this website. It’s always very pleasing plus stuffed with a great time for me and my office friends to visit your blog at the least three times in 7 days to read the newest guidance you will have. Of course, I am just always contented with all the effective solutions you give. Certain two points on this page are without a doubt the most impressive we have all had.

  4. 2019年1月10日17:19 | #4

    I would like to voice my admiration for your kindness giving support to folks who actually need assistance with this particular content. Your very own commitment to getting the solution throughout ended up being particularly important and has usually allowed girls like me to get to their endeavors. Your valuable hints and tips can mean much a person like me and still more to my office workers. Many thanks; from each one of us.

  5. 2019年1月11日11:38 | #5

    Thanks for all your labor on this blog. Gloria really loves carrying out internet research and it’s really obvious why. Many of us know all regarding the compelling mode you make very useful steps via your blog and as well as strongly encourage contribution from people on that subject then our own girl is now being taught so much. Enjoy the remaining portion of the year. You’re performing a fantastic job.

  6. 2019年1月12日06:59 | #6

    I must show my thanks to this writer for bailing me out of such a circumstance. As a result of surfing throughout the online world and finding ideas that were not pleasant, I was thinking my entire life was gone. Living without the strategies to the problems you have sorted out by way of your site is a critical case, and ones that might have badly damaged my career if I had not noticed your website. Your good expertise and kindness in dealing with all the things was vital. I don’t know what I would have done if I hadn’t come across such a step like this. I can also at this time look forward to my future. Thanks a lot very much for this expert and amazing help. I will not think twice to propose your web blog to anybody who wants and needs guidance on this topic.

  7. 2019年1月13日03:38 | #7

    I not to mention my guys happened to be analyzing the nice techniques found on your web site while at once came up with a horrible suspicion I had not expressed respect to you for them. These ladies are actually for this reason joyful to see them and have in reality been having fun with those things. Many thanks for actually being simply accommodating and for settling on these kinds of essential themes most people are really eager to know about. Our own honest regret for not expressing appreciation to you earlier.

  8. 2019年1月13日21:54 | #8

    I would like to express my appreciation to the writer just for rescuing me from such a predicament. As a result of browsing throughout the online world and getting solutions that were not pleasant, I thought my entire life was done. Being alive minus the approaches to the difficulties you have sorted out through your guide is a crucial case, as well as the ones that would have in a negative way affected my entire career if I hadn’t discovered the website. Your knowledge and kindness in controlling almost everything was precious. I am not sure what I would’ve done if I hadn’t encountered such a thing like this. I am able to at this moment relish my future. Thank you very much for your professional and effective guide. I won’t be reluctant to endorse your web page to any person who needs to have support about this subject.

  9. 2019年1月14日14:38 | #9

    Thank you for every one of your efforts on this website. Gloria really likes participating in investigations and it’s really easy to see why. I hear all about the compelling ways you deliver practical secrets by means of your web site and as well as encourage participation from visitors on this idea plus my simple princess is really studying a whole lot. Have fun with the rest of the new year. You are conducting a brilliant job.

  1. 本文目前尚无任何 trackbacks 和 pingbacks.

无觅相关文章插件,快速提升流量