Sadly, this Extension generates bad HTML and actually mangles the code you're trying to put into your blog. And since browsers are so "robust" against poorly-built HTML, you don't really know it made a mistake unless you carefully read the code you put into your blog.
To me the point of a feature like this is that I *don't* have to read what I paste into my blog. So for me this Extension doesn't cut it. It's too bad, because it's very close, and I do like it - I just wish it worked better.
I have used this in Visual Studio 2010 and best feature was that when I clicked on Tools-> Save Code as HTML a new window opened and displayed the HTML with preview. But when I posted the code on a web site, there are many errors due to unclosed <span> tag. I hope this bug will be fixed very soon. Apart from that bug I like it very much.
The three stars indicate that the product did what it said and it was easy to install and remove. I tested this tool on an ASP.Net page with inline code and it produced invalid HTML with mismatched pre and span tags all over the place. felt more like a 0.3 product than a 1.3 product in my opinion
Hi, I've been using this extension and it was great until the one moment I did change one setting. I have decided that I want to include line number in html, from now on when I generate the html from my code. I cannot use it, because it's missing closing span in multiple lines. I did tried to uninstall and reinstall the extension, but the problems came back all the time. Please fix it and thanks for the great extsion.
I get error, when trying to save C# code block
Unsupported source format! Cannot convert specified code.
Exception details: Requested Clipboard operation did not succeed.
Please help.
Hi Vitaly,
I get an error
Unsupported source format! Cannot convert specified code.
Exception Details: Die Vorlage "General\HTML Page" ist für das ausgewählte Projekt ungültig
The german details phrase means:
"the template 'General\HTML Page' is not valid for the selected project"
Can you help?
Regards, Tenzi.
Hi Vitaly,
Just installed this and used it. Don't have any issues really and it works like a charm. However, there are a few things I'd like to see cleaned up.
1. There are extra spaces between code elements that are being produced. For example look at this last code listing in this blog post
http://www.matlus.com/2010/11/datareader-wrappers-typesafe/
The other code listings were generated using this website
http://www.manoli.net/csharpformat/
I'd like to see your formatter use styles like they do and essentially the clean html that they produce. It just works better in most sites and the html generated is much smaller too. The down side of their html is that it does not recognize types and other identifier, while your stuff does. So with a little bit of clean up this extension will be awesome.
Using styles will also allow us to color the code differently from how we have it in the IDE.
It would be really nice to have a copy option next to the code so the users can copy the code straight from the blog post. Is it possible / planed or do you host the code somewhere so people like me can contribute and add this functionality?
P.S. Great idea for a plugin.. keep up the good work :D
Hi Kyrisu, thank you for feedback!
Yes - I plan to fix this in a week. Also, this is good idea to share this code so I will clean this out and post on CodePlex in couple of weeks.
Vitaly
Hi,
Can you upload your VSIX file directly to visual studio gallery? This way users can install your extension directly from inside visual studio 2010?
Thanks,
steven wilssens