Geeks With Blogs
Gabriel Lozano-Morán blog

Christoph De Baene is currently working on a plugin for Windows Live Writer that will enable you to add syntax colored blocks of code. This post is me testing this plugin and I must say that this is a must have plugin, you will definitely like it!

public class TagContentSource : ContentSource { public override DialogResult CreateContent(IWin32Window dialogOwner, ref string newContent) { using (InsertTags tagForm = new InsertTags(new TagContext(base.Options))) { DialogResult formResult = tagForm.ShowDialog(); if (formResult == DialogResult.OK) { TagContext context = new TagContext(base.Options); context.TagListTemplate = tagForm.TagListTemplate; context.TagTemplate = tagForm.TagTemplate; context.TagTemplateType = tagForm.TagTemplateType; newContent = tagForm.GetTags(); } return formResult; } }
Posted on Thursday, August 17, 2006 9:13 PM | Back to top

Comments on this post: Code Highlight plug-in for Windows Live Writer

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Gabriel Lozano-Morán | Powered by: