Wednesday, March 18, 2009

Code Snippet plugin for Windows Live Writer v2.0.0

It's been a while since I looked at this plugin, just as it's been a while since I blogged (but that's another story). I have spent the last day or two implementing most of the features listed below in the current code base. This release is fully functional and I am looking for some of you folks to help me determine its stability in other environments.

Here's a list of what is included in this release:


Please take a look at some of the screenshots I posted in Code Snippet plugin for Windows Live Writer section of the the Plugin Collection for Windows Live Writer project at CodePlex.

New Languages

The following formats have been added to the list of supported languages:
  • AutoIt (never heard of it, saw someone looking for such support elsewhere and decided to add it, why not!)
  • ColdFusion
  • Java
  • PHP
  • Regular Expression

New Options Dialog

One of the things I wanted to do for a long time was expose some of the configuration parameters for the plugin. In previous versions, some of these configuration parameters were available in the configuration file. But now, you can edit them through a dialog and more of the options have been exposed.

New Features

Customize Styles
In previous releases the styles used to apply the syntax highlighting were exposed in a very limited fashion. You could only get the cascading style sheet to include as a reference in your website. However, this works great only if your audience is viewing your posts in your website. If you want to make sure your RSS feeds, for example, have the proper formatting, you need to embed the styles.
Now, you can change the look of your code snippets by modifying these styles through the Options dialog. The changes are stored in the configuration file and will be used to apply to any future code snippets you insert in your posts.
Edit Code Snippets
In the original implementation, I did not want to use the in-place editing features of the Windows Live Writer API. So, I opted for a different implementation where you can highlight existing snippets of code, whether or not these were inserted using this plugin. Basically, any highlighted text can be converted to a code snippet. This is a great feature, if I may say so myself, for re-applying style changes, if you previously embedded the styles in your post.
Convert Any Text to a Code Snippet
Using the same feature for editing snippets of code, you can now select any text in your post and convert it to a code snippet.

Miscellaneous Enhancements

Here's a list of additional enhancements to the plugin. These enhancements are not visible to the end user but in my opinion make the package more robust and complete.
  • Refactored style logic to allow exposure through Options dialog.
  • Migrated solution to Visual Studio 2008 SP1.
  • Verified / Updated all source code documentation for completeness and to ensure it is as accurate as possible.
  • Localized all string resources, including those used in the Options dialog using some custom classes, such as Attribute classes, for use in the PropertyGrid control. (Anyone interested in translating these resources?)
  • Added stand-alone application to launch the Code Snippet plugin outside of the context of the Windows Live Writer editor. This is helpful for debugging, or when you just want to get some formatted HTML to post in a forum or something. (This is not pat of the deployment - let me know if you think it should be.)
  • Analyzed the source code through the Code Analysis feature of Visual Studio 2008.
  • Fixed the source code based on ReSharper 4.1 and Code Analysis recommendations.

Please refer to my original post for details on some of the other features the plugin offers.


Andrey Beshkov said...

Nice plugin i use it a lot. Thanks for your job.

Upgradede today to most recent version and found minor bug. If you install newest version without deleting old version it will crash Live writer. I think you should check for old version and warn user or remove it automaticaly.

And by the way is it possible to implement support for Powershell syntax?

Leo Vildosola said...

Hmmm. It is not supposed to do that. Can you tell me which version of the plugin you had prior to the upgrade? It is supposed to be cleaned out for you. Perhaps you can even e-mail me the setup you previously used, if you still have it. If you can tell me the OS you use also can help me. Thanks.

About PS, I had started looking at it but I did not have a chance to complete it so it did not make it.

I will be enhancing the plugin so that the user can add their own languages. This should prove very useful.

TBeaulieu said...


I uninstalled my old version today and installed the latest. It no longer appears in Live Writer. I've repeated this process 11 times. It's not in the list of add-ins. Do you have any suggestions? Thank you.

Lars Wilhelmsen said...

Feature request: M & MGrammar support :-)


Lars Wilhelmsen

Leo Vildosola said...

Can you please tell me which version of Windows Live Writer you are using? The latest code assumes the latest WLW whose plugin location is different.

Leo Vildosola said...

Larse, I will be honest with you, I have never heard of M & M. Can you point me to a reference for the reserved keywords? Thanks.

Leo Vildosola said...

TBeaulieu, forgot to mention, if you want to continue using your current version of WLW you can simply copy the files CodeSnippet.dll, CodeSnippet.rtf and WLWPluginBase.dll from the folder C:\Program Files\Windows Live\Writer\Plugins to the folder C:\Program Files\Windows LiveWriter\Plugins.

Note there's no backslash between Live and Writer in the second path.

I don't see any incompatibilities since I am only using the basic interface that's being the same since the API was first published.

Leo Vildosola said...

Sorry. There's should be a space between Live and Writer, which does not show in the post.

Andrey Beshkov said...

I`m using Windows Live Writer 14.0.8064.206 ru under Windows 7 build 7000

Unfortunately i can`t remeber old version of code snippet plugin.

Leo Vildosola said...

Andrew, I am assuming that you are not able to get the new version of the plugin working. Is this correct? I am using the same configuration you are, except I have a slightly earlier version of WLW. My version is 14.0.8050.1202.

You should be able to uninstall the previous version through Programs and Features. However, assuming that you cannot get it to work, or that you failed to remove it completed, you may need to manually uninstall whatever previous version you may have had in order to ensure you have a clean environment, prior to installing the new version.

If this is the case, try the following steps:

1. Using RegEdit, navigate to HKEY_LOCAL_MACHINE\SOFTWARE \Microsoft\Windows\CurrentVersion \Uninstall. Under that key you will see a bunch of GUID keys, each representing a different installed package.

2. Find the one whose DisplayName property matches Code Snippet plugin for Windows Live Writer.

3. Copy the key, for example, in my current configuration that key is {7A5282C4-B29A-4EAA-A570-CA496E65BE72}.

4. Once you have that key you can use it to manually uninstall. Use the following from a command prompt: msiexec /i {7A5282C4-B29A-4EAA-A570-CA496E65BE72}.

NOTE: You may need to run as the administrator in Windows 7.

Let me know if this does not work for you. Feel free to contact me directly and I can help you get it working.

Andrey Beshkov said...

Leo thanks for your help.

I did unistalled both versions of plugin and installed newest version again. Problem is fixed and now everything works.

zmhu said...

This is a very useful plugin!

"<!--CRLF-->" caused additional new line in both IE and FF. After manually removed them, the problem solved. My blog is served by WordPress.

Leo Vildosola said...

Thanks! Are you sure that the problem is caused by those comment tags? These should not have an impact in the rendering, as they are only used internally to be able to re-read the code snippet to allow editing after publishing. I would be surprised that they have something to do with the layout. However, there may be something else that is causing Wordpress to render the code snippet like that. I will see if I can find my old Wordpress account and see if I can narrow it down. Thanks for letting me know about it.

Leo Vildosola said...

zmhu, I did some quick tests and WordPress is auto-formatting the posts. If I recall, there's a way to turn this feature off. I just don't know how since I am not very familiar with WordPress. Consider going my previous post on the original CodeSnippet plugin since there may be something there about WordPress and this same issue.

During the tests, I can see that it not only interprets CRLF as a constant that it expands, it also strips out BR tags. In general, it seems to pre-process the generated HTML before rendering. This is a big problem in my opinion. I just don't know how to tell WordPress how to stop doing that.

Marcus said...

@Leo: Wordpress does preprocess the HTML. See "clean_pre" in this source file.

Is there a way that you could have the generated HTML inside the <pre> use linebreaks (\n) instead of <br />? I think that's what you're supposed to do.

Leo Vildosola said...

Thank you Marcus for taking the time to make the investigation and sending me the patch. I will take a look at it and apply it. I also need to do some changes to change the CRLF comment that I use internally to correctly re-process an existing code snippet for editing. It appears that this is a reserved constant used in WordPress and it gets parsed also. So, I will need to change that logic. Why do they do that? Weird. Thanks again for the patch.

Leo Vildosola said...

Andrey, I meant to update you about support for PowerShell. I was going over the code and I realized the PS is already supported. However, it is under MSH, or Microsoft Shell, the name used prior to PowerShell. I will be renaming it in the next release to avoid the confusion. Sorry it did not occur to me when I originally posted the response to you.

Paul Bendall said...

Excellent plugin. Noticed the comment of MSH being renamed to Powershell in the next version.

I use Quest Powergui Script Editor for my Powershell code and it would be nice if this plugin was slightly closer to the colouring of Powergui.

Leo Vildosola said...

Paul, the latest version of the plugin allows modifying the coloring since the styles are now exposed. It would be a great contribution if you could help out since you are more familiar with PowerGUI.

However, just pointing me to a source may be enough to start the process. Thanks for the feedback.

Paul said...


Not sure how to help with the Powershell formatting?


Leo Vildosola said...

Paul, no worries. I just meant that if you already knew the syntax highlighting used that the styles were available in the tool and that you could probably be able to change it to make it look like PowerGUI. That's all. No worries thought, if I get a chance I will look at it and see what I could figure out. Cheers.

Julian Easterling said...

I'd like to add some languages that I use: Perl, Python, Bash. Do you implement the Language as a plug-in so that "Third-Party" add-ons can be done? Is it done inside the code or with "XML" files outside of the code?

Leo Vildosola said...

Julian, unfortunately, at this time, the plugin builds the support for different languages internally as part of the code. However, I have done some major changes in this 2.0 release that has isolated the necessary parts for exposure. So the plan is to do just what you are asking.

If you look at the requested features list, your request is right there. In fact, it is one of the major changes I will be making.

I suggest you vote on the features you'd like to see and add others for consideration.

Jim Artis said...

Hello Leo,

I began using Code Snippet plugin for Windows Live Writer Build I'm diplaying my css code for the Vigilance Theme. I love the ease of use and inserted code @

Although, I specified the default container [highlighted when I look at the "Format" options. I do not get a container in IE 8.0, Firefox 3.0.8, or Chrome

I've tried different overflow settings after the page is published to include "scroll" Nothing I've done give me a container. WLW preview shows the container. The WLW source code looks the same as the code w/i the browser.

Do I have a anomly, or is there a doucumented reason I do not get the container? As a workaround, I've used 2-3 lines for my comments, rather than the single line I had before.

I'm pasting my css code from my edit css page and then inserting the resultant css code.

Thanks in advance for your assistance with this problem.


Leo Vildosola said...

Jim, thanks for taking the time to bring this to my attention. I will take a look at it and see what I can figure out. It may be a combination. I just checked my own posts and I see the scrollbars gone also. So, there maybe be an incompatibility with the CSS being used.

Jim Artis said...

Thanks Leo,

I is always good when the problem is duplicated--solution are more easily arrive at. The underlying source code changes I made would not give me a container. Thanks Leo for taking this on. --jim

Leo Vildosola said...

Jim, try the following:

- Remove overflow: visible from the AltevenStyle, AltStyle, CodeStyle, and PreStyle.
- Change overflow: visible to overflow: auto in WrapperStyle.
- Add maximum-height: 200px; white-space: none; to WrapperStyle.

I did these changes to my settings this morning and published a new post. It seems to work okay in IE8 and Chrome. I did not check with FireFox. Let me know.

Jim Artis said...

Thanks Leo!

Questions please. Where do I find AltevenStyle, AltStyle, CodeStyle, and PreStyle? Is this a permanent fix or workaround?


Jim Artis said...

Okay, Leo sorry about that. I found the attributes to be altered: Tools, Options, CSS of Code Snippet plugin. Made the changes, still no container. Verified the changes, restarted WLW, inserted code again; still no container. Changed overflow: from auto to scroll--no container. Tested with Chrome, Firefox, & IE. Given it's working for, but not me, there must be something on my end [unless someone else is experiencing what I am experiencing]. Thanks for what you have done thus far. --jim

Jim Artis said...

Update: also removed all css coding and tested with the same 3 browsers--no container. --jim

Jim Artis said...

One of my post is missing where i found the styles and gave a detailed account of the results. It was my 2nd comment to you this morning. Thanks! --jim

Leo Vildosola said...

Jim, unfortunately, since you are "embedding" the styles what you need to do is highlight the code snippet you want to re-apply styles. Then load the plugin, it may ask you if you want to load it and you simply select Yes. Once you have the snippet in the plugin again, make sure the style is the applicable (i.e. correct language, etc.) and re-insert it again. Once you do that try it again and it should work.

Leo Vildosola said...

Jim, BTW, what I mean by "try it again" is post it again. Once you re-apply the styles that will get embedded in the post you should see the results you are looking for. Let us know.

Jim Artis said...

Thanks again, but no cigar. I'm reload unformatted css code for my blog; loaded that page into WLW; highlighted [selected] the css code; opened the snippet; received the formatting prompt you mentioned; selected "yes"; ensured css is the style [container is true]; published the snippet formatted css code--no change for before in 3 browsers. Again, the WLW preview shows what I expect. The browsers display the full-length of the code and shows no scroll bars.

I did some css mode testing yesterday and achieved containers [.entry {overflow:auto;}], but could not isolate the container to my css page, nor was the max-height parameter a factor. I also posted css code to my main blog, the result was the same--no cigar.

I hope this narrows some what.

Leo Vildosola said...

Jim, I just realized that you are using WordPress. I have had many problems with WP since it strips out HTML and other things. I do have a test WP account. I will try it later on today in that blog and see what is going on.

Jim Artis said...

Hi Leo,

Are you still working on the problem I presented?



Anonymous said...

This is a very good plugin and I use it frequently. I installed version 2, but it added it as a new plugin instead of replacing my previous version. You should fix your installer to update the current installation properly. Otherwise, excellent plugin.

Leo Vildosola said...

Jim, sorry for the delay responding. I have not had a chance to take a look at this. I will try to spend some time on the plugin on the weekend.

Anonymous, I will double check it. Thanks for the feedback.

Jim Artis said...

Thanks Leo. I'll be looking for your reply this weekend. --jim

Leo Vildosola said...

Jim, sorry to give you bad news. I tried and tried but I cannot make it work correctly with Wordpress. It is Wordpress that is the problem. It is stripping out HTML and style tags. If you are using for your blog then I am afraid I don't know what you could do. My Wordpress sandbox blog site is on and I could not find anything to allow me to turn off its filters.

If you are hosting your own version of Wordpress downloaded from then you may have a few things you can do. It appears that you can disable filters by making changes to the code itself. I did not dig deeper into this since I don't know enough to make it work corretly.

You can also add plugins. One such plugin I found is called Raw HTML and you can get it from

Other than that I could not find anything that can make it work nicely. I'm afraid that I cannot help on this one, as it goes beyond my knowledge of Wordpress. Sorry about that.

Jim Artis said...

Thanks Leo for the effort. I appreciate it. My OP stated plugins for me. I'll live with what I have until I find another way. Take care and THANKS! --jim

Jim Artis said...

Good Morning Leo,

It is fixed!

I now have a container in my blog by removing "font-family: 'direction" from the codeSnippetWrapper section of your code. I tested many times to ensure this single change is what gives the container. Of course, my thought is that's not a font on my computer, therefore the misbehavior. I hope this helps in making your code usable by more bloggers.

Thanks again for your efforts.


Jim Artis said...

Hello again,

In my last post, I gave you a remedy for the symptom. The route cause on my computer is the font 'new Courier'

Using your Tools, options, css function, I removed the first font and now I get the container automatically [w/o have to edit in the blog].

I also increased the width of the white background [to 118%] to span the container. Now I wrestling with the gray bg line-height. There is likely a relationship. between the two.

I hope this helps.


Stefan Lieser said...

I'm sorry, but your great plugin doesn't work with the current Live Writer version. Log shows the following:

WindowsLiveWriter,1.3784,None,00001,06-Mai-2009 15:47:02.185,"Starting Windows Live Writer 12.0.1366.1026",""
WindowsLiveWriter,1.3784,None,00002,06-Mai-2009 15:47:02.185,".NET version: 2.0.50727.3074",""
WindowsLiveWriter,1.3784,None,00003,06-Mai-2009 15:47:02.520,"Failed to load plugin assembly [C:\Program Files\Windows Live\Writer\Plugins\CodeSnippet.dll]",""
WindowsLiveWriter,1.3784,None,00004,06-Mai-2009 15:47:02.537,"System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Leo Vildosola said...

Stefan, unfortunately, it looks like you will need to upgrade to the latest version of WLW. The v2.0 release of the plugin only supports 14.0.x+ and you are running 12.0.x. If that is not an option I can make available to you an earlier version of the plugin that will be compatible with your WLW version.

Stefan Lieser said...

Arg... Yes your are right, v12 is not the current one... I thought I had downloaded the current version.

Thanks for your help!!

Philipp said...

Hi there

I've been using earlier versions successfully with my WP blog, but the new one doesn't work anymore.

I don't edit my posts within WP at all, so formatting is not an issue for me, but a main problem seems to be that the plug-in write "br" tags for line breaks with the "pre" sections.

These line breaks get lost as soon as I post, and even if I save locally, reopen the draft, select the text and paste it into my text editor. As a result, the code snippets become completely unreadable.

I think a simple line break (rather than a line break tag) would solve that issue.


Philipp said...

Update: Can confirm, it's the line breaks, so manually replacing them fixes the issue for now.

A simple line feed is not sufficient for WLF, but I replaced the "br"-tags in the snippet with carriage-return/line-feeds (\r\n) and this worked like a charm:

Post with snippetsCheers, and thanks for a great plug-in :)

Leo Vildosola said...

Phillipp, thank you for bringing this to my attention. I am currently working on fixing this issue. Look forward to an update soon. The troubleshooting you are doing and sharing with us helps me better understand the issue. Thanks.

papa said...

Hi, i have a little problem: when not in alternate lines mode, my code is aligned in a row. It seems that are missing (sorry for my english.
Is it normal ?
Thanks for your work. Nicolas

Leo Vildosola said...

It sounds like you are using WordPress. The plugin currently has an issue with how WP process the HTML and the corresponding CSS. I am working on finding a clean way to fix this that will work cross browser. I'll keep you posted once I finalize the code changes.

Swashata said...

Wow! works like a charm. I was really searching for something to highlight my php, css and HTML codes. Previously installed "Code" plugin but thats not good[supports less languages]... But this code snippet plugin is just awesome :)

itscodingtime said...

Great add-on to WLW. One of the my most used. I was having a problem with formatting in IE8, but I just grabbed the newest version and I'll give it a try to see what happens.

Uros Calakovic said...


I have been using your Code Snippet plugin successfully since January, and want to congratulate you on your excellent work.

Now, due to some problems with WMI I had to reinstall (Win XP SP3), and after my minimal install (XP, VS 2008 SP1, SQL Server 2008), I downloaded and installed the latest version of WLW. After that I downloaded and installed your plugin and the installation seemed to work fine, but your plugin didn't show in WLW 'Insert' list.

The plugin showed in Add or Remove Programs, so I uninstalled and reinstalled it once more, but with the same result.

After some research I found out that adding the plugin amounts to putting its .dll into \Plugins directory of WLW, so I uninstalled once more, and just put the two dll's into \Plugins, but that didn't work either.

After that I downloaded an alternative code formatting plugin and installed it (also a MSI package). This one put one .dll file into \Plugins directory. It showed in WLW in 'Insert', but for some reason it prevented my WMI Win32_Product class from enumerating instances. I uninstalled that plugin and put its only dll in\Plugins directory and it still showed in WLW.

So, now I am able to use the alternative plugin, but I would really like to use your plugin, because of its features. Besides, I'm confused regarding the installation (why putting the other plugin dll into \Plugins worked, and it didn't work for your plugin, etc...).

If you have any idea what happened, what I could do to make your plugin install properly, or install it manually, I would be most thankfull.

(If it is of any help, my \Plugins directory path is: C:\Program Files\Windows Live\Writer\Plugins)

Uros Calakovic said...

Sure enough, just as I have posted my comment, I've found the solution, I wasn't using the latest version after all. Please ignore my previous comment and I will now retreat in shame to use your excellent product. Thanks!

Gabriele said...

Hi Leo, very nice plug-in.

I just have one issue, the output web page seems not showing up as expected.
The Edit and Preview views look fine in WLV, but after publishing the page is not nice looking online (WordPress 2.8.4).

You can see the issue here:

Any idea? Thanks in advance.

Oliver Wirkus said...

Nice plugin, but it only shows about 6 lines of code. When adding more line of code, scrollbars become visible.
How can I change the layout to be able to display all lines of code, not only 6?

Leo Vildosola said...

Gabriel, there are some issues with WordPress. If you refer back to the original post for Code Snippet plugin for Windows Live Writer you can see in the comments that some folks have some suggestions as to how to fix it.

Oliver, just remove the container option and it should display all the code as you want.

Oliver Wirkus said...

@Leo Vildosola: ok, I removed the container option. Now my code is displyed completely without scrollbars - but the code looks not as nice as with container.
It would be great if the code is surrrounded by a grey frame in case of not using the container option - just like when activating the container option.

Leo Vildosola said...

Oliver, this can be accomplished by modifying the WrapperStyle under Tools | Options | Styles. Try removing the following 3 options from that style.

max-height: 200px
maximum-height: 200px
overflow: auto

Once you do that, enable Use Container. It will have what you want without the scroll bars.

Navarr said...

I love the way your code works on my website. It makes my code snippets look beautiful, but, it doesn't allow for easy copying. When you go to select it, it selects the numbers to. Could this be fixed in a newer version?

Seb said...

I am missing "Microsoft.mshtml, Version=7.0.3300.0" when starting the plugin ... I've got .Net 3.5sp1 installed, which includes 3.0sp2 and 2.0sp2. Yet, mshtml is not installed ...
At last, I found the dll at
and copied it into the GAC.
After a restart of LW, it works now!
Could you please include the mshtml merge module in your msi?

Leo Vildosola said...

seb, thanks for the info. I am surprised that you would not have that assembly since it is a core part of IE. I'll take a look.

Seb said...

I've got IE8 installed, but I believe it is impossible to install it w/o installing both IE6 and IE7 before (on WinXP Pro).

In system32, mshtml.dll v8.0.6001.18812 is installed and registered for COM.
There is nothing in winsxs.
The COM dll is also registered as HKEY_CLASSES_ROOT\CLSID\{3050F391-98B5-11CF-BB82-00AA00BDCE0B}\InProcServer32\7.0.3300.0, which means it should be findable via COM as 7.0.3300 as well (backwards compatible).

Yet, .Net seems to use a different search method ... via the GAC, not via the registry?

I'll check some more systems ...
Ah. Another one of my virtual XP systems (already) has mshtml7 in the GAC, with IE8 and mshtml8 installed. So, someone installed it ...
I can't find any vm with IE7, need to look deeper.


Seb said...

Hi, again,
I looked at another of my machines.
It works.
IE8, mshtml 8.00 in system32,
Microsoft.mshtml.dll version 7.00 in C:\Programme\Microsoft.NET\Primary Interop Assemblies

Searching in the registry, I get the impression that something "VS_7_Pro" did install it. This cannot mean VS7/2003, though; I rather believe it's VS9/2008. Just guessing, though.

There is also a WindowsLive.Writer.Mshtml.dll version 14.0 in C:\Programme\Windows Live\Writer. Very small, though ... maybe there is a different way to access mshtml from .Net?


Leo Vildosola said...

Seb, thanks for all the info. I will keep it to verify thing on my side.

Philipp Sumi said...

Hi Leo

Any word on the update that fixes the issue with "br"-tags rather than line breaks (\r\n)?
I really love the plug-in, but always copy-pasting the markup, replacing the tags, and then pasting the snippet back directly into the post's HTML is a bit tedious...

Would love to see a fix for this one :-)


Leo Vildosola said...

Philipp, I apologize for not being so attentive to the project. I have been crazy busy with little time for extras. I do have some code changes already that I just need to revisit to remember what I did. Perhaps I can find some time to do a minor release to fix some of these issues. Thanks for the reminder.

Philipp Sumi said...

...I know that all too well, so no hard feeling here :)


upnishad said...

I am on - Build 14.0.8089.726 and still getting :
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at WLWPluginBase.Win32.Win32IEHelper.GetSelectedText(IntPtr handle)
at CodeSnippet.CodeSnippetPlugin.CreateContent(IWin32Window dialogOwner, String& content)
at WindowsLive.Writer.PostEditor.ContentSources.ContentSourceManager.PerformInsertion(IContentSourceSite sourceSite, ContentSourceInfo contentSource)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

the version of mshtml.ddl is 8.0.6001.18852 and I use IE 8

Stephen Cawood said...

Has anyone complained about extra lines being added in Blogger? When I use any WLW insert code plug-in that uses pre tags, I get extra lines and the end pre tag isn't respected, so the problem even continues after the code block. It looks fine in WLW preview mode, but terrible on the site. I'm using IE 8.

BTW -- right-click > paste doesn't work in the plug-in, but that's not an issue for me.

DremLIN.Ru said...


I have the same error, as for upnishad, in the previous remark...

Help me please...

(Win7rc2 - b7229)

Silverduner said...

I got the same problem as upnishad. Let's hope Leo would be able to support the latest dll soon. Here is my temporary solution: download a version 7.0.3300.0 of "Microsoft.mshtml.dll" and put it into the WLW directory "C:\Program Files\Windows Live\Writer\"

Leo Vildosola said...

Sorry folks. I have been extremely busy that I have not had time to track my blogs. I am working on a new version of the plugin as time permits. In the mean time, feel free get the code from CodePlex and make the necessary changes. I will be happy to apply your fixes to the project. Here's the direct link: Code Snippet plugin for Windows Live Writer at CodePlex.

Anonymous said...

How about Ruby on rails

Leo Vildosola said...

Unfortunately, no support for that.